]> Pileus Git - ~andy/fetchmail/blobdiff - imap.c
Interpret IMAP PREAUTH tag correctly (from Joerg Dorchain).
[~andy/fetchmail] / imap.c
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)));