summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-15 21:22:42 +0300
committercebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-15 21:22:42 +0300
commit4df6a746d9ef3fb4237cec750238f3dada86e847 (patch)
tree8fac3feb5790c355271d1ab9e743a391fdabfbde
parentff726239c58b83fb0823423e853afcae1785506b (diff)
downloadrspamd-4df6a746d9ef3fb4237cec750238f3dada86e847.tar.gz
rspamd-4df6a746d9ef3fb4237cec750238f3dada86e847.zip
* Another addition to learning
-rw-r--r--perl/lib/Mail/Rspamd/Client.pm2
-rwxr-xr-xrspamc.pl.in3
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});
}