procmail
[Top] [All Lists]

Re: Save a copy if match and finish intended delivery

2001-11-28 12:03:18
At 11:46 2001-11-28 -0600, Justin Shore wrote:
I don't want to stop the flow of matching mail at this time though. I'd like the message to be delivered like normal. What I would like is a copy of the matching message to be dropped in a defined spool. I already have a couple of rules that match text in the bodies and drop them in designated spools. Those messages aren't delivered to the intended recipient in those rules though. Any suggestions on the best way to accomplish this?

Read the manpages recently?  The oft-used 'c'opy flag does what you want:

:0c
{
        your test recipes, delivering to mailboxes, not mailspools
}

Avoid forwarding (!addr) within /etc/.procmailrc unless you use extensive loop checking.

The copy is provided for the ruleset at that nesting level, and if not delivered, it just goes away -- it won't produce an extra copy to the intended recipient (unless of course, you foolishly send a copy to them from within the ruleset).

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