[dovecot-cvs] dovecot/src/lib-index mail-index-view-sync.c, 1.41, 1.42

cras at dovecot.org cras at dovecot.org
Sun May 8 13:09:47 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv1480/lib-index

Modified Files:
	mail-index-view-sync.c 
Log Message:
Removed SYNC_FAST_FLAG from EXPUNGE command. Changed delay-newmail
workaround to also delay EXPUNGE notifications, otherwise things break.
Changed index to force this with assert.



Index: mail-index-view-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-view-sync.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- mail-index-view-sync.c	26 Apr 2005 19:12:08 -0000	1.41
+++ mail-index-view-sync.c	8 May 2005 10:09:45 -0000	1.42
@@ -160,6 +160,10 @@
 	/* We must sync flags as long as view is mmap()ed, as the flags may
 	   have already changed under us. */
 	i_assert((sync_mask & MAIL_INDEX_SYNC_TYPE_FLAGS) != 0);
+	/* Currently we're not handling correctly expunges + no-appends case */
+	i_assert((sync_mask & MAIL_INDEX_SYNC_TYPE_EXPUNGE) == 0 ||
+		 (sync_mask & MAIL_INDEX_SYNC_TYPE_APPEND) != 0);
+
 	i_assert(!view->syncing);
 	i_assert(view->transactions == 0);
 



More information about the dovecot-cvs mailing list