]> source.dussan.org Git - rspamd.git/commitdiff
* Another addition to learning
authorcebka@lenovo-laptop <cebka@lenovo-laptop>
Mon, 15 Mar 2010 18:22:42 +0000 (21:22 +0300)
committercebka@lenovo-laptop <cebka@lenovo-laptop>
Mon, 15 Mar 2010 18:22:42 +0000 (21:22 +0300)
perl/lib/Mail/Rspamd/Client.pm
rspamc.pl.in

index 94e26a0933dda16867a009f3a72af7d483b9972c..dd09d4a2ff4a6acec5232c35b568ff566fc540a3 100644 (file)
@@ -981,7 +981,7 @@ sub _do_control_command {
                 }
                 else {
                                        $res{error_code} = 500;
-                    $res{error} = "Learn failed\n";
+                    $res{error} = "Learn failed: $reply\n";
                                        close($remote);
                                        return \%res;
                 }
index 6a7bac2330ab780d54363aa0c1dc547fa7a7ae8e..979c4a02ea0a90f4accd241d1bb2d1497c062a1f 100755 (executable)
@@ -260,9 +260,6 @@ if ($cmd =~ /SYMBOLS|SCAN|PROCESS|CHECK|REPORT_IFSPAM|REPORT|URLS|EMAILS|LEARN|F
        $cfg{'require_input'} = 1;
 }
 
-if ($do_parse_config != 0) {
-}
-
 if (defined ($args{H})) {
        load_hosts_file ($args{H});
 }