From d40ecb82d0bc71e15e03b6dc4e8134d71e07ea38 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 31 Jul 2015 16:26:50 +0100 Subject: [PATCH] Add 'execute' option. --- src/client/rspamc.c | 3 +++ 1 file changed, 3 insertions(+) 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 } }; -- 2.39.5