]> Pileus Git - ~andy/fetchmail/commitdiff
Interpret IMAP PREAUTH tag correctly (from Joerg Dorchain).
authorEric S. Raymond <esr@thyrsus.com>
Mon, 20 Dec 1999 03:42:29 +0000 (03:42 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 20 Dec 1999 03:42:29 +0000 (03:42 -0000)
svn path=/trunk/; revision=2668

NEWS
imap.c

diff --git a/NEWS b/NEWS
index 221e1537585cddf4066c2f37994bc57b9fa1917e..5f9f3936543380e8592744bcc2abb0c75b3fa6e9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ a Certifying Authority we recognize?).
 * Federico Schwindt's patch to fix broken SSL configuration.
 * Fixes to use fetchmail with IPv6 enabled on glibc without inet6-apps 
   installed; thanks to Arkadiusz Mi¶kiewicz.
+* Interpret IMAP PREAUTH tag correctly (from Joerg Dorchain).
 
 fetchmail-5.2.0 (Tue Nov 30 14:24:25 EST 1999), 18302 lines:
 * fetchmailconf now complains and exits gracefully when not run under X.
diff --git a/imap.c b/imap.c
index a5cb5c5793532aa7609e12afd7c9548f573b9e03..467a34b9c39c38dd62b70b6692073639742aa257 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -107,6 +107,8 @@ int imap_ok(int sock, char *argbuf)
        }
        if (strstr(buf, "FLAGS"))
            seen = (strstr(buf, "SEEN") != (char *)NULL);
+       if (strstr(buf, "PREAUTH"))
+           preauth = TRUE;
     } while
        (tag[0] != '\0' && strncmp(buf, tag, strlen(tag)));