procmail
[Top] [All Lists]

Re: OOPS re handling outgoing mail

1997-09-10 09:59:09
vikas(_at_)insight(_dot_)att(_dot_)com wrote,

| Aha! I was thinking about this during that thread on EXITCODE i.e. use the
| variable=| syntax with the input of the pipe ignored to fool it into making
| a variable assiginment in the ACTION line of the recipe
| 
| something like
| 
| :0
| conditions
| EXITCODE=|echo 67

First, you need either an asterisk before the condition or a correct non-zero
number on the flag line.

Second, a simple

 :0
 * conditions
 { EXITCODE=67 }

doesn't need to fork any other programs (like /bin/echo) nor a shell (if
/bin/echo is a shell script).  It's a better way to go.

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