spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j.@apache.org
Subject svn commit: r504983 - /spamassassin/trunk/masses/logs-to-c
Date Thu, 08 Feb 2007 18:01:15 GMT
Author: jm
Date: Thu Feb  8 10:01:15 2007
New Revision: 504983

URL: http://svn.apache.org/viewvc?view=rev&rev=504983
Log:
comment now-obsolete 'ignored rule test got a hit in file' warning in masses

Modified:
    spamassassin/trunk/masses/logs-to-c

Modified: spamassassin/trunk/masses/logs-to-c
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/logs-to-c?view=diff&rev=504983&r1=504982&r2=504983
==============================================================================
--- spamassassin/trunk/masses/logs-to-c (original)
+++ spamassassin/trunk/masses/logs-to-c Thu Feb  8 10:01:15 2007
@@ -330,7 +330,9 @@
       if ($test eq '') { next; }
 
       if ($ignored_rule{$test}) {
-        warn "ignored rule $test got a hit in $file!\n";
+        # this is not a log-worthy event anymore, since we have a lot
+        # of T_ test rules that are ignored during perceptron runs
+        # warn "ignored rule $test got a hit in $file!\n";
         next;
       }
 
@@ -340,12 +342,12 @@
       }
 
       if ($mutable_tests{$test}) {
-      $num_tests_hit++;
-      $out .= "t".$rule_to_index{$test}."\n";
+        $num_tests_hit++;
+        $out .= "t".$rule_to_index{$test}."\n";
 
-      if ($num_tests_hit >= $max_hits_per_msg) {
-	die "Need to increase \$max_hits_per_msg";
-      }
+        if ($num_tests_hit >= $max_hits_per_msg) {
+          die "Need to increase \$max_hits_per_msg";
+        }
       } else {
 	$base_score += $scores{$test};
       }



Mime
View raw message