From: cebka@lenovo-laptop Date: Mon, 15 Mar 2010 18:22:42 +0000 (+0300) Subject: * Another addition to learning X-Git-Tag: 0.3.0~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4df6a746d9ef3fb4237cec750238f3dada86e847;p=rspamd.git * Another addition to learning --- diff --git a/perl/lib/Mail/Rspamd/Client.pm b/perl/lib/Mail/Rspamd/Client.pm index 94e26a093..dd09d4a2f 100644 --- a/perl/lib/Mail/Rspamd/Client.pm +++ b/perl/lib/Mail/Rspamd/Client.pm @@ -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; } diff --git a/rspamc.pl.in b/rspamc.pl.in index 6a7bac233..979c4a02e 100755 --- a/rspamc.pl.in +++ b/rspamc.pl.in @@ -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}); }