$permsgstatus->{conf}->{scoreset} rather than $permsgstatus->{scoreset}. This addresses the problem with amavisd-new always having a score of 1 Update to version 0.9.2. git-svn-id: https://svn.microneil.com/svn/PKG-SNF-CS-NIX/trunk@20 233e721a-07f6-49eb-a7da-05e0e16828fcmaster
2009-05-16 Alban Deniz <adeniz@skidmark.localdomain> | |||||
* snf4sa.pm (snf4sa_sacheck): Submit the contribution to the score | |||||
using $permsgstatus->{conf}->{scoreset} rather than | |||||
$permsgstatus->{scoreset}. This addresses the problem with | |||||
amavisd-new always having a score of 1. | |||||
2009-05-13 Alban Deniz <adeniz@skidmark.localdomain> | |||||
* snf4sa.pm (snf4sa_sacheck): Corrected calculation of GBUdb | |||||
contribution to SA score: sqrt(abs(p * c)) * weight. |
dnl | dnl | ||||
AC_PREREQ(2.52) | AC_PREREQ(2.52) | ||||
AC_INIT(snf4sa, 0.9.1) | |||||
AC_INIT(snf4sa, 0.9.2) | |||||
AC_CONFIG_SRCDIR(snf4sa.cf) | AC_CONFIG_SRCDIR(snf4sa.cf) | ||||
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) | AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) | ||||
$permsgstatus->got_hit("SNF4SA", "", score => $deltaScore); | $permsgstatus->got_hit("SNF4SA", "", score => $deltaScore); | ||||
for my $set (0..3) { | for my $set (0..3) { | ||||
$permsgstatus->{scoreset}->[$set]->{"SNF4SA"} = | |||||
$permsgstatus->{conf}->{scoreset}->[$set]->{"SNF4SA"} = | |||||
sprintf("%0.3f", $deltaScore); | sprintf("%0.3f", $deltaScore); | ||||
} | } | ||||