Spam Assassin 3 pr 1 query autolearn=spam

Julian Field mailscanner at ecs.soton.ac.uk
Mon Jun 21 08:45:15 IST 2004


Try this patch and let me know how you get on.

-----SNIP-----
--- SA.pm.old      2004-05-22 13:30:16.000000000 +0100
+++ SA.pm       2004-06-21 08:39:23.000000000 +0100
@@ -423,13 +423,17 @@
        }
      }
      # Get the autolearn status
-    if (!defined $spamness->{auto_learn_status}) {
-         $AutoLearn = "no";
-    } elsif ($spamness->{auto_learn_status}) {
-          $AutoLearn = "spam";
-    } else {
-          $AutoLearn = "not spam";
-    }
+    $spamness->learn();
+    $AutoLearn = $spamness->{auto_learn_status};
+    $AutoLearn = 'no' if $AutoLearn eq 'failed';
+    $AutoLearn = 'not spam' if $AutoLearn eq 'ham';
+    #if (!defined $spamness->{auto_learn_status} ||
$spamness->{auto_learn_status} eq 'no') {
+    #     $AutoLearn = "no";
+    #} elsif ($spamness->{auto_learn_status}) {
+    #      $AutoLearn = "spam";
+    #} else {
+    #      $AutoLearn = "not spam";
+    #}
      #sleep 30 if rand(3)>=2.0;
      print $pipe $AutoLearn . "\n";

-----SNIP-----

At 23:48 20/06/2004, you wrote:
>I recently installed SA 3 pr1 and am testing it locally. I keep on
>seeing this in headers:
>X-arthur-office-blacknight-MailScanner-SpamCheck:  not spam,
>SpamAssassin (score=1.346, required 6, autolearn=spam, RCVD_BY_IP 0.36,
>SB_NEW_BULK 0.99, SPF_HELO_PASS -0.00)
>
>Why is it marking it autolearn=spam , when it's blatantly not spam??
>
>Any ideas?
>
>
>--
>Mr. Michele Neylon
>Blacknight Internet Solutions Ltd
>http://www.blacknight.ie/
>+353 59 913 7101
>
>-------------------------- MailScanner list ----------------------
>To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
>Before posting, please see the Most Asked Questions at
>http://www.mailscanner.biz/maq/     and the archives at
>http://www.jiscmail.ac.uk/lists/mailscanner.html

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list