procmail
[Top] [All Lists]

Re: procmail testing return codes

1997-05-29 03:31:00
Era Eriksson suggested to ant(_at_)notatla(_dot_)demon(_dot_)co(_dot_)uk:

|     :0
|     * 1^1 ! ? hashcash
|     { SCORE=$= }
| 
| will actually put the exit code of hashcash in the variable SCORE
| which you can then peruse as you see fit.

I wonder what will happen if the command generates a negative exit code,
though.  Just in case, perhaps one should do this:

      :0
      * 1^1 ! ? hashcash
      { }
      SCORE = $=

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