aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-15 21:42:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-15 21:42:13 +0000
commit500203dbb870d239773485d6a80d3c41a21ee88e (patch)
treeb6dfb77298253d74adf446f970b1bd12742d7e65
parent57d1fc752a122e2fa3a89ec3d01e1c7a555de2fa (diff)
downloadrspamd-500203dbb870d239773485d6a80d3c41a21ee88e.tar.gz
rspamd-500203dbb870d239773485d6a80d3c41a21ee88e.zip
Allow multiple recipients passed through header
-rw-r--r--src/client/rspamc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 6163050a0..8b21f6d8d 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -41,7 +41,7 @@ static gchar *password = NULL;
static gchar *ip = NULL;
static gchar *from = NULL;
static gchar *deliver_to = NULL;
-static gchar *rcpt = NULL;
+static gchar **rcpts = NULL;
static gchar *user = NULL;
static gchar *helo = "rspamc.local";
static gchar *hostname = "localhost";
@@ -99,7 +99,7 @@ static GOptionEntry entries[] =
"Emulate that message is delivered to specified user", NULL },
{ "from", 'F', 0, G_OPTION_ARG_STRING, &from,
"Emulate that message is from specified user", NULL },
- { "rcpt", 'r', 0, G_OPTION_ARG_STRING, &rcpt,
+ { "rcpt", 'r', 0, G_OPTION_ARG_STRING_ARRAY, &rcpts,
"Emulate that message is for specified user", NULL },
{ "helo", 0, 0, G_OPTION_ARG_STRING, &helo,
"Imitate SMTP HELO passing from MTA", NULL },