X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/eb5de977daa0bcf21f8de119f10c79402a6bbdc4..e1d90df1eaecda8accd3c8117756c33a926b359c:/procmail/justme diff --git a/procmail/justme b/procmail/justme index 850f63d..3d5f6fc 100644 --- a/procmail/justme +++ b/procmail/justme @@ -1,23 +1,23 @@ -:0 -* ? echo "$ORIGINAL_TO" | $EGREP -qif $CONF/justme-addresses +:0 H +*$ MSGID ?? ^<.+@$RE_MYDOMAIN> { - :0 H - *$ MSGID ?? ^<.+@$RE_MYDOMAIN> - { - JUSTME="from machine in my domain" - LOG="justme: passing; $JUSTME$NL" - SKIP_SPAMCHECKS=from-mydomain - } + JUSTME="from machine in my domain" + LOG="justme: passing; $JUSTME$NL" + SKIP_SPAMCHECKS=from-mydomain +} - :0 EH - *$ ^(References|In-Reply-To):.*<.+@$RE_MYDOMAIN> - { - JUSTME="in-reply-to/referenced" - LOG="justme: passing; $JUSTME$NL" - SKIP_SPAMCHECKS=in-reply-to/referenced - } +:0 EH +*$ ^(References|In-Reply-To):.*<.+@$RE_MYDOMAIN> +{ + JUSTME="in-reply-to/referenced" + LOG="justme: passing; $JUSTME$NL" + SKIP_SPAMCHECKS=in-reply-to/referenced +} - :0 E +:0 E +* ? echo "$ORIGINAL_TO" | $EGREP -qif $CONF/justme-addresses +{ + :0 * ? echo "$ORIGINAL_TO" | $EGREP -qif $CONF/justme-address-exceptions { JUSTME="explicitly excepted address" @@ -56,11 +56,40 @@ :0 E * MSGID ?? ^