procmail
[Top] [All Lists]

Re: How can I eliminate this intermittent error? -> Error while writing to "echo"

2009-11-09 21:59:14
Many thanks :-)

That does seem to have done the trick.

On Mon, 2009-11-09 at 18:36 -0800, Professional Software Engineering
wrote:

At 19:18 2009-11-09 -0600, JW Simpson wrote:
I've been chasing my tail on this one for a while now.Is this a bug?Is 
there anything I can do to work around it?

'man procmailrc'
Read up on the 'i' flag

I need to use echo to rewrite the body of certain messages.But sometimes 
this works and sometimes it doesn't.

look at your logs.  The messages it doesn't work on are the larger 
ones.  That's because echo isn't reading it's standard input, but for very 
small sizes of messages, the entire message exists in procmail's write 
buffer so it doesn't see that echo didn't read it.  For larger messages, 
procmail is sitting there after the program invocation completes, and it's 
saying "hey, you didn't read the entire message -- there must have been an 
error".  the 'i' flag tells procmail you realize that the delivery may not 
read the entire message, and to accept that as a successful delivery.


---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.


-- 
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>