aboutsummaryrefslogtreecommitdiffstats
path: root/rspamc.pl.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-03 21:28:50 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-03 21:28:50 +0300
commit2f551bd813a96567bac80aeaa186b706571b69f7 (patch)
treeae3705b93cbfe24376221b060b22d60ab6cac622 /rspamc.pl.in
parent56379fcf26379a1588e3ca9ad4bdb1c7f370d2c7 (diff)
downloadrspamd-2f551bd813a96567bac80aeaa186b706571b69f7.tar.gz
rspamd-2f551bd813a96567bac80aeaa186b706571b69f7.zip
* Many major fixes to statfiles:
- fix bug with mmapping files: new addresses must NOT be allocated in shared memory by themselves - fix bug with winnow classifier that totally brokes it down - fix bug with too much grow of values * Use double precission values in statistics * Add statistics for statfiles * Add more informative data to output of LEARN command (weight of incoming message) * Add weight to output of classifier as well
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-xrspamc.pl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/rspamc.pl.in b/rspamc.pl.in
index 17e830e3b..f628fb3d1 100755
--- a/rspamc.pl.in
+++ b/rspamc.pl.in
@@ -169,8 +169,8 @@ sub do_control_command {
syswrite $sock, "learn $cfg{'statfile'} $len" . $CRLF;
syswrite $sock, $input . $CRLF;
if (defined (my $reply = <$sock>)) {
- if ($reply =~ /^learn ok/) {
- print "Learn succeed\n";
+ if ($reply =~ /^learn ok, sum weight: ([0-9.]+)/) {
+ print "Learn succeed. Sum weight: $1\n";
}
else {
print "Learn failed\n";