procmail
[Top] [All Lists]

Counting lines

2000-02-25 13:05:14
    I have a recipe that is supposed to count the lines in the incoming
messages:

        :0 Bfh
        * H ?? ! ^Lines:
        * -1^0
        *  1^1   ^.*$
        |formail -A "Lines: $="

This should work, right?  Well, I've been happy with it for years, until
I discovered that it counts one too _many_ lines.  Any idea what's going
on here?

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   Liviu(_dot_)Daia(_at_)imar(_dot_)ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc

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