From: Steve Holme Date: Wed, 11 Sep 2013 19:13:24 +0000 (+0100) Subject: imap: Fixed response check for LSUB and UID commands X-Git-Tag: curl-7_33_0~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3c9749a4031d6f08523e973b4367750714508a3;p=thirdparty%2Fcurl.git imap: Fixed response check for LSUB and UID commands --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 59310f2246..ed3853e6bb 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -26,7 +26,7 @@ This release includes the following bugfixes: o tests 2032, 2033: Don't hardcode port in expected output o urlglob: better detect unclosed braces, empty lists and overflows [7] o urlglob: error out on range overflow [8] - o imap: Fixed response check for SEARCH and EXPUNGE commands [10] + o imap: Fixed response check for SEARCH, EXPUNGE, LSUB and UID commands [10] o handle arbitrary-length username and password [2] o TFTP: make the CURLOPT_LOW_SPEED* options work [4] o curl.h: name space pollution by "enum type" [5] diff --git a/lib/imap.c b/lib/imap.c index 6a3b364493..5011692d15 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -310,7 +310,9 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len, strcmp(imap->custom, "SELECT") && strcmp(imap->custom, "EXAMINE") && strcmp(imap->custom, "SEARCH") && - strcmp(imap->custom, "EXPUNGE"))) + strcmp(imap->custom, "EXPUNGE") && + strcmp(imap->custom, "LSUB") && + strcmp(imap->custom, "UID"))) return FALSE; break;