procmail
[Top] [All Lists]

Re: Consider LOGFILE and Subject in same recipe

2004-03-18 13:22:22
At 14:34 2004-03-18 -0500, Christopher Benson did say:

Both of the above are in the same recipe.

For accurracy, they're SEPARATE recipes.  They're both in the same rcfile.

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

Will that work?

A sandbox would confirm it for you. See my sig. I'd check the location of your carat though - LOGFILE is a variable, not a header line.


Alternatley, you can use scoring:

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

The really high number causes the rest of the _scored_ bits to be skipped once the first one is matched.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


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