[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.85,
1.86
cras at dovecot.org
cras at dovecot.org
Thu Sep 23 12:40:51 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv7395/lib-storage/index/mbox
Modified Files:
mbox-sync.c
Log Message:
If MBOX_SYNC_FLAG_FULL is given, make sure we remove dirty syncing.
Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- mbox-sync.c 11 Sep 2004 20:20:25 -0000 1.85
+++ mbox-sync.c 23 Sep 2004 09:40:48 -0000 1.86
@@ -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);
}
More information about the dovecot-cvs
mailing list