Mailing List Archive

svn commit: rev 36054 - spamassassin/trunk/masses
Author: quinlan
Date: Fri Aug 6 17:41:25 2004
New Revision: 36054

Modified:
spamassassin/trunk/masses/rewrite-cf-with-new-scores
Log:
just some trivial formatting


Modified: spamassassin/trunk/masses/rewrite-cf-with-new-scores
==============================================================================
--- spamassassin/trunk/masses/rewrite-cf-with-new-scores (original)
+++ spamassassin/trunk/masses/rewrite-cf-with-new-scores Fri Aug 6 17:41:25 2004
@@ -30,7 +30,8 @@
system ("./parse-rules-for-masses -s $scoreset") and die;
our %rules;
if (-e "tmp/rules.pl") {
- # Note, the spaces need to stay in front of the require to work around a RPM 4.1 problem
+ # note: the spaces need to stay in front of the require to work around
+ # a RPM 4.1 problem
require "./tmp/rules.pl";
}
else {
@@ -43,7 +44,8 @@
open (STDIN, "<$newscores") or die "cannot open $newscores";
while (<STDIN>) {
/^score\s+(\S+)\s+(-?\d+(?:\.\d+)?)/ or next;
- my $name = $1; my $score = $2;
+ my $name = $1;
+ my $score = $2;
next unless (exists ($rules{$name}) && $rules{$name}->{issubrule} == 0);
next if ($name =~ /^__/);
next if ($name eq '(null)'); # er, oops ;)