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/08/22 07:50:08 UTC

svn commit: rev 36686 - spamassassin/trunk/lib/Mail/SpamAssassin

Author: felicity
Date: Sat Aug 21 22:50:06 2004
New Revision: 36686

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Log:
make some of the debug output more clear

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm	(original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm	Sat Aug 21 22:50:06 2004
@@ -280,7 +280,8 @@
 
   dbg ("auto-learn? ham=$min, spam=$max, ".
                 "body-points=".$self->{body_only_points}.", ".
-                "head-points=".$self->{head_only_points});
+                "head-points=".$self->{head_only_points}.", ".
+		"learned-points=".$self->{learned_points});
 
   my $isspam;
 
@@ -306,7 +307,7 @@
   } elsif ($score >= $max) {
     $isspam = 1;
   } else {
-    dbg ("auto-learn? no: inside auto-learn thresholds");
+    dbg ("auto-learn? no: inside auto-learn thresholds, not considered ham or spam");
     $self->{auto_learn_status} = "no";
     return;
   }
@@ -320,19 +321,19 @@
 
     if ($self->{body_only_points} < $required_body_points) {
       $self->{auto_learn_status} = "no";
-      dbg ("auto-learn? no: too few body points (".
+      dbg ("auto-learn? no: scored as spam but too few body points (".
                   $self->{body_only_points}." < ".$required_body_points.")");
       return;
     }
     if ($self->{head_only_points} < $required_head_points) {
       $self->{auto_learn_status} = "no";
-      dbg ("auto-learn? no: too few head points (".
+      dbg ("auto-learn? no: scored as spam but too few head points (".
                   $self->{head_only_points}." < ".$required_head_points.")");
       return;
     }
     if ($self->{learned_points} < $learner_said_ham_points) {
       $self->{auto_learn_status} = "no";
-      dbg ("auto-learn? no: learner indicated ham (".
+      dbg ("auto-learn? no: scored as spam but learner indicated ham (".
                   $self->{learned_points}." < ".$learner_said_ham_points.")");
       return;
     }
@@ -340,7 +341,7 @@
   } else {
     if ($self->{learned_points} > $learner_said_spam_points) {
       $self->{auto_learn_status} = "no";
-      dbg ("auto-learn? no: learner indicated spam (".
+      dbg ("auto-learn? no: scored as ham but learner indicated spam (".
                   $self->{learned_points}." > ".$learner_said_spam_points.")");
       return;
     }