aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-27 19:21:49 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-27 19:21:49 +0000
commitcda98906893b358d8dd22775af95c9ade5cfe5e5 (patch)
tree34c1005ce799b43b623fed8426c4582497d55038 /options.c
parent52788ad79c407f4f9a4e898e06d736730a2fe00a (diff)
downloadfetchmail-cda98906893b358d8dd22775af95c9ade5cfe5e5.tar.gz
fetchmail-cda98906893b358d8dd22775af95c9ade5cfe5e5.tar.bz2
fetchmail-cda98906893b358d8dd22775af95c9ade5cfe5e5.zip
Add imap-k4 capability.
svn path=/trunk/; revision=1029
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/options.c b/options.c
index fcc5fddf..74893519 100644
--- a/options.c
+++ b/options.c
@@ -177,8 +177,6 @@ struct query *ctl; /* option record to be initialized */
ctl->server.protocol = P_POP2;
else if (strcasecmp(optarg,"pop3") == 0)
ctl->server.protocol = P_POP3;
- else if (strcasecmp(optarg,"imap") == 0)
- ctl->server.protocol = P_IMAP;
else if (strcasecmp(optarg,"apop") == 0)
ctl->server.protocol = P_APOP;
else if (strcasecmp(optarg,"rpop") == 0)
@@ -189,6 +187,12 @@ struct query *ctl; /* option record to be initialized */
ctl->server.port = KPOP_PORT;
ctl->server.authenticate = A_KERBEROS_V4;
}
+ else if (strcasecmp(optarg,"imap") == 0)
+ ctl->server.protocol = P_IMAP;
+#ifdef KERBEROS_V4
+ else if (strcasecmp(optarg,"imap-k4") == 0)
+ ctl->server.protocol = P_IMAP_K4;
+#endif /* KERBEROS_V4 */
else if (strcasecmp(optarg,"etrn") == 0)
ctl->server.protocol = P_ETRN;
else {