Bug : Bogus spam detection with SpamGroups
"Timur I. Bakeyev" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
Hi all!
I was trying to test detection with usage of SpamGroups
feature and was a bit surprised to see that all my
messages are spam :)
Digging into the problem, I figured out, the false
positive comes from 'SpamAssassin' group and the way how
it checks for spam:
Mail::Message::Head::SpamGroup:39:
if(my $f = $head->get('X-Spam-Flag') ||
$head->get('X-Spam-Status'))
{ $spam = $f =~ m/yes/i;
}
And here is how my SA reports:
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on
com.bat.ru
X-Spam-Level:
X-Spam-Status: No, hits=0.2 required=5.0
tests=BAYES_44,NO_REAL_NAME
autolearn=no version=2.63
Notice big fat 'YES' in the word BAYES...
So, I think, the test should be adjusted to be more
strict...
Another nice option would be possiblitiy to define number
of '*' in the X-Spam-Level: to mark message as spam...
Although it can be done in subclass, I guess..
With regards,
Timur Bakeyev.