changeset 2656:4a708855a533 HEAD

If MBOX_SYNC_FLAG_FULL is given, make sure we remove dirty syncing.
author Timo Sirainen <tss@iki.fi>
date Thu, 23 Sep 2004 12:40:48 +0300
parents 2b5d4de3d827
children b89f471a0e04
files src/lib-storage/index/mbox/mbox-sync.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c	Thu Sep 23 12:18:39 2004 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Thu Sep 23 12:40:48 2004 +0300
@@ -1322,8 +1322,11 @@
 	int ret = 0;
 
 	if ((flags & MAILBOX_SYNC_FLAG_FAST) == 0 ||
-	    ibox->sync_last_check + MAILBOX_FULL_SYNC_INTERVAL <= ioloop_time)
+	    ibox->sync_last_check + MAILBOX_FULL_SYNC_INTERVAL <= ioloop_time) {
+		if ((flags & MAILBOX_SYNC_FLAG_FULL) != 0)
+			mbox_sync_flags |= MBOX_SYNC_UNDIRTY;
 		ret = mbox_sync(ibox, mbox_sync_flags);
+	}
 
 	return index_mailbox_sync_init(box, flags, ret < 0);
 }