procmail
[Top] [All Lists]

Re: Filtering on critera not based on message?

2001-09-21 18:36:02
At 15:31 2001-09-21 -0700, Kelsey Cummings wrote:

Try searching the archives for a thread titled "Checking the exitcode of a program" (try a specific search for "exitstatus", rather than exitcode, since the latter is a special procmail variable).

Basically, I've got a program that returns different
exit codes and based on those exit codes I'd like a
different set of procmail rules to be processed.

Uh, okay.  What's the problem?

I see that you can feed the message to a pipe and
then take different actions based on the exit code
there but since the exit code isn't related to the
message...

So? Use the 'i' flag so procmail doesn't take the failure of all the data to be read as an indication of 'delivery failure', and just assign the results to your variable, then take action on the variable...

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

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