1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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.
This commit is contained in:
Alex McLellan 2013-08-13 13:13:20 +01:00 committed by Steve Holme
parent f15a88f2b2
commit 9281be36d5

View File

@ -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;