procmail
[Top] [All Lists]

RE: TRAP, exit codes, etc.

2004-04-14 08:27:25
On Wed, 14 Apr 2004, Dallman Ross wrote:

Here's an includerc that calls another includerc.  Now
I test to see if the called includerc actually ran.
If it didn't, I bail out of what I was going to do.

That's all simple enough.  But I don't really want to quit
with EXITCODE = 0, the default.  I am sending a message
to the log that we were fubar; and I think an exit code
that is non-zero is an appropriate thing to have showing the
same thing -- just for canonical programming style if for
no other reason.

I don't think you can do what you want.  Any non-zero exit of a delivery
pipe is likely to cause a bounce message to go back to the MAIL FROM,
unless the MTA has been specially configured not to do so.  I'm almost
certain a bounce would result if procmail is being invoked as the local
delivery agent (as in nearly all RedHat Linux sendmail configurations),
and I'd expect that to be true of pipes from .forward as well.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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