procmail
[Top] [All Lists]

Checking if a header exists

2008-12-03 10:43:13
I have a recipe to check for a header and if it is NOT found, to send a copy of the mail to an external address. Trouble is, I'm doing something wrong:

first, I do this with all the mail that 'falls through' a bunch of checks:

:0fw
| formail -i"Status: RO"-i"X-Kreme: NO"

then, later on, I go to forward on the mail that I've not tagged.

   :0c
   * ! ^X-Kreme:
   ! me(_at_)somewhere(_dot_)else(_dot_)tld

however, the header isn't getting added. I'm pretty sure I've seen that syntax of adding multiple headers before (although all the example I can find are using -I instead of -I; but that shouldn't matter, should it?) but something must be wrong.

--
Against stupidity the gods themselves contend in vain.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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