1) snf4sa.pm correctly reads the configuration for SNFServer result of zero. 2) snf4sa.pm uses static score reporting for spamassassin versions earlier than 3.2.0. git-svn-id: https://svn.microneil.com/svn/PKG-SNF-CS-NIX/trunk@51 233e721a-07f6-49eb-a7da-05e0e16828fcmaster
2010-02-17 Alban Deniz <adeniz@skidmark.localdomain> | |||||
* snf4sa.pm (parse_snf_sa_mapping): Correctly read configuration | |||||
for result code of zero. | |||||
(snf4sa_sacheck): Support static score reporting if dynamic | |||||
scoring isn't supported (spamassassin version earlier than 3.2.0). | |||||
2009-05-16 Alban Deniz <adeniz@skidmark.localdomain> | 2009-05-16 Alban Deniz <adeniz@skidmark.localdomain> | ||||
* snf4sa.pm (snf4sa_sacheck): Submit the contribution to the score | * snf4sa.pm (snf4sa_sacheck): Submit the contribution to the score |
my $rch = $SNF_XCI_Return->{"header"}; # the SNF header(s) | my $rch = $SNF_XCI_Return->{"header"}; # the SNF header(s) | ||||
# DEBUG. | # DEBUG. | ||||
# for (my $i = 0; $i < $permsgstatus->{main}->{conf}->{snfSaMapping}; $i++) { | |||||
# for (my $i = 0; $i < @{$permsgstatus->{main}->{conf}->{snfSaMapping}}; $i++) { | |||||
# if (! defined($permsgstatus->{main}->{conf}->{snfSaMapping}->[$i])) { | # if (! defined($permsgstatus->{main}->{conf}->{snfSaMapping}->[$i])) { | ||||
# print "No configuration for SNFServer code $i\n"; | # print "No configuration for SNFServer code $i\n"; | ||||
# next; | # next; |
ulimit -c unlimited | ulimit -c unlimited | ||||
# Run debug version. | # Run debug version. | ||||
command="/usr/local/bin/strace" | |||||
command=$dir/$debugProg | |||||
# Alternative to run under strace to get system call info. | |||||
#command="/usr/local/bin/strace" | |||||
# Start with output redirected to a file. | # Start with output redirected to a file. | ||||
command_args="-r -tt -v $dir/$debugProg $configFile >> $debugOutputFile 2>&1 &" | |||||
command_args="$configFile >> $debugOutputFile 2>&1 &" | |||||
# Alternative for running under strace. | |||||
#command_args="-r -tt -v $dir/$debugProg $configFile >> $debugOutputFile 2>&1 &" | |||||
else | else | ||||
dnl | dnl | ||||
AC_PREREQ(2.52) | AC_PREREQ(2.52) | ||||
AC_INIT(snf-server, 3.0.10) | |||||
AC_INIT(snf-server, 3.0.11) | |||||
AC_CONFIG_SRCDIR(SNFMulti/snfCFGmgr.cpp) | AC_CONFIG_SRCDIR(SNFMulti/snfCFGmgr.cpp) | ||||
AC_CONFIG_AUX_DIR(config) | AC_CONFIG_AUX_DIR(config) | ||||
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) | AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |