[dovecot-cvs] dovecot/src/lib-storage mail-storage.h,1.58,1.59 proxy-mailbox.c,1.2,1.3

cras at procontrol.fi cras at procontrol.fi
Sun Aug 24 16:45:36 EEST 2003


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

Modified Files:
	mail-storage.h proxy-mailbox.c 
Log Message:
IDLE uses now IO_*_NOTIFY to get instant notifying of mails.



Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- mail-storage.h	24 Aug 2003 10:49:15 -0000	1.58
+++ mail-storage.h	24 Aug 2003 12:45:33 -0000	1.59
@@ -47,12 +47,6 @@
 	MAILBOX_NAME_NOINFERIORS
 };
 
-enum mailbox_sync_type {
-	MAILBOX_SYNC_NONE,
-	MAILBOX_SYNC_ALL,
-	MAILBOX_SYNC_NO_EXPUNGES
-};
-
 enum mailbox_lock_type {
 	MAILBOX_LOCK_UNLOCK	= 0x00,
 	MAILBOX_LOCK_READ	= 0x01,
@@ -101,9 +95,11 @@
 	MAIL_FETCH_IMAP_ENVELOPE	= 0x4000
 };
 
-enum mail_sync_flags {
-	MAIL_SYNC_FLAG_NO_EXPUNGES	= 0x01,
-	MAIL_SYNC_FLAG_FAST		= 0x02
+enum mailbox_sync_flags {
+	MAILBOX_SYNC_NONE		= 0x00,
+	MAILBOX_SYNC_FULL		= 0x01,
+	MAILBOX_SYNC_FAST		= 0x02,
+	MAILBOX_SYNC_FLAG_NO_EXPUNGES	= 0x04
 };
 
 enum client_workarounds {
@@ -249,11 +245,11 @@
 			  struct mailbox_status *status);
 
 	/* Synchronize the mailbox. */
-	int (*sync)(struct mailbox *box, enum mail_sync_flags flags);
+	int (*sync)(struct mailbox *box, enum mailbox_sync_flags flags);
 
 	/* 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,
+	   called with flags = MAILBOX_SYNC_NONE. */
+	void (*auto_sync)(struct mailbox *box, enum mailbox_sync_flags flags,
 			  unsigned int min_newmail_notify_interval);
 
 	/* Initialize new fetch request. wanted_fields isn't required, but it

Index: proxy-mailbox.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/proxy-mailbox.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- proxy-mailbox.c	6 Aug 2003 20:15:32 -0000	1.2
+++ proxy-mailbox.c	24 Aug 2003 12:45:33 -0000	1.3
@@ -39,19 +39,19 @@
 	return p->box->get_status(p->box, items, status);
 }
 
-static int _sync(struct mailbox *box, enum mail_sync_flags flags)
+static int _sync(struct mailbox *box, enum mailbox_sync_flags flags)
 {
 	struct proxy_mailbox *p = (struct proxy_mailbox *) box;
 
 	return p->box->sync(p->box, flags);
 }
 
-static void _auto_sync(struct mailbox *box, enum mailbox_sync_type sync_type,
+static void _auto_sync(struct mailbox *box, enum mailbox_sync_flags flags,
 		       unsigned int min_newmail_notify_interval)
 {
 	struct proxy_mailbox *p = (struct proxy_mailbox *) box;
 
-	p->box->auto_sync(p->box, sync_type, min_newmail_notify_interval);
+	p->box->auto_sync(p->box, flags, min_newmail_notify_interval);
 }
 
 static struct mail_fetch_context *



More information about the dovecot-cvs mailing list