procmail
[Top] [All Lists]

Re: Exit Codes

1996-08-14 13:06:19
On Wed, 14 Aug 96 10:52:53 -0700, Doug Krause 
<dijon(_at_)netcom(_dot_)com> said:

How do I set an exit code to bounce mail?  I thought it was something
like:

:0
* ^From:(_dot_)*idiot(_at_)spam(_dot_)com
EXITCODE=67

But that's creating a file called "EXITCODE=67" with the
contents of the mail.  Help.  Thanks.

A variable assignment is not a valid recipe action line.
Try this instead.  (I added an "h" to the first :0, since 
the rule doesn't look at the message body)

:0h
* ^From:(_dot_)*idiot(_at_)spam(_dot_)com
{
        EXITCODE=67

        :0h
        /dev/null
}

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