From cda98906893b358d8dd22775af95c9ade5cfe5e5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 27 May 1997 19:21:49 +0000 Subject: Add imap-k4 capability. svn path=/trunk/; revision=1029 --- options.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'options.c') 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 { -- cgit v1.2.3