procmail
[Top] [All Lists]

Re: Servers That Strip X-Loop:

1997-08-07 07:21:00
On Thu, 7 Aug 1997 09:27:14 -0400 (EDT),
Paul O Bartlett <pobart(_at_)access(_dot_)digex(_dot_)net> wrote:
    I have seen the EXITCODE variable in the man pages, but I
do not know where to find a list of these codes.  Is there one 
that specifically means "message refused"?  If so, is it still
necessary in a recipe to deliver the message to /dev/null, say,
or does setting the exit code take care of that?

Exit codes are usually is /usr/include/sysexits.h where they are also
explained in the comments (at least here). 

Setting EXITCODE will merely tell Procmail what exit code to pass
back, so yes, you have to explicitly do something to get rid of the
message. This one has been presented as being quicker than dumping to 
/dev/null:

    :0
    * conditions?
    { EXITCODE=77 HOST }

Setting HOST to the "wrong" thing (the above is basically equivalent
to HOST="") will force Procmail to bail out immediately (i.e. not even
opening /dev/null and "delivering" the message there). 

/* era */

<http://www.iki.fi/~era/procmail/mini-faq.html#exitcode> 
... and as usual, if the #exitcode part doesn't work with your
browser, try a search for the thing you're interested in.

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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