aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-23 18:38:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-23 18:38:02 +0000
commitbda6ff4cc2b609a9ffd6d00acd17f67ff7509ca1 (patch)
tree2292643bb949776c00975370c30a7e236e485213 /src
parent3280d0a385cc84c4f2b44a556c26a73291d59820 (diff)
downloadrspamd-bda6ff4cc2b609a9ffd6d00acd17f67ff7509ca1.tar.gz
rspamd-bda6ff4cc2b609a9ffd6d00acd17f67ff7509ca1.zip
Restore '-c' flag in the client
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 8b21f6d8d..448bd0795 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -45,7 +45,7 @@ static gchar **rcpts = NULL;
static gchar *user = NULL;
static gchar *helo = "rspamc.local";
static gchar *hostname = "localhost";
-static gchar *classifier = "bayes";
+static gchar *classifier = NULL;
static gchar *local_addr = NULL;
static gchar *execute = NULL;
static gchar *sort = NULL;
@@ -434,6 +434,9 @@ add_options (GQueue *opts)
if (pass_all) {
ADD_CLIENT_HEADER (opts, "Pass", "all");
}
+ if (classifier) {
+ ADD_CLIENT_HEADER (opts, "Classifier", classifier);
+ }
if (weight != 0) {
numbuf = g_string_sized_new (8);
rspamd_printf_gstring (numbuf, "%d", weight);