procmail
[Top] [All Lists]

Re: Small Q :)

2000-09-28 22:36:56
At 06:38 2000-09-29 +0200, Nils Vogels wrote:
How can I do both local delivery and piping in the same recipe ?

For instance: If someone sends me HTML mail, I would like to send out an
automated complaint, byt still be able to read the mail :)

Use the 'c' flag - clone.

:0
* some-condition
{
        # store message to default mailbox (or you might put it wherever
        # it is you'd normally store it)
        :0c
        $DEFAULT

        :0
| ( $FORMAIL -rt (and whatever operations) | cat complaintmessage ) | \
                $SENDMAIL -t
}

OR:

:0c
* some-condition-checking-for-html-mail
| ( $FORMAIL -rt (and whatever operations) | cat complaintmessage ) | \
        $SENDMAIL -t

:0
* whatever-normal-condition-you-would-filter-mail-on
(etc)


CAUTION: be very careful how you autoreply to people about HTML email (not just how you rag on someone, but if you get mailing list mail, or messages from services that will do something automated with your reply, etc).

---
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

 Sean B. Straw / Professional Software Engineering
 Post Box 2395 / San Rafael, CA  94912-2395


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