Browse Source

Corrected calculation of GBUdb contribution to SA score:

 sqrt(abs(p * c)) * weight.

Updated README, INSTALL, and incremented version to 0.9.1.


git-svn-id: https://svn.microneil.com/svn/PKG-SNF-CS-NIX/trunk@17 233e721a-07f6-49eb-a7da-05e0e16828fc
master
adeniz 15 years ago
parent
commit
4ad15f749b

+ 4
- 3
SNF_CS_Developer_Package.3.0.2_p4/SNF4SA/INSTALL View File

score. The GBUdb probability p and confidence c add the following score. The GBUdb probability p and confidence c add the following
value to the SpamAssasin score: value to the SpamAssasin score:
(p * c) ^ 2 * sign(p) * MaxWeight
abs(p * c) ^ 0.5 * sign(p) * MaxWeight
where sign(p) is -1 if p < 0, and +1 otherwise, and MaxWeight is where sign(p) is -1 if p < 0, and +1 otherwise, and MaxWeight is
specified on a configuration line. MaxWeight is greater than or
equal to zero.
specified in a configuration line. MaxWeight is greater than or
equal to zero. If MaxWeight isn't specified in the configuration
file, then the GBUdb results don't affect the SpamAssassin score.
To specify which emails to process, use a line similar to: To specify which emails to process, use a line similar to:

+ 4
- 3
SNF_CS_Developer_Package.3.0.2_p4/SNF4SA/README View File

The GBUdb scan result also changes the score by: The GBUdb scan result also changes the score by:
(p * c) ^ 2 * sign(p) * MaxWeight
abs(p * c) ^ 0.5 * sign(p) * MaxWeight
where p is the probability and c is the confidence returned by the where p is the probability and c is the confidence returned by the
GBUdb scan, sign(p) is -1 if p < 0 and +1 otherwise, and MaxWeight is GBUdb scan, sign(p) is -1 if p < 0 and +1 otherwise, and MaxWeight is
specified in the configuration file. If SNFServer is not configured specified in the configuration file. If SNFServer is not configured
to insert the GBUdb scan results into a header in the message, then
the SpamAssassin score is not affected by the GBUdb scan results.
to insert the GBUdb scan results into a header in the message, or
MaxWeight is not specified in the configuration file, then the
SpamAssassin score is not affected by the GBUdb scan results.
In addition to scanning the message, the plugin inserts headers into In addition to scanning the message, the plugin inserts headers into
the email. The SNFServer must be configured to insert the headers the email. The SNFServer must be configured to insert the headers

+ 1
- 1
SNF_CS_Developer_Package.3.0.2_p4/SNF4SA/configure.ac View File

dnl dnl
AC_PREREQ(2.52) AC_PREREQ(2.52)


AC_INIT(snf4sa, 0.9.0)
AC_INIT(snf4sa, 0.9.1)
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)



+ 6
- 3
SNF_CS_Developer_Package.3.0.2_p4/SNF4SA/snf4sa.pm View File

#print "calc_GBUdb. p: $p, ind0: $ind0, ind1: $ind1\n"; # DEBUG #print "calc_GBUdb. p: $p, ind0: $ind0, ind1: $ind1\n"; # DEBUG
# Calculate and return the score. # Calculate and return the score.
my $score = ($p * $c);
$score *= $score * $weight;
my $score = abs($p * $c) ** 0.5;
$score *= $weight;
if ($p < 0.0) { if ($p < 0.0) {
$score *= -1.0; $score *= -1.0;
} }
#print "calc_GBUdb. score: $score\n"; # DEBUG
# DEBUG.
#print "calc_GBUdb. p: $p, c: $c, weight: $weight\n";
#print "calc_GBUdb. score: $score\n";
# END OF DEBUG.
return $score; return $score;
} }

Loading…
Cancel
Save