On 3/26/07, Axel Thimm <Axel(_dot_)Thimm(_at_)atrpms(_dot_)net> wrote:
On Sun, Mar 25, 2007 at 01:57:23PM -0700, Bart Schaefer wrote:
It says about ORGMAIL: "If, for some obscure reason (like 'filesystem
full') the mail could not be delivered, then this mailbox will be the
last resort. If procmail fails to save the mail in here (deep, deep
trouble :-), then the mail will bounce back to the sender."
Which obviously does not apply for delivery recipes that are in
blocks, because the block as a whole is a non-delivery recipe.
Um, what? It applies for the most deeply nested recipe, unless
there's a "c" flag on the block. The reason it doesn't apply when
there's a "c" flag on the block is because in that case the exit error
code is returned to the parent procmail, not directly to the MTA; UNIX
process management requires this. But we aren't talking about "c"
flags on blocks, I'm only mentioning that in case someone reads this
message from an archive search.
So as far as procmail is concerned, no delivery attempt has failed,
because :0c: means the recipe is not a delivering recipe any more.
Only that I'm not using :0 c:
You must be using it somewhere, or procmail would exit before you ever
get a chance to examine LASTFOLDER, because of the first-delivery-stop
design. If you really aren't using :0c: anywhere, then your entire
premise has been wrong all along, and the ONLY time LASTFOLDER will be
set is when delivery has failed.
In which case all you need is
:0
* $ ! ${LASTFOLDER+!}
{ EXITCODE=73 HOST=stop }
FWIW I already refered to that doc bug two days ago, so
you should perhaps check the thread - perhaps procmail lost your mail,
too? ....
I interpreted your previous comment as complaining that the program
was wrong because it didn't match the documentation, not that the
documentation is wrong because it doesn't match the program. There is
a difference.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail