procmail
[Top] [All Lists]

Re: Handling Excessive Quoting ?

2002-07-07 15:14:23
On Sun, 7 Jul 2002, GreenTree Ground Station wrote:

GGS>
GGS> I imagine it would have to do with checking the FIRST
GGS> character in each line of the message body and those
GGS> containing a ">" would be compared to those NOT, and
GGS> thereby - with a little math, the ratio would be calc'd.
GGS> Then this ratio would of course be passed to the mail
GGS> utility for including this data in the response.
GGS>

Checking the first character is no good - see above.

You could score the number of lines with a > in it, with a weight of, say
20, to lines with the > to give a 5% test.  I'm not sure about the syntax
of this recipe though:

:0:
* 20^1 B ?? >.*$
* -1^1 B ?? ! >.*$
dosomething


The final score is available in a variable, $= I think.


Alan

( Please do not email me AS WELL as replying to the list. Personal
  email may invoke a password autoresponder. )


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