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
1 changed files with 2 additions and 1 deletions

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;