David W. Tamkin wrote:
Tom Allison asked,
| Is there some way that I can do something that looks like this:
|
| | /usr/bin/foo #This is a filter that returns an exit code
| EXITCODE=$?
|
| And then, based on the exit code, either send the email to the
| default delivery point or to an alternate (like /dev/null).
First, as others (including Philip) have said, pick another name, one that
doesn't conflict with the special EXITCODE variable. But here's what I
consider the cleanest way (note the space between the braces):
Actually, It was my intention to use EXITCODE because I want to be
able to temporarily bounce a message back into the mail queue.
Still sane?
--
I have discovered that all human evil comes from this, man's being
unable
to sit still in a room.
-- Blaise Pascal
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail