procmail
[Top] [All Lists]

Re: adding headers to identify a recipe

2003-10-20 14:09:25
At 14:56 2003-10-20 -0600, Shea Gray wrote:
:0:
* ^Subject:.*((adult).*(pics|videos)).*
/var/mail/prespam

So how do I do something like 'formail -a "Spam-Rule: adult pics"' when
this recipe is matched

change delivery from:
/var/mail/prespam

to:
| formail -a "Spam-Rule: adult pics" >> /var/mail/prespam


FTR, the lockfile will automatically pick up on the final destination file,

(I do something like this to flag mailboxes so that the copy which is delivered to my POP mailspool will contain a header my client software can use to simply deposit the message into the appropriate folder there).

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