aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorAlex McLellan <alex.mclellan@zephirlidar.com>2013-08-13 13:13:20 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-08-19 10:23:14 +0100
commit9281be36d5206f02336236a7c90020449109816e (patch)
treef9bb1b9cdc728cbfbae73ebec2ea0477ed89f6dd /lib/imap.c
parentf15a88f2b25ee44d8c8d3bdcf2508fdf50f8b868 (diff)
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.
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c3
1 files changed, 2 insertions, 1 deletions
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;