Beta version 4.32.2 released

Julian Field mailscanner at ecs.soton.ac.uk
Mon Jul 12 08:58:36 IST 2004


Try this:

-----SNIP-----
--- SA.pm.old   2004-06-21 08:44:45.000000000 +0100
+++ SA.pm   2004-07-12 08:55:30.000000000 +0100
@@ -423,10 +423,22 @@
        }
      }
      # Get the autolearn status
-    $spamness->learn();
-    $AutoLearn = $spamness->{auto_learn_status};
-    $AutoLearn = 'no' if $AutoLearn eq 'failed';
-    $AutoLearn = 'not spam' if $AutoLearn eq 'ham';
+    if ($SAversion<3) {
+      # Old code
+      if (!defined $spamness->{auto_learn_status}) {
+        $AutoLearn = "no";
+      } elsif ($spamness->{auto_learn_status}) {
+        $AutoLearn = "spam";
+      } else {
+        $AutoLearn = "not spam";
+      }
+    } else {
+      # New code
+      $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}) {
-----SNIP-----
At 21:46 11/07/2004, you wrote:
>Hi!
>
>
> > > SpamAssassin (score=16.268, required 5, autolearn=, ABUSEBUTLER_URI_RBL
> > > 5.00, BAYES_70 2.25, DATE_IN_PAST_03_06 0.42, FROM_ENDS_IN_NUMS 0.99,
> > > HTML_MESSAGE 0.10, OUTBLAZE_URI_RBL 3.50, SPAMCOP_URI_RBL 4.00)
> > >
> > > I use SA 2.x currently still, i assume its for the SA3, but is something
> > > broken with the other ones right now ?
>
> > That looks like a knockon of the patch Julian provided to fix the SA 3
> > problem.. I thought the code did a check on the version of SA first
> > though.........
>
>Yes. Julian, any suggestions ?
>
>Bye,
>Raymond.
>
>-------------------------- 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