procmail
[Top] [All Lists]

Re: Autoresponders

2001-03-27 01:14:40
David Cross asked,

| I have the following recipe that sends an autoresponder for an info
| request:
| 
| :0 hc
| * ^TOresponder1(_at_)ourdomain(_dot_)com
| * !^FROM_DAEMON
| * !^X-Loop:(_dot_)*(_at_)ourdomain(_dot_)com
|   | (formail -rtb -I"Precedence: bulk" \
|      -I"From: My Name <me(_at_)ourdomain(_dot_)com>" \
|      -I"Subject: My Subject" \
|      -A"X-Loop: responder1(_at_)ourdomain(_dot_)com"; \
|      cat /usr/home/replies/first.autoreply \
|      ) | $SENDMAIL -oi -t
| :0 A:
| responder1-in
| 
| 
| When I add a second instance of the above for a "responder1", it works, but
| only the first "responder@" in the person's email gets responed to.

Include the `c' flag in the second recipe (the one with the `A') as well.

| What I want to achieve is:
| 
| 1. Each recipe passes the email on to the next recipe in case a person
| emails "responder1@" and "responder2@", so they receive both responses.
| 2. Each recipe puts the email into its own "responder" inbox
| 3. One copy of the original email goes into the $DEFAULT inbox

Wanting #3 actually makes it much easier; you'd need extra code to prevent #3
from happening.

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