procmail
[Top] [All Lists]

Re: error while writing to head?

2001-04-17 10:47:12
On Tue, Apr 17, 2001 at 09:43:20AM -0700, Professional Software Engineering 
wrote:
At 18:32 2001-04-17 +0200, Louis-David Mitterrand did say:
On Tue, Apr 17, 2001 at 10:05:26AM -0500, David W. Tamkin wrote:
|     procmail: Executing "head,-87"

Head, by its purpose, doesn't read in the entire input but rather exits 
once
it has found the required number of lines.  Since procmail can't write the
entire text to head, procmail finds a write error.

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"?

Lemme guess, only a small minority of them have more than 87 lines?

Wrong, as the line count is dynamically computed from $= message size
should be irrelevant.

        # eliminate ugly fixed-length sig
        :0 fbw
        * FOLDER ?? ^acting-pro$
        * B ?? 
^--------------------------------------------------------------------------$
        * 1^1 B ?? ^.*$
        * -11^0
        | head -$=

-- 
 HIPPOLYTE: Souffrez que mon courage ose enfin s'occuper.
            Souffrez, si quelque monstre a pu vous échapper,
            Que j'apporte à vos pieds sa dépouille honorable ;
                                          (Phèdre, J-B Racine, acte 3, scène 5)
_______________________________________________
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>