At 19:40 2002-07-02 +0100, Tim Skipper wrote:
:0:
* ^From:.*(163\.|sina\.)
! unwelcome(_at_)euro-share(_dot_)com
First, the trailing ':' on the flag line is unnecessary in your recipe - it
really only basically applies to delivery to a file.
How can I change this so that in addition to doing this, it also
returns a message to the sender indicating I don't want their mail at
the place they're sending it too?
:0
* ^From:.*(163\.|sina\.)
{
:0c
! unwelcome(_at_)euro-share(_dot_)com
# If it is looped or from the mailer daemon, do nothing more.
:0 w
* !^FROM_DAEMON
* !^X-Loop: NoReply(_at_)yourdomain\(_dot_)tld
| ( formail -rt -A "X-Loop: NoReply(_at_)yourdomain(_dot_)tld" \
-I "From: NoReply(_at_)yourdomain(_dot_)tld (No Reply robot)" ;\
cat wrongaddressyoubutthead.msg ) | $SENDMAIL -t
# anything that falls through appears to be a loop or a bounce.
# (but then, shouldn't be FROM that address...)
:0
/dev/null
}
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail