procmail
[Top] [All Lists]

Re: question on a procmailsc example

2006-09-15 09:17:54
Zhiliang Hu wrote:

I took a loser look 

I hope you meant "a closer look."

into the cases where this scoring recipe failed, and
found many mail clients put a whole paragraph into a single line therefore
there is only one ">" per paragraph in quoted text.  In this case it seems
count of bites or words on quoted vs unquoted lines makes better sense but
may be complicated to do...(?)

Can't see how to do it without an external fork ... so here goes:

:0b
UNQUOTED=| grep -v ^>

:0
* B ?? 1^1 > 1
* -2^1 UNQUOTED ?? .
{ whatever you want to do if there is too much quoting }



____________________________________________________________
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>