summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-31 16:26:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-31 16:26:50 +0100
commitd40ecb82d0bc71e15e03b6dc4e8134d71e07ea38 (patch)
tree0d6c62c95f11a5ffb9b9c669a7e49bb2ae35a6ec
parent4b7f055fcde93562958e7be687f7f87c79950dde (diff)
downloadrspamd-d40ecb82d0bc71e15e03b6dc4e8134d71e07ea38.tar.gz
rspamd-d40ecb82d0bc71e15e03b6dc4e8134d71e07ea38.zip
Add 'execute' option.
-rw-r--r--src/client/rspamc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index d6d0e1e23..a65f3b0a0 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 }
};