Hello,
I've written a Sniffer plugin (SNF4SA) for SpamAssassin, and my plugin doesn't
report dynamic scores for SpamAssassin 3.1.7. The dynamic score reporting
works correctly for SpamAssassin 3.2.5.
I would like to know if there's a way to report dynamic scores in SpamAssassin
3.1.7. I haven't been able to find info for this on the FAQ or on the
FrontPage.
Here's a description of my problem:
The SNF4SA plugin reports a dynamic score as follows:
# Check the message with SNFServer.
sub snf4sa_sacheck {
my ($self, $permsgstatus, $fulltext) = @_;
# $deltaScore is the score to add.
$permsgstatus->got_hit("SNF4SA", "", score => $deltaScore);
for my $set (0..3) {
$permsgstatus->{conf}->{scoreset}->[$set]->{"SNF4SA"} =
sprintf("%0.3f", $deltaScore);
}
}
This works with SpamAssassin 3.2.5 on Ubuntu 9.04. It doesn't work with
SpamAssassin 3.1.7 on Fedora Core 2 (although it does after upgrading to
SpamAssassin 3.2.5 on Fedora Core 2). I understand that the got_hit()
function does not accept dynamic scores before SpamAssassin 3.2.0, which
explains this.
My question is: Is there a way to report dynamic scores with SpamAssassin
3.1.7? I'd appreciate any help.
Thanks,
Alban