[dovecot-cvs] dovecot/src/imap cmd-search.c,1.33,1.34

tss at dovecot.org tss at dovecot.org
Mon Mar 26 02:51:14 EEST 2007


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv14732

Modified Files:
	cmd-search.c 
Log Message:
Send search result in one write()



Index: cmd-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-search.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- cmd-search.c	25 Mar 2007 22:46:24 -0000	1.33
+++ cmd-search.c	25 Mar 2007 23:51:12 -0000	1.34
@@ -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 {



More information about the dovecot-cvs mailing list