Bart Schaefer:
Ruud H.G. van Tol:
There is no interpolation requested, so the character class is ...
Clearly true, but I'm curious why the log does NOT say
procmail: Match on "formail ...
Well, I limited myself to the first condition only, had no time for
more.
:0:
* ^X-Original-To:["$WS"]*\/.*
* $! ? grep -i -x $MATCH $RCPT_WHITELIST
* $? formail -xFrom: |\
grep -i \"`grep -v '^[$WS]*$' $FROM_BLACKLIST`\"
junk-from
Maybe the "$?" has special effects?
Different layout:
:0:
*$ ^X-Original-To:.*\/[$WS].*
*$ ! ? grep -i -x $MATCH $RCPT_WHITELIST
*$ ? formail -xFrom: |\
grep -i \"`grep -v '^[$WS]*$' $FROM_BLACKLIST`\"
junk-from
One could also replace the greps by pure procmail.
INCLUDERC = $FROM_BLACKLIST
-----------------------------
RE_FROM_BLACKLIST = '(=?|\
^**|\
amavis|\
challenge|\
daemon|\
do not reply|\
mail delivery (sub)?system|\
mailer-daemon|\
no[ -]*reply\
)'
-----------------------------
:0
*$ ^From:.*\/[^$WS].*
*$ MATCH ?? $RE_FROM_BLACKLIST
{ ... }
--
Groet, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail