procmail
[Top] [All Lists]

when a pipe *should* stop early

1997-09-19 15:31:43
I've a filter recipe that is supposed to drop the last part of the body.
Currently it's a q instruction in sed.

Now, what happens if a buffer boundary happens to occur during the unused
part, and procmail senses a write error?  It hasn't happened yet, but it
might.  I don't want to put the `i' flag on the recipe, because then any
other write errors, which I would care to know about, would be ignored.

Should I change the sed instruction from q to !d [or p with the -n option]
so that sed will accept the entire text?  (Normally that is a suboptimal way
to write sed code.)

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