procmail
[Top] [All Lists]

Re: Exit code from an external program

2002-04-01 20:36:02
On Tue, 2 Apr 2002 05:23:34 +0200 (CEST), you wrote:

Based on your pseudocode I'd say that you just want to do a simple true/false-
match; just check the flags in procmailrc and you'll find what you need (you
check if the recipe before failed or not).

Thanks, but I don't quite understand what you mean. Like this?

:0w
* ? progname
| do this is exit code=0

:0E
| do this if exit code=1

:0E
| and do  this if exit code=2

:0E
| otherwise, do this.


Say the exit code is 3, what is to stop the second match?

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