procmail
[Top] [All Lists]

Re: Auto Subscription FINALLY!

1996-06-03 19:36:53
Gino Filicetti <ginof(_at_)io(_dot_)org> writes:
...
:0
* ! ^Subject: coc subscribe
* ! B ?? ^coc subscribe
* ^X-Loop: ginof(_at_)io(_dot_)org
* ^Subject:.*Re:
* ^FROM_DAEMON
{ }

You've changed an effective OR into an effective AND.  The above will cause
an incoming message from a mailer daemon to _still_ be processed by what
follows unless the Subject: also contains "Re:" _and_ an X-Loop: header
exists containing "ginof(_at_)io(_dot_)org".  This is not what you want: you 
want
it to not process a message on an _or_ing of those conditions.

To fix it, move the last three of those conditions to the ":0E" recipe
which follows, turning it into an "else if".  Don't forget to add a ! to
each one.

Actually, you could move the capturing into $MATCH with the \/ operator
into the conditions that remain above.  Everything else looks fine to
me...

Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>