aboutsummaryrefslogtreecommitdiffstats
path: root/rspamc.pl.in
diff options
context:
space:
mode:
authorcebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-01 19:00:03 +0300
committercebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-01 19:00:03 +0300
commit1b0e6fb87830abe07f2e1ad01da353a4e3f07a83 (patch)
treedc3dbda37f03fca495e7c736ad2759e568d0f36b /rspamc.pl.in
parent7ea00c31332d289842f5b8e3f73ea64cda3968d9 (diff)
downloadrspamd-1b0e6fb87830abe07f2e1ad01da353a4e3f07a83.tar.gz
rspamd-1b0e6fb87830abe07f2e1ad01da353a4e3f07a83.zip
* Add percents of spam and ham detected to stat command output
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 d53084509..86abbc1cd 100755
--- a/rspamc.pl.in
+++ b/rspamc.pl.in
@@ -235,8 +235,8 @@ sub do_control_command {
syswrite $sock, "weights $cfg{'statfile'} $len" . $CRLF;
syswrite $sock, $input . $CRLF;
while (defined (my $reply = <$sock>)) {
- last if $line =~ /^END/;
- print $_;
+ last if $reply =~ /^END/;
+ print $reply;
}
}
elsif ($cfg{'command'} =~ /(reload|shutdown)/i) {