]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Restore '-c' flag in the client
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Nov 2015 18:38:02 +0000 (18:38 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Nov 2015 18:38:02 +0000 (18:38 +0000)
src/client/rspamc.c

index 8b21f6d8dd578a0c9e28c69ed7915d4017ca706d..448bd0795351a380a9133a4c3d11b85db3b5a34f 100644 (file)
@@ -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);