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 2005/01/27 04:13:23 UTC
svn commit: r126572 - /spamassassin/trunk/masses/hit-frequencies
Author: jm
Date: Wed Jan 26 19:13:22 2005
New Revision: 126572
URL: http://svn.apache.org/viewcvs?view=rev&rev=126572
Log:
fix undef warnings in overlap mode; allow overlap display to go as low as 30%
Modified:
spamassassin/trunk/masses/hit-frequencies
Modified: spamassassin/trunk/masses/hit-frequencies
Url: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/hit-frequencies?view=diff&rev=126572&p1=spamassassin/trunk/masses/hit-frequencies&r1=126571&p2=spamassassin/trunk/masses/hit-frequencies&r2=126572
==============================================================================
--- spamassassin/trunk/masses/hit-frequencies (original)
+++ spamassassin/trunk/masses/hit-frequencies Wed Jan 26 19:13:22 2005
@@ -392,6 +392,9 @@
if ($isspam) {
if ($opt_o) {
$hmapstr = '
+ if (!exists $hmap_spam{$r}) {
+ $hmap_spam{$r} = "";
+ }
vec ($hmap_spam{$r}, $num_spam, 1) = 1;
';
}
@@ -406,6 +409,9 @@
} else {
if ($opt_o) {
$hmapstr = '
+ if (!exists $hmap_ham{$r}) {
+ $hmap_ham{$r} = "";
+ }
vec ($hmap_ham{$r}, $num_ham, 1) = 1;
';
}
@@ -477,7 +483,7 @@
foreach my $full (sort { $b <=> $a } keys %$hash) {
my $ratio = $full * 100;
- last if ($ratio < 50); # 50% cutoff
+ last if ($ratio < 30); # 30% cutoff
my $rules = _prettify_overlap_rules($r1, $hash->{$full});
next if ($rules eq '');
printf " overlap %s: %3d%% %s\n", $type, $ratio, $rules;