[prev in list] [next in list] [prev in thread] [next in thread]
List: procmail
Subject: Re: Why did this match?
From: "Ruud H.G. van Tol" <rvtol () isolution ! nl>
Date: 2006-12-08 16:50:12
Message-ID: 043b01c71ae8$f1c123d0$0b01a8c0 () isolution ! nl
[Download RAW message or body]
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@lists.RWTH-Aachen.DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic