From 4ee8d22351243e9a79bb40f181786e5650abae47 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 2 Nov 1998 16:25:09 +0000 Subject: Added plugin/plugout option. svn path=/trunk/; revision=2168 --- options.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'options.c') diff --git a/options.c b/options.c index f173dd3a..5a8d2c07 100644 --- a/options.c +++ b/options.c @@ -59,11 +59,13 @@ #define LA_EXPUNGE 37 #define LA_MDA 38 #define LA_BSMTP 39 -#define LA_NETSEC 40 -#define LA_INTERFACE 41 -#define LA_MONITOR 42 -#define LA_CONFIGDUMP 43 -#define LA_YYDEBUG 44 +#define LA_PLUGIN 40 +#define LA_PLUGOUT 41 +#define LA_NETSEC 42 +#define LA_INTERFACE 43 +#define LA_MONITOR 44 +#define LA_CONFIGDUMP 45 +#define LA_YYDEBUG 46 /* options still left: CDgGhHjJoORwWxXYz */ static const char *shortoptions = @@ -126,6 +128,8 @@ static const struct option longoptions[] = { {"interface", required_argument, (int *) 0, LA_INTERFACE }, {"monitor", required_argument, (int *) 0, LA_MONITOR }, #endif /* defined(linux) && !INET6 */ + {"plugin", required_argument, (int *) 0, LA_PLUGIN }, + {"plugout", required_argument, (int *) 0, LA_PLUGOUT }, {"configdump",no_argument, (int *) 0, LA_CONFIGDUMP }, @@ -495,6 +499,12 @@ struct query *ctl; /* option record to be initialized */ ctl->server.monitor = xstrdup(optarg); break; #endif /* defined(linux) && !INET6 */ + case LA_PLUGIN: + ctl->server.plugin = xstrdup(optarg); + break; + case LA_PLUGOUT: + ctl->server.plugout = xstrdup(optarg); + break; case 'y': case LA_YYDEBUG: @@ -550,6 +560,8 @@ struct query *ctl; /* option record to be initialized */ P(" -I, --interface interface required specification\n"); P(" -M, --monitor monitor interface for activity\n"); #endif + P(" --plugin specify external command to open connection\n"); + P(" --plugout specify external command to open smtp connection\n"); P(" -p, --protocol specify retrieval protocol (see man page)\n"); P(" -U, --uidl force the use of UIDLs (pop3 only)\n"); -- cgit v1.2.3