procmail
[Top] [All Lists]

Autoresponders

2001-03-26 00:36:28
(I just started with Procmail)


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.

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


Many thanks

David Cross

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