aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-11-11 19:24:00 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-11-11 19:24:00 +0000
commit4d9ebfc1ae8788f66be711273d73bf4831a7cd4e (patch)
treedaebb4a9a23e88cd09eefc12d78feb194c9ee938 /options.c
parent63a3fd1876062cdff8e59feca193a840a91bc0c8 (diff)
downloadfetchmail-4d9ebfc1ae8788f66be711273d73bf4831a7cd4e.tar.gz
fetchmail-4d9ebfc1ae8788f66be711273d73bf4831a7cd4e.tar.bz2
fetchmail-4d9ebfc1ae8788f66be711273d73bf4831a7cd4e.zip
Ready to ship.
svn path=/trunk/; revision=2983
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/options.c b/options.c
index 6f9aaceb..86e10ebc 100644
--- a/options.c
+++ b/options.c
@@ -79,6 +79,7 @@
#endif
#define LA_SHOWDOTS 53
+#define LA_PRINCIPAL 54
/* options still left: CDgGhHjJoORwWxXYz */
static const char *shortoptions =
@@ -147,6 +148,8 @@ static const struct option longoptions[] = {
{"sslcert", required_argument, (int *) 0, LA_SSLCERT },
#endif
+ {"principal", required_argument, (int *) 0, LA_PRINCIPAL },
+
#if (defined(linux) && !INET6_ENABLE) || defined(__FreeBSD__)
{"interface", required_argument, (int *) 0, LA_INTERFACE },
{"monitor", required_argument, (int *) 0, LA_MONITOR },
@@ -559,6 +562,10 @@ struct query *ctl; /* option record to be initialized */
break;
#endif
+ case LA_PRINCIPAL:
+ ctl->server.principal = xstrdup(optarg);
+ break;
+
case 'y':
case LA_YYDEBUG:
yydebug = TRUE;
@@ -629,6 +636,7 @@ struct query *ctl; /* option record to be initialized */
P(_(" -t, --timeout server nonresponse timeout\n"));
P(_(" -E, --envelope envelope address header\n"));
P(_(" -Q, --qvirtual prefix to remove from local user id\n"));
+ P(_(" --principal mail service principal\n"));
P(_(" -u, --username specify users's login on server\n"));
P(_(" -a, --all retrieve old and new messages\n"));