]> source.dussan.org Git - rspamd.git/commitdiff
* Fix learn command (-m is used instead -w)
authorcebka@lenovo-laptop <cebka@lenovo-laptop>
Mon, 15 Mar 2010 18:17:31 +0000 (21:17 +0300)
committercebka@lenovo-laptop <cebka@lenovo-laptop>
Mon, 15 Mar 2010 18:17:31 +0000 (21:17 +0300)
perl/lib/Mail/Rspamd/Client.pm
src/controller.c

index ee07e446b8edf665af5ba859ea79b92e38b527ce..94e26a0933dda16867a009f3a72af7d483b9972c 100644 (file)
@@ -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";
index 50b2b5f34118abc19000f1c659eeac924080344c..3bafeaa05903bb63a8e7b41ed5e5e421fd686f1d 100644 (file)
@@ -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;
                                                }