procmail
[Top] [All Lists]

Re: Return to sender recipe?

1998-08-28 02:45:09
|Thu 1998-08-27 Lynn McDougal <sneezy(_at_)darkwing(_dot_)uoregon(_dot_)edu> 
list.procmail
| Greetings...
| 
| Anyone out there have a short recipe (or long if needed) that will allow a
| filter to occur such that if a known sender's address is in the header, it
| will be rejected and returned to sender?

It's basic procmail...

    :0
    * match-the-header-for-that-mail
    {
        .. do something about that mail
    }

Rejection is done with variable EXITCODE. See manpages or
ftp://cs.uta.fi/pub/ssjaaa/pm-tips.html#list_of_exit_codes

I include my private procmail kill file for reference if you
want to build your own based on it. 

jari

Attachment: pm-mykill.rc
Description: Text document

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