diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-10-14 06:39:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-10-14 06:39:59 +0000 |
commit | 7643d809b0b8c010098f4116319a2543016e6e24 (patch) | |
tree | 861b747c278d5923908db691d4b2af43992cbfe6 /imap.c | |
parent | 43f884871dffd82350a3081343ac3ac4e54426c4 (diff) | |
download | fetchmail-7643d809b0b8c010098f4116319a2543016e6e24.tar.gz fetchmail-7643d809b0b8c010098f4116319a2543016e6e24.tar.bz2 fetchmail-7643d809b0b8c010098f4116319a2543016e6e24.zip |
Fix IMAP-K4.
svn path=/trunk/; revision=1513
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |