[dovecot-cvs] dovecot/src/lib-storage mail-storage.h,1.45,1.46

cras at procontrol.fi cras at procontrol.fi
Sun Jun 15 07:42:31 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage
In directory danu:/tmp/cvs-serv23333/lib-storage

Modified Files:
	mail-storage.h 
Log Message:
Only NOOP and CHECK will now always do a real mailbox sync. Other commands
will also do it but no often than once in 5 seconds. Also with maildir we
don't anymore try to sync it before running commands since syncing is now
done automatically whenever we try to access a file that doesn't exist.



Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- mail-storage.h	4 Jun 2003 15:57:59 -0000	1.45
+++ mail-storage.h	15 Jun 2003 03:42:29 -0000	1.46
@@ -93,6 +93,11 @@
 	MAIL_FETCH_IMAP_ENVELOPE	= 0x4000
 };
 
+enum mail_sync_flags {
+	MAIL_SYNC_FLAG_NO_EXPUNGES	= 0x01,
+	MAIL_SYNC_FLAG_FAST		= 0x02
+};
+
 enum client_workarounds {
 	WORKAROUND_OE6_FETCH_NO_NEWMAIL	= 0x01,
 	WORKAROUND_OUTLOOK_IDLE		= 0x02
@@ -225,9 +230,8 @@
 	int (*get_status)(struct mailbox *box, enum mailbox_status_items items,
 			  struct mailbox_status *status);
 
-	/* Synchronize the mailbox. If sync_expunges is FALSE, everything
-	   but expunges are synced. */
-	int (*sync)(struct mailbox *box, int sync_expunges);
+	/* Synchronize the mailbox. */
+	int (*sync)(struct mailbox *box, enum mail_sync_flags flags);
 
 	/* Synchronize mailbox in background. It's done until this function is
 	   called with sync_type = MAILBOX_SYNC_NONE */



More information about the dovecot-cvs mailing list