http://bugzilla.spamassassin.org/show_bug.cgi?id=3620





------- Additional Comments From [EMAIL PROTECTED]  2004-07-19 16:38 -------
Subject: Re:  SpamAssassin takes a *very* long time to process a particular 
message

On Mon, Jul 19, 2004 at 04:29:10PM -0700, [EMAIL PROTECTED] wrote:
> Having written the rule itself, it seems only fitting that I supply a fix.
> 
> it might also be nice to investigate the use of the term "per pill" as well as
> "per dose" I've seen those a lot recently:
> 
> body DRUG_DOSAGE              m{\$? *(?:\d|\.){1,10} *\$? *(?:\\|/|per)
> *(?:d.?o.?s.?e|p.?i.?l.?l.?)}i

fyi, I modified the rule in head to make the regex a little more
efficient.  instead of (?:\d|\.), just state [0-9.].  Instead of making
two nodes in the state machine and have perl try to deal with both paths,
backtracking, etc, it becomes a single node.  Dropped the time for the
message from 0:55.36 to 0:40.26 on my box, btw.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to