You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/08/15 07:30:06 UTC

svn commit: rev 36405 - spamassassin/trunk/lib/Mail/SpamAssassin

Author: felicity
Date: Sat Aug 14 22:30:05 2004
New Revision: 36405

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Log:
bug 3685: for rawbody and uri rules, we can stop processing a rule when it gets one hit.  provides a slight (~0.3%) speed increase overall.

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm	(original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm	Sat Aug 14 22:30:05 2004
@@ -1741,6 +1741,8 @@
          if ('.$pat.') { 
             $self->got_pattern_hit (q{'.$rulename.'}, "URI: ");
             '. $self->ran_rule_debug_code ($rulename,"uri test", 4) . '
+            # Ok, we hit, stop now.
+            last;
          }
        }
     }
@@ -1829,6 +1831,8 @@
          if ('.$pat.') { 
             $self->got_pattern_hit (q{'.$rulename.'}, "RAW: ");
             '. $self->ran_rule_debug_code ($rulename,"body_pattern_hit", 8) . '
+            # Ok, we hit, stop now.
+            last;
          }
        }
     }