changeset 2732:69c521ecf570 HEAD

Make sure nothing is buffered in mbox stream when syncing.
author Timo Sirainen <tss@iki.fi>
date Mon, 11 Oct 2004 17:29:51 +0300
parents b63b4080c6b2
children 9b9d9c164a31
files src/lib-storage/index/mbox/mbox-sync.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c	Mon Oct 11 17:25:01 2004 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Mon Oct 11 17:29:51 2004 +0300
@@ -1237,6 +1237,9 @@
 		lock_id = 0;
 	}
 
+	/* reopen input stream to make sure it has nothing buffered */
+        mbox_file_close_stream(ibox);
+
 __again:
 	if (changed) {
 		/* we're most likely modifying the mbox while syncing, just