]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: When running SEARCH on "background", run it through command_exec()
authorTimo Sirainen <tss@iki.fi>
Mon, 21 Sep 2015 10:59:22 +0000 (13:59 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 21 Sep 2015 10:59:22 +0000 (13:59 +0300)
Otherwise all the timing information isn't right and the pre/post hooks
weren't being called so stats counting was also wrong.

src/imap/imap-search.c

index be91519ff20b959a831b5a510e85705afa6e7a71..dadc86cde66634cff3821f5f29f87ece09551fbf 100644 (file)
@@ -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)