procmail
[Top] [All Lists]

Re: TRAP, exit codes, etc.

2004-04-14 09:05:14
On Wed, Apr 14, 2004 at 08:18:35AM -0700, Bart Schaefer wrote:

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.

Okay, I was beginning to conclude that, though I still don't know about
low-numbered exit codes.

However, David Tamkin asked me privately what I also was wondering
after reading the procmail man pages (and procmailex has related stuff
to say too); namely, what happens if in procmail we specify EXITCODE=0,
but in TRAP we set it otherwise?  The man pages don't seem to
discuss that, and I have no idea if it's a valid thing to want to do.

-- 
dman

_______________________________________________
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>