From: cebka@lenovo-laptop Date: Mon, 15 Mar 2010 18:17:31 +0000 (+0300) Subject: * Fix learn command (-m is used instead -w) X-Git-Tag: 0.3.0~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ff726239c58b83fb0823423e853afcae1785506b;p=rspamd.git * Fix learn command (-m is used instead -w) --- diff --git a/perl/lib/Mail/Rspamd/Client.pm b/perl/lib/Mail/Rspamd/Client.pm index ee07e446b..94e26a093 100644 --- a/perl/lib/Mail/Rspamd/Client.pm +++ b/perl/lib/Mail/Rspamd/Client.pm @@ -965,7 +965,7 @@ sub _do_control_command { if ($self->_auth ($remote)) { my $len = length ($msg); - syswrite $remote, "learn $self->{statfile} $len -w $self->{weight}" . $EOL; + syswrite $remote, "learn $self->{statfile} $len -m $self->{weight}" . $EOL; syswrite $remote, $msg . $EOL; unless ($self->_get_io_readiness($remote, 0)) { $res{error} = "Timeout while reading data from socket"; diff --git a/src/controller.c b/src/controller.c index 50b2b5f34..3bafeaa05 100644 --- a/src/controller.c +++ b/src/controller.c @@ -533,7 +533,7 @@ process_command (struct controller_command *cmd, char **cmd_args, struct control case 'm': arg = *(cmd_args + 1); if (!arg || *arg == '\0') { - r = snprintf (out_buf, sizeof (out_buf), "recipient is not defined" CRLF); + r = snprintf (out_buf, sizeof (out_buf), "multiplier is not defined" CRLF); rspamd_dispatcher_write (session->dispatcher, out_buf, r, FALSE, FALSE); return; }