spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j.@apache.org
Subject svn commit: r568571 - /spamassassin/trunk/build/mkrules
Date Wed, 22 Aug 2007 11:39:50 GMT
Author: jm
Date: Wed Aug 22 04:39:49 2007
New Revision: 568571

URL: http://svn.apache.org/viewvc?rev=568571&view=rev
Log:
bug 5558: comment out 'score' lines for non-promoted sandbox rules automatically

Modified:
    spamassassin/trunk/build/mkrules

Modified: spamassassin/trunk/build/mkrules
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/mkrules?rev=568571&r1=568570&r2=568571&view=diff
==============================================================================
--- spamassassin/trunk/build/mkrules (original)
+++ spamassassin/trunk/build/mkrules Wed Aug 22 04:39:49 2007
@@ -423,6 +423,11 @@
       }
       # non-sandbox rules always use the same name
 
+      # comment "score" lines for sandbox rules (bug 5558)
+      if ($type eq 'score' && $rules->{$name}->{issandbox}) {
+        $orig =~ s/^/#/g;
+      }
+
       if (!$rules->{$name}) { $rules->{$name} = rule_entry_create(); }
       $rules->{$name}->{issandbox} = $issandbox;
       $rules->{$name}->{origname} = $origname;



Mime
View raw message