filter only skip dst domaine

update cloud IHM
This commit is contained in:
2025-01-29 15:26:54 +01:00
parent 61269d6ce3
commit ba390a175a
5 changed files with 40 additions and 30 deletions

View File

@ -195,6 +195,7 @@ fi
LIST_EMAILS=$(echo $@)
#on nettoie
LIST_EMAILS=$(sed 's/-f//g' <<< ${LIST_EMAILS})
LIST_DST_EMAILS=$(sed 's/.*--//g' <<< ${LIST_EMAILS})
LIST_EMAILS=$(sed 's/--//g' <<< ${LIST_EMAILS})
MAIL_SOURCE=$(echo $@ | awk 'BEGIN{FS=" "} {print $2}')
@ -253,7 +254,7 @@ if [ "${MODE}" = "none" ]; then
fi
if [ "$(check_skip_domains "${SKIP_DOMAINS}" "${LIST_EMAILS}")" = "yes" ]; then
if [ "$(check_skip_domains "${SKIP_DOMAINS}" "${LIST_DST_EMAILS}")" = "yes" ]; then
LOG_FIC " - ${GREEN}send without change (skip domain)${NC}"
${SENDMAIL} "$@" < "${INSPECT_DIR}/in.$$"
quitFilter 0