Hi.
Am Montag, 22. Januar 2007 17:29 schrieb Antonio Di Monaco:
I need a "third state" in dynamic delivery mode, about returned error
codes. I've read in documentation
that I can return "0" or "99", and mail is delivered (or further
processed in .courier). I need a response
like "don't do anything at the moment, just queue this message, and ask
me again later what to do".
Read the manual page twice!
Some quotes:
| RUNNING AN EXTERNAL PROGRAM
| Lines that begin with a single | character
| [...]
| 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.
|
| 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 the external command terminates with any of the following exit codes:
| 64, 65, 67, 68, 69, 70, 76, 77, 78, or 112, the E-mail message will be
| returned as undeliverable, and no further delivery instructions will take
| place.
|
| If the external command terminates with any other exit code, it is
| interpreted as a temporary error, and the message will be requeued
| for another delivery attempt later.
| [...]
| DYNAMIC DELIVERY INSTRUCTIONS
| [...]
| The exit code of the program invoked by the || instructions are
| interpreted exactly like the exit code of a program invoked by |,
| [...]
So, you can choose out of some possible exit-codes (e.g. try 1), which is the
default error-code.
cu, Bernd