[dovecot-cvs] dovecot/src/lib-storage mail-storage.h,1.74,1.75

cras at dovecot.org cras at dovecot.org
Sun Aug 15 06:40:34 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv20173/lib-storage

Modified Files:
	mail-storage.h 
Log Message:
We never do blocking reads/writes to network anymore. Changed imap and pop3
processes to use a single I/O loop.

Not much tested yet, and currently LIST/LSUB may eat too much memory and
APPEND eats all CPU.



Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- mail-storage.h	22 Jul 2004 21:20:00 -0000	1.74
+++ mail-storage.h	15 Aug 2004 03:40:31 -0000	1.75
@@ -84,9 +84,17 @@
 };
 
 enum mailbox_sync_flags {
+	/* Normally syncing checks if mailbox has changed, if yes it reads it
+	   but doesn't necessarily write our internal state back to mailbox.
+
+	   Fast syncing doesn't necessarily even check if mailbox has changed.
+
+	   Full syncing makes sure our internal state is fully synced with the
+	   mailbox. */
 	MAILBOX_SYNC_FLAG_FAST		= 0x01,
-	MAILBOX_SYNC_FLAG_NO_EXPUNGES	= 0x02,
-	MAILBOX_SYNC_AUTO_STOP		= 0x04
+	MAILBOX_SYNC_FLAG_FULL		= 0x02,
+	MAILBOX_SYNC_FLAG_NO_EXPUNGES	= 0x04,
+	MAILBOX_SYNC_AUTO_STOP		= 0x08
 };
 
 enum mailbox_sync_type {



More information about the dovecot-cvs mailing list