14 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Dynamic delivery
FromSent OnAttachments
Antonio Di MonacoJan 22, 2007 8:28 am 
Sander HolthausJan 22, 2007 9:03 am 
Gordon MessmerJan 22, 2007 9:52 am 
Antonio Di MonacoJan 22, 2007 12:03 pm 
Jérôme BlionJan 22, 2007 12:17 pm 
Gordon MessmerJan 22, 2007 12:21 pm 
Gordon MessmerJan 22, 2007 12:40 pm 
Sam VarshavchikJan 22, 2007 3:16 pm 
Jérôme BlionJan 22, 2007 3:58 pm 
Sam VarshavchikJan 22, 2007 4:10 pm 
Jérôme BlionJan 22, 2007 4:30 pm 
Sam VarshavchikJan 22, 2007 5:06 pm 
Gordon MessmerJan 22, 2007 9:31 pm 
Bernd WurstJan 22, 2007 10:46 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Dynamic deliveryActions...
From:Bernd Wurst (ber@bwurst.org)
Date:Jan 22, 2007 10:46:53 pm
List:net.sourceforge.lists.courier-users

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