diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | imap.c | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -55,6 +55,9 @@ fetchmail 6.3.5 (not yet released): input buffer when the message has been completely read, to avoid taking trailing garbage into the message if the terminal CRLF is missing. Fixes Debian Bug#312415. (Patch suggested by Mike Jones, Manchester Univ.). +* When using NTLM authentication, use regular IMAP response code handler after + completing NTLM handshake, for robustness and consistency. + (Taken from the NetBSD portable packages collection, patch-ac.) # TRANSLATION UPDATES: * Russian/ru (Pavel Maryanov), Vietnamese/vi (Clytie Siddall) @@ -263,10 +263,8 @@ static int do_imap_ntlm(int sock, struct query *ctl) strcat(msgbuf,"\r\n"); SockWrite (sock, msgbuf, strlen (msgbuf)); - if ((result = gen_recv (sock, msgbuf, sizeof msgbuf))) - return result; - - if (strstr (msgbuf, "OK")) + result = imap_ok (sock, NULL); + if (result == PS_SUCCESS) return PS_SUCCESS; else return PS_AUTHFAIL; |