X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/5af333ca3b83425e5cb3aa704b37654d576856c1..ce01c73dbc58af7f829bbed24b3547e7ff7588e4:/procmail/eqdomains diff --git a/procmail/eqdomains b/procmail/eqdomains index d1f3960..b5e434d 100644 --- a/procmail/eqdomains +++ b/procmail/eqdomains @@ -4,26 +4,30 @@ :0 * !ORIGINAL_TO ?? =.+@.+ { - LOG="eqdomain: spamtrap message due to missing = in localpart ($ORIGINAL_TO)$NL" - :0 fw - |$FORMAIL -A"X-Spamtrapped: missing equal sign in eqdomain ($ORIGINAL_TO)" - SPAMTRAPPED=eqdomain + SPAMTRAPPED="missing equal sign in eqdomain ($ORIGINAL_TO)" + LOG="eqdomain: $SPAMTRAPPED$NL" } :0 E { :0 * ORIG_LOCAL ?? ^\/[^=]+ - { EQ_LOCAL="$MATCH" } + { + EQ_LOCAL="$MATCH" + EQ_TO="$MATCH" + } :0 * ORIG_LOCAL ?? .+=\/.+ - { EQ_DOMAIN="$MATCH" } + { + EQ_DOMAIN="$MATCH" - LOG="eqdomain: message to $EQ_LOCAL@$EQ_DOMAIN via $ORIG_DOMAIN$NL" + :0 + * EQ_LOCAL ?? . + { EQ_TO="$EQ_TO@$EQ_DOMAIN" } + } - :0 fw - |$FORMAIL -A"X-EqDomain: $ORIG_DOMAIN" -A"X-EqTo: $EQ_LOCAL@$EQ_DOMAIN" + LOG="eqdomain: message to $EQ_TO via $ORIG_DOMAIN$NL" } }