From: Alex McLellan Date: Tue, 13 Aug 2013 12:13:20 +0000 (+0100) Subject: imap: Fixed response check for SEARCH command X-Git-Tag: curl-7_33_0~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9281be36d5206f02336236a7c90020449109816e;p=curl imap: Fixed response check for SEARCH command Adding this line allows libcurl to return the server response when performing a search command via a custom request. --- diff --git a/lib/imap.c b/lib/imap.c index 13a11d0b0..a8d95190b 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -307,7 +307,8 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len, (strcmp(imap->custom, "STORE") || !imap_matchresp(line, len, "FETCH")) && strcmp(imap->custom, "SELECT") && - strcmp(imap->custom, "EXAMINE"))) + strcmp(imap->custom, "EXAMINE") && + strcmp(imap->custom, "SEARCH"))) return FALSE; break;