procmail
[Top] [All Lists]

Re: Counting lines / `w' with `f'

2000-02-27 11:48:50
Liviu Daia <Liviu(_dot_)Daia(_at_)imar(_dot_)ro> writes:

                     |  with "w" or "W"     |  without "w" or "W"
   ------------------+----------------------+----------------------
   non-zero          |  recovers the        |  happily keeps the
   return code       |  unfiltered message  |  filtered message
   ------------------+----------------------+----------------------
   calling Procmail  |  recovers the        |  recovers the
   receives SIGPIPE  |  unfiltered message  |  unfiltered message 
   ------------------+----------------------+----------------------
   crash after       |  recovers the        |  recovers the
   consuming the     |  unfiltered message  |  unfiltered message
   input             |                      |


   So the only situation when Procmail keeps a possibly invalid result
is when the calling recipe doesn't have an "w" or "W" flag, and the
filter finishes normally but with a non-zero return code.

What do you mean by "crash after consuming the input"?  When a program
dies from a signal (say, SEGV) the parent only finds out if it checks
the exit status.  So, that bottom right-hand box should be "happily
keeps the filtered message".


Philip Guenther

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