procmail
[Top] [All Lists]

Re: Consider LOGFILE and Subject in same recipe

2004-03-18 15:13:00
Sean quoted me,

OK, so you want to do the stuff unless the subject matches the regexp and
the logfile's name includes the string "account1", right?  The way you
have it, if neither of those is true, you do the stuff twice!

and he pointed out,

Ths isn't necessarily true - if the braces contain a DELIVERING recipe, or
a recipe which effects a bounce (unset HOST), processing will stop before
the second recipe is encountered.  In all other cases though, yes, as
originally written, the stuff would be run twice.

True.  He quoted me further,

 :0
 * 9876543210^0 LOGFILE ?? account1
 * 1^0 ^Subject:.*(bunch of subject items)
 { Do stuff.. }

and noted,

I might also point out that David's scoring recipe (unintentionally, I'm
sure) omitted the NOT condition.

Oops.  Sorry, Christopher.

  :0
  * 9876543210^0 ! LOGFILE ?? account1
  * 1^0 ! ^Subject:.*(bunch of subject items)
  { Do stuff.. }

My computer is failing and I'm very distraught, so I'm not thinking clearly.



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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