[dovecot-cvs] dovecot/src/lib-storage mail-storage.h,1.35,1.36

cras at procontrol.fi cras at procontrol.fi
Fri Feb 14 12:46:46 EET 2003


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

Modified Files:
	mail-storage.h 
Log Message:
Support for IDLE extension.



Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- mail-storage.h	11 Feb 2003 19:37:16 -0000	1.35
+++ mail-storage.h	14 Feb 2003 10:46:44 -0000	1.36
@@ -33,6 +33,12 @@
 	MAILBOX_NAME_NOINFERIORS
 };
 
+enum mailbox_sync_type {
+	MAILBOX_SYNC_NONE,
+	MAILBOX_SYNC_ALL,
+	MAILBOX_SYNC_NO_EXPUNGES
+};
+
 enum modify_type {
 	MODIFY_ADD,
 	MODIFY_REMOVE,
@@ -205,6 +211,11 @@
 	/* Synchronize the mailbox. If sync_expunges is FALSE, everything
 	   but expunges are synced. */
 	int (*sync)(struct mailbox *box, int sync_expunges);
+
+	/* Synchronize mailbox in background. It's done until this function is
+	   called with sync_type = MAILBOX_SYNC_NONE */
+	void (*auto_sync)(struct mailbox *box, enum mailbox_sync_type sync_type,
+			  unsigned int min_newmail_notify_interval);
 
 	/* Expunge all mails with \Deleted flag. If notify is TRUE, call
 	   expunge callbacks. Also always does full syncing. */




More information about the dovecot-cvs mailing list