procmail
[Top] [All Lists]

Re: error while writing to head?

2001-04-18 00:14:43
On Tue, Apr 17, 2001 at 05:07:22PM -0500, David W. Tamkin wrote:
Eek, of all the plays to quote, Racine's _Phèdre_!  Horrible memories
of high school French class (and of falling asleep at a performance
thereof) resurface. When Hippolytus said «je pars, cher Théramènes» I

"Et quitte le séjour de l'aimable Trézène." ;-)

should have said it with him and done it.

Phèdre is not easy to love, not are any of Racine's tragedies.

Louis-David Mitterrand wrote,

| Yes but how come the error only happens for a small minority of messages
| on a 150 message mailbox processed with "formail -s procmail < mbox"?

Procmail writes a bufferful at a time when it feeds a message to a program.
If head exits somewhere during the last bufferful and procmail has no more
left to write, there's no write error.  If head exits when procmail still
has some text to send it, there's a write error.  So it all depends on whe-
ther a buffer boundary falls somewhere between head's exit point and the end
of the message; in your case, whether a buffer boundary falls in the signa-
ture.  Apparently, as big and annoying as the signature is as signatures go,
it's a lot smaller than procmail's write buffer, so only for a small minority
of messages does the boundary between buffers fall within the signature.

I see and finally understand. So it has nothing to do with the program's
return code, only with procmail's ability to write to the pipe.

Thanks for your insight,

-- 
    THESEE: Son trépas à mes pleurs offre assez de matières,
            Sans que j'aille chercher d'odieuses lumières,
            Qui ne pouvant le rendre à ma juste douleur,
            Peut-être ne feraient qu'accroître mon malheur.
                                          (Phèdre, J-B Racine, acte 5, scène 7)
_______________________________________________
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>