On Wed, 21 Apr 2004 [EMAIL PROTECTED] wrote:
> --On Mittwoch, 21. April 2004 09:52 +0100 Matt Savigear <[EMAIL PROTECTED]>
> wrote:
>
> > if ( /^X-Spam-Level: *\*\*\*\*\*/ )
> > {
> > log "MCS - Identified SPAM for immediate delete"
> > EXITCODE=99
> > exit
> > }
> >
> > This requeues the message with the log file containing the "MCS - " line
> > only.
>
> Thats the expected, and not really related to maildrop.
> Use EXITCODE=0 instead, see the manpage of dot-courier(5).
Um, no it isn't [expected]. First of all, EXITCODE of 99 means (and I
quote *from* the dot-courier manpage):
If the external command terminates with the exit code of 99, any
additional delivery instructions in the file are NOT executed, but
the message is considered to be successfully delivered.
*If* you use an EXITCODE of 0 (as you suggest), this is what happens
(again, quoting):
If the external command terminates with the exit code of zero,
the next delivery instruction is executed. If the command was the
last delivery instruction in the file, the message is considered
to be successfully delivered.
So. *If* multiple delivery instructions are present, an exit code of 0
will continue with the next delivery instruction, whereas 99 will stop
right there. Both are considered "successful" delivery exit codes.
Any exit code other than 64, 65, 67, 68, 69, 70, 76, 77, 78, or 112 (or
0 or 99) is considered a *temporary* failure re-queues the message for
delivery.
--
Ensign Walnut approaches Dr. Crusher with caution...
Jon Nelson <[EMAIL PROTECTED]>
C and Python Code Gardener
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users