Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5423:2500d126f865 HEAD
Send search result in one write()
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 26 Mar 2007 02:51:12 +0300 |
parents | 01c63c0adc3b |
children | 448901e76f93 |
files | src/imap/cmd-search.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-search.c Mon Mar 26 02:45:49 2007 +0300 +++ b/src/imap/cmd-search.c Mon Mar 26 02:51:12 2007 +0300 @@ -106,8 +106,13 @@ static void cmd_search_more_callback(struct client_command_context *cmd) { struct client *client = cmd->client; + bool finished; - if (cmd_search_more(cmd)) { + o_stream_cork(client->output); + finished = cmd_search_more(cmd); + o_stream_uncork(client->output); + + if (finished) { client_command_free(cmd); client_continue_pending_input(client); } else {