]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add 'execute' option.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 31 Jul 2015 15:26:50 +0000 (16:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 31 Jul 2015 15:26:50 +0000 (16:26 +0100)
src/client/rspamc.c

index d6d0e1e2300a353304eefdc0e8d748c910579984..a65f3b0a083a2f024089484f91112cd49dceb709 100644 (file)
@@ -45,6 +45,7 @@ static gchar *helo = "localhost.localdomain";
 static gchar *hostname = "localhost";
 static gchar *classifier = "bayes";
 static gchar *local_addr = NULL;
+static gchar *execute = NULL;
 static gint weight = 0;
 static gint flag = 0;
 static gint max_requests = 8;
@@ -109,6 +110,8 @@ static GOptionEntry entries[] =
           "Output urls in extended format", NULL },
        { "key", 0, 0, G_OPTION_ARG_STRING, &key,
           "Use specified pubkey to encrypt request", NULL },
+       { "exec", 'e', 0, G_OPTION_ARG_STRING, &execute,
+          "Execute the specified command with the message filtered", NULL },
        { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
 };