procmail
[Top] [All Lists]

autoresponse to specific sender

2000-07-23 22:51:17
My apologies to David Wells and others for sending garbage via my
(a-hem) non-standard mail client.  Hope this works better.

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(_at_)aohell(_dot_)com(_dot_)

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(_at_)aohell(_dot_)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 curly.ecqual.net."; \
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(_at_)zeppo(_dot_)ecqual(_dot_)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>