From: Vsevolod Stakhov Date: Fri, 31 Jul 2015 15:26:50 +0000 (+0100) Subject: Add 'execute' option. X-Git-Tag: 1.0.0~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d40ecb82d0bc71e15e03b6dc4e8134d71e07ea38;p=thirdparty%2Frspamd.git Add 'execute' option. --- diff --git a/src/client/rspamc.c b/src/client/rspamc.c index d6d0e1e230..a65f3b0a08 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -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 } };