procmail
[Top] [All Lists]

Re: truncate

2003-06-17 08:55:07
Dave Stern asked,

I have what I thought was a simple rule to truncate messages:

:0:
* ^Subject:.*test
* > 1000
| head -100 >>$MAILDIR/truncated

procmail: Error while writing to " head -100 >>$MAILDIR/test"

If the action line of a recipe doesn't read in the entire feed area, procmail believes that there has been a write error. When you actually want it that way, add the `i' flag as the procmailrc(5) man page says, and procmail will know that write errors are not a problem there.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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