aboutsummaryrefslogtreecommitdiffstats
path: root/rspamc.pl.in
diff options
context:
space:
mode:
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";