dovecot-2.2: imap: When running SEARCH on "background", run it t...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 21 11:04:07 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/c607ef95a785
changeset: 19159:c607ef95a785
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 21 13:59:22 2015 +0300
description:
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.

diffstat:

 src/imap/imap-search.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 91f68c1b9b36 -r c607ef95a785 src/imap/imap-search.c
--- a/src/imap/imap-search.c	Sun Sep 20 22:25:11 2015 +0300
+++ b/src/imap/imap-search.c	Mon Sep 21 13:59:22 2015 +0300
@@ -516,7 +516,7 @@
 	bool finished;
 
 	o_stream_cork(client->output);
-	finished = cmd_search_more(cmd);
+	finished = command_exec(cmd);
 	o_stream_uncork(client->output);
 
 	if (!finished)


More information about the dovecot-cvs mailing list