Spam Assassin 3 pr 1 query autolearn=spam
Michele Neylon :: Blacknight Solutions
michele at BLACKNIGHTSOLUTIONS.COM
Tue Jun 22 12:04:31 IST 2004
MailScanner mailing list wrote:
> 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-----
>
Julian
That seems to have stopped it giving the autolearn=spam, however it doesn't
give anything for autolearn now :(
Was that intentional?
The setup is:
Fedora Core 2
Postfix
MS - latest stable
SA 3 pre 1
If you have made any changes to the latest unstable regarding SA I could try
that, as I am currently running this in a local test environment ie. This is
for testing and "playing" purposes and no mission critical mail will be
affected
Michele
Mr Michele Neylon
Blacknight Internet Solutions Ltd
http://www.blacknight.ie/
Tel. +353 59 9137101
-------------------------- 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4203 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20040622/61a7c071/smime.bin
More information about the MailScanner
mailing list