You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/05/22 18:56:36 UTC

svn commit: rev 20217 - incubator/spamassassin/trunk/lib/Mail/SpamAssassin

Author: felicity
Date: Sat May 22 09:56:36 2004
New Revision: 20217

Modified:
   incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Bayes.pm
Log:
bug 3345: sometimes for a bayes scan we can't tie the db, so we will skip the scan but still try the opportunistic calls which expect a tied db...  we will now only do the opportunistic calls if the scan completes sucessfully.

Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Bayes.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Bayes.pm	(original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Bayes.pm	Sat May 22 09:56:36 2004
@@ -1253,13 +1253,14 @@
     print "#Bayes-Raw-Counts: $self->{raw_counts}\n";
   }
 
+  $self->opportunistic_calls();
+
 skip:
   if (!defined $score) {
     dbg ("bayes: not scoring message, returning undef");
   }
 
   $self->{store}->cleanup();
-  $self->opportunistic_calls();
   $self->{store}->untie_db();
 
   $permsgstatus->{tag_data}{BAYESTCHAMMY} = $tcount_hammy;