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/25 17:39:22 UTC
svn commit: r511547 - /spamassassin/trunk/masses/rewrite-cf-with-new-scores
Author: jm
Date: Sun Feb 25 08:39:22 2007
New Revision: 511547
URL: http://svn.apache.org/viewvc?view=rev&rev=511547
Log:
ignore T_ rules with a zero score in rewrite
Modified:
spamassassin/trunk/masses/rewrite-cf-with-new-scores
Modified: spamassassin/trunk/masses/rewrite-cf-with-new-scores
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rewrite-cf-with-new-scores?view=diff&rev=511547&r1=511546&r2=511547
==============================================================================
--- spamassassin/trunk/masses/rewrite-cf-with-new-scores (original)
+++ spamassassin/trunk/masses/rewrite-cf-with-new-scores Sun Feb 25 08:39:22 2007
@@ -107,6 +107,7 @@
my $MINISCULE_THRESHOLD = 0.01; # points
my $UNZERO_META_PREDICATES = 1;
+my $IGNORE_ZEROED_TEST_RULES = 1;
if ($opt_scoreset < 0 || $opt_scoreset >= $NUM_SCORESETS) {
pod2usage("scoreset $opt_scoreset out of range 0 - " . ($NUM_SCORESETS-1));
@@ -348,6 +349,8 @@
delete $oldscores{$name};
}
elsif ($range_zeroed_rules{$name}) {
+ if ($IGNORE_ZEROED_TEST_RULES && $name =~ /^T_/) { next; }
+
# zeroed pre-evolver, by score-ranges-from-freqs
$scores[$opt_scoreset] = 0;