You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by km...@apache.org on 2014/02/18 03:00:44 UTC

svn commit: r1569163 - /spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm

Author: kmcgrail
Date: Tue Feb 18 02:00:44 2014
New Revision: 1569163

URL: http://svn.apache.org/r1569163
Log:
Bug 7013 - small fix for  bayes_auto_learn_on  not working with BAYES_999

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm?rev=1569163&r1=1569162&r2=1569163&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm Tue Feb 18 02:00:44 2014
@@ -241,7 +241,7 @@ sub autolearn_discriminator {
     my $tests = $scan->get_tag('TESTS');
     if (defined $tests && $tests ne 'none') {
       my %t = map { ($_,1) } split(/,/, $tests);
-      if ($isspam && $t{'BAYES_99'} || !$isspam && $t{'BAYES_00'}) {
+      if ($isspam && ($t{'BAYES_99'} || $t{'BAYES_999'}) || !$isspam && $t{'BAYES_00'}) {
         dbg("learn: auto-learn? no: learn-on-error, %s, already classified ".
             "as such",  $isspam ? 'spam' : 'ham');
         return;