aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-02 16:25:09 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-02 16:25:09 +0000
commit4ee8d22351243e9a79bb40f181786e5650abae47 (patch)
treefdea4ac21bbe7f5c248a6085645069994c64621e /options.c
parente98f220bcfa290b355c724b62b4c8c3c15da8e9c (diff)
downloadfetchmail-4ee8d22351243e9a79bb40f181786e5650abae47.tar.gz
fetchmail-4ee8d22351243e9a79bb40f181786e5650abae47.tar.bz2
fetchmail-4ee8d22351243e9a79bb40f181786e5650abae47.zip
Added plugin/plugout option.
svn path=/trunk/; revision=2168
Diffstat (limited to 'options.c')
-rw-r--r--options.c22
1 files changed, 17 insertions, 5 deletions
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");