From: Vsevolod Stakhov Date: Mon, 23 Nov 2015 18:38:02 +0000 (+0000) Subject: Restore '-c' flag in the client X-Git-Tag: 1.1.0~496 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bda6ff4cc2b609a9ffd6d00acd17f67ff7509ca1;p=thirdparty%2Frspamd.git Restore '-c' flag in the client --- diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 8b21f6d8dd..448bd07953 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);