aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-07 21:16:32 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-07 21:16:32 +0000
commitb1b6ddf9079453caa64484f31887cb4273c045bc (patch)
tree1b373f96732a206faa0017de5dc82532f46a08cc /options.c
parentad27c0a72aac927955335303e6cfab5f3ee58ad0 (diff)
downloadfetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.tar.gz
fetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.tar.bz2
fetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.zip
Added LMTP support.
svn path=/trunk/; revision=2177
Diffstat (limited to 'options.c')
-rw-r--r--options.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/options.c b/options.c
index 5a8d2c07..7a8c86f3 100644
--- a/options.c
+++ b/options.c
@@ -59,13 +59,14 @@
#define LA_EXPUNGE 37
#define LA_MDA 38
#define LA_BSMTP 39
-#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
+#define LA_LMTP 40
+#define LA_PLUGIN 41
+#define LA_PLUGOUT 42
+#define LA_NETSEC 43
+#define LA_INTERFACE 44
+#define LA_MONITOR 45
+#define LA_CONFIGDUMP 46
+#define LA_YYDEBUG 47
/* options still left: CDgGhHjJoORwWxXYz */
static const char *shortoptions =
@@ -119,6 +120,7 @@ static const struct option longoptions[] = {
{"expunge", required_argument, (int *) 0, LA_EXPUNGE },
{"mda", required_argument, (int *) 0, LA_MDA },
{"bsmtp", required_argument, (int *) 0, LA_BSMTP },
+ {"lmtp", required_argument, (int *) 0, LA_LMTP },
#ifdef INET6
{"netsec", required_argument, (int *) 0, LA_NETSEC },
@@ -478,6 +480,9 @@ struct query *ctl; /* option record to be initialized */
ctl->bsmtp = xstrdup(optarg);
ocount++;
break;
+ case LA_LMTP:
+ ctl->listener = LMTP_MODE;
+ break;
case 'T':
case LA_NETSEC:
@@ -591,6 +596,7 @@ struct query *ctl; /* option record to be initialized */
P(" -e, --expunge set max deletions between expunges\n");
P(" --mda set MDA to use for forwarding\n");
P(" --bsmtp set output BSMTP file\n");
+ P(" --lmtp use LMTP (RFC2033) for delivery\n");
P(" -r, --folder specify remote folder name\n");
#undef P
return(-1);