procmail
[Top] [All Lists]

Re: recipe for head and body match

2003-07-09 12:16:23
At 14:25 2003-07-09 -0400, Jean Roth wrote:
:0 H:
* ^To: *jroth\+
{
  :0 B: *(traveling|I will be out|I am away|I am on vacation)

This is completely invalid syntax -- conditions appear on SEPARATE lines from the flags. Additionally, the outer level flags should not include a lockfile flag, since the outer recipe is not delivering to a file (and H is the default, so no need to specify it either).

Better, simply write your recipe like so:

# chances are, this is what $HOME is set to - if so, simply define MAILDIR
# to =$HOME
MAILDIR=/home/nber/jroth

:0:
* ^To:[         ]*jroth\+
* B ?? (traveling|I (will be out|am (away|on vacation)))
vacation


I'll not go into the details of how broad the vacation terms are, or how your address might not be the FIRST token on the To: line, and thus you should consider using:

* ^TO_jroth\+

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