You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2007/02/14 19:04:47 UTC

svn commit: r507645 - /spamassassin/trunk/build/parse-rules-for-masses

Author: jm
Date: Wed Feb 14 10:04:44 2007
New Revision: 507645

URL: http://svn.apache.org/viewvc?view=rev&rev=507645
Log:
oops.  sorry Theo, my bad; fix die()s when running parse-rules-for-masses during nightly mass-check run

Modified:
    spamassassin/trunk/build/parse-rules-for-masses

Modified: spamassassin/trunk/build/parse-rules-for-masses
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/parse-rules-for-masses?view=diff&rev=507645&r1=507644&r2=507645
==============================================================================
--- spamassassin/trunk/build/parse-rules-for-masses (original)
+++ spamassassin/trunk/build/parse-rules-for-masses Wed Feb 14 10:04:44 2007
@@ -62,6 +62,7 @@
 
 my $scores = { };
 foreach my $key (keys %{$rules}) {
+  next if $key eq '_scoreset';
   $scores->{$key} = $rules->{$key}->{score};
 }
 
@@ -158,6 +159,7 @@
   }
 
   foreach my $rule (keys %{$rules}) {
+    next if ($rule eq '_scoreset');
     if (!defined $rules->{$rule}->{type}) {
       delete $rules->{$rule};   # no rule definition -> no rule
       next;