procmail
[Top] [All Lists]

Re: Not throw error if pipe dies.

1997-08-13 11:49:00
Benjamin Peikes wrote,

| I have a script that processes mail after procmail sorts it. If it sees
| certain things in the file it does not have to parse the rest. I would like
| to exit at that point but procmail thinks that the pipe has failed and then
| sends the mail to the default rule. I rather not have to read the whole
| file if I deem the rest to be garbage.

First, please format your text for the common eighty-column screen.

Second, that's what the `i' flag is for.  See the procmailrc(5) man page.
It tells procmail to ignore write errors and not to care if the action
reads less than all (or even none) of the input.

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