diff options
author | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-03-15 21:17:31 +0300 |
---|---|---|
committer | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-03-15 21:17:31 +0300 |
commit | ff726239c58b83fb0823423e853afcae1785506b (patch) | |
tree | 1d268dc151f08b46824b9f24ffa2a75ce3a6c801 | |
parent | 32b812257da7a72c08a1cc4ebb91b2fec129902a (diff) | |
download | rspamd-ff726239c58b83fb0823423e853afcae1785506b.tar.gz rspamd-ff726239c58b83fb0823423e853afcae1785506b.zip |
* Fix learn command (-m is used instead -w)
-rw-r--r-- | perl/lib/Mail/Rspamd/Client.pm | 2 | ||||
-rw-r--r-- | src/controller.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; } |