diff options
-rw-r--r-- | perl/lib/Mail/Rspamd/Client.pm | 2 | ||||
-rwxr-xr-x | rspamc.pl.in | 3 |
2 files changed, 1 insertions, 4 deletions
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}); } |