Please post in plain text; thanks.
At 06:22 PM 10/22/2001, Jason Luros wrote:
It was my understanding that procmail exits as soon as a match is made.
However, it appears from my logs that it matches and then continues to
check the other rules and executes the last match it finds. Could someone
take a look at this and tell me if I'm missing something?
I think you misunderstand... unless you use a "c" flag, it exits
as soon as a "delivery" is made (see the man page for what constitutes
a "delivery"). When you have several conditions in a recipe,
it must match *ALL* of them before making a "delivery":
:0 BH:
* is on vacation
* ^TO_fw-1-mailinglist(_at_)(_dot_)*
! owner-fw-1-mailinglist
[...]
procmail: Match on "is on vacation"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)fw-1-mailinglist(_at_)(_dot_)*"
Here it matches the first condition ("is on vacation") but it's not
addressed "TO_" the fw-1-mailinglist, so it continued to the next
recipe.
Hope that helps,
Stan
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail