From: Timo Sirainen Date: Mon, 21 Sep 2015 10:59:22 +0000 (+0300) Subject: imap: When running SEARCH on "background", run it through command_exec() X-Git-Tag: 2.2.19.rc1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7c841fd6dc508d87db8b1b64ea1a8f4cb0b8971;p=thirdparty%2Fdovecot%2Fcore.git imap: When running SEARCH on "background", run it through command_exec() Otherwise all the timing information isn't right and the pre/post hooks weren't being called so stats counting was also wrong. --- diff --git a/src/imap/imap-search.c b/src/imap/imap-search.c index be91519ff2..dadc86cde6 100644 --- a/src/imap/imap-search.c +++ b/src/imap/imap-search.c @@ -516,7 +516,7 @@ static void cmd_search_more_callback(struct client_command_context *cmd) bool finished; o_stream_cork(client->output); - finished = cmd_search_more(cmd); + finished = command_exec(cmd); o_stream_uncork(client->output); if (!finished)