changeset 4009:fbff841d532a HEAD

Flush the output while writing the "will override lock file" messages, so that the output will actually be sent instead of just left in buffer.
author Timo Sirainen <timo.sirainen@movial.fi>
date Tue, 14 Feb 2006 15:04:17 +0200
parents 4e1a816a82a1
children 6519f3c7bd63
files src/imap/mail-storage-callbacks.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/mail-storage-callbacks.c	Mon Feb 13 20:35:39 2006 +0200
+++ b/src/imap/mail-storage-callbacks.c	Tue Feb 14 15:04:17 2006 +0200
@@ -26,7 +26,8 @@
 	t_push();
 	str = t_strconcat("* OK ", text, "\r\n", NULL);
 	o_stream_send_str(client->output, str);
-	t_pop();
+        o_stream_flush(client->output);
+        t_pop();
 }
 
 static void notify_no(struct mailbox *mailbox __attr_unused__,
@@ -41,6 +42,7 @@
 	t_push();
 	str = t_strconcat("* NO ", text, "\r\n", NULL);
 	o_stream_send_str(client->output, str);
+        o_stream_flush(client->output);
 	t_pop();
 }