aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/imap.c b/imap.c
index e6958f67..0a08688d 100644
--- a/imap.c
+++ b/imap.c
@@ -358,11 +358,6 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
error(0, 0, "Protocol identified as IMAP4 rev 0");
}
- /* eat the tail of the CAPABILITY response (if any) */
- if ((peek_capable = (imap_version >= IMAP4)))
- if ((ok = gen_recv(sock, capabilities, sizeof(capabilities))))
- return(ok);
-
#ifdef KERBEROS_V4
if (strstr(capabilities, "AUTH=KERBEROS_V4"))
{
@@ -389,6 +384,11 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
}
#endif /* KERBEROS_V4 */
+ /* eat the tail of the CAPABILITY response (if any) */
+ if ((peek_capable = (imap_version >= IMAP4)))
+ if ((ok = gen_recv(sock, capabilities, sizeof(capabilities))))
+ return(ok);
+
/* try to get authorized in the ordinary (AUTH=LOGIN) way */
ok = gen_transact(sock, "LOGIN %s \"%s\"", ctl->remotename, ctl->password);
if (ok)