procmail
[Top] [All Lists]

autoresponse to specific sender

2000-07-21 08:12:54
My apologies to David Wells and others for sending garbage via my
non-standard mail client.  As my subject says, I would like to do the
following:

My Config:  Redhat 6.1, sendmail MTA, procmail MDA

In .procmailrc, I have an autoresponder working and would like to keep
it such that it responds to anyone except gm+AEA-aohell.com.

For gm, I would like to send a special message and dump his email to
Unix's trash can.  I have the following recipe, but it autoresponds to
EVERYONE with only the top section meant for gm+AEA-aohell.com  (i.e.,
the second section doesn't fire off my normal autoresponse.)

What have I done wrong?  TIA

----------------------------------------------------------------

:0
* !^FROMgm(_at_)zeppo(_dot_)ecqual(_dot_)net
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: mikeo(_at_)curly(_dot_)ecqual(_dot_)net
| (formail -r -A"Precendence: junk" \
-A"X-Loop: mikeo(_at_)curly(_dot_)ecqual(_dot_)net" ; \
echo "Hey, GM!  I just got your message sent to me."; \
echo "This is an automated response."; \
echo " "; \
echo "So, GO AWAY...... GET THE PICTURE??") | sendmail -t

:0 h c
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: mikeo(_at_)curly(_dot_)ecqual(_dot_)net
| (formail -r -A"Precedence: junk" \
-A"X-Loop: mikeo(_at_)curly(_dot_)ecqual(_dot_)net" ; \
echo "Hey!  I just got your message sent to curly.ecqual.net. Thanks!";
\
echo "This is an automated response."; \
echo " "; \
echo "Anyway, I'll write back to you as soon as I can (if needed). 
Cheers!") | sendmail -t

-----------------------------------------------------------
No fish were harmed during the composition of this email.
Mike O.
station15+AEA-zeppo.ecqual.net

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