procmail
[Top] [All Lists]

Re: formail flags problem in pm recipe - solved!

2001-06-16 19:23:06
On 06/16/01 01:18 PM, David W. Tamkin sat at the `puter and typed:
<snip>
It was intended to reduce the score by 1!  It corrects for the case with
messages that do end in blank lines, where "1^1 ^.*$" counts one too many. 
So if in your format you don't get one too many, subtracting one regardless
will give you one too few.

Maybe this will handle both cases:

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


So far that seems to be more accurate.  I appear to be getting the
trailing blank line more consistently now, and the number is right on
the mark.  I know the trailing line is added somewhere between my
composition of the message and opening it to read it later.  I don't
really care about the extra line, so I guess I'll call that the
solution.  Unless something else strange comes up later.

Thanks all!

Lou
-- 
Louis LeBlanc
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
leblanc(_at_)acadia(_dot_)ne(_dot_)mediaone(_dot_)net
http://acadia.ne.mediaone.net
_______________________________________________
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>