[prev in list] [next in list] [prev in thread] [next in thread] 

List:       procmail
Subject:    Re: Procmail matching multiple rules, executing last one...why?
From:       Stan Ryckman <stanr () sunspot ! tiac ! net>
Date:       2001-10-30 17:06:50
[Download RAW message or body]

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@.*
> ! 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@.*"
> 

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@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