procmail
[Top] [All Lists]

formail finer points

1997-05-21 10:22:00
Hi,
        I have the following recipe in my .procmailrc:
============================
# this is a sample script that mails back a "go away" letter  
# in this case, it is if the mailer is extractor
:0
* ^From(_dot_)*saroff(_at_)lmco\(_dot_)com
* !^X-Loop: msaroff(_at_)pca(_dot_)net
| (formail -rk \
-A "X-Loop: msaroff(_at_)pca(_dot_)net" \
-A "Precendence: junk"; \
echo "Please don't send me any more mail";\
echo "This is an automated response";\
echo "I'll never see your message";\
echo "So, GO AWAY" ) | $SENDMAIL -t -oi
============================
        This is another of my email accounts, and I am using this to set 
up an autoresponder.  It picks up the bessage and works fine, but there 
are some changes that I'd like to make.  Currently the response is:
============================
blah blah blah
blah blah blah
blah blah blah
blah blah blah
Please don't send me any more mail
This is an automated response
I'll never see your message
So, GO AWAY
============================
        What I'd like to do is to do the following:
Please don't send me any more mail
This is an automated response
I'll never see your message
So, GO AWAY

---------- Forwarded message ----------
Full headers:
============================
        I've been looking through the docs on formail, and I'm not sure 
how to do this.
        Basically, there are entire sites that I want to block, and when 
someone posts a mail, I want to send a message saying, "I've blocked your 
domain.  If you want to contact me, put the passowrd XXXXXX in the 
subject.  I will take you off the list when I receive this message.
        BTW, if there is a way to automatically append the user id to a 
pass list file upon receipt of the password, I'd appreciate it.

--
  Matthew Saroff  

<Prev in Thread] Current Thread [Next in Thread>