[dovecot-cvs] dovecot/src/lib-index mail-index-open.c,1.34,1.35 mail-index.h,1.77,1.78

cras at procontrol.fi cras at procontrol.fi
Fri May 30 02:48:04 EEST 2003


Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv31561/lib-index

Modified Files:
	mail-index-open.c mail-index.h 
Log Message:
Fixes for syncing mails that are kept in new/ dir.



Index: mail-index-open.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-open.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- mail-index-open.c	18 May 2003 12:23:03 -0000	1.34
+++ mail-index-open.c	29 May 2003 22:48:02 -0000	1.35
@@ -27,6 +27,9 @@
 
 	hdr = index->header;
 
+	index->maildir_have_new =
+		(hdr->flags & MAIL_INDEX_FLAG_MAILDIR_NEW) != 0;
+
 	/* update \Recent message counters */
 	if ((flags & MAIL_INDEX_OPEN_FLAG_UPDATE_RECENT) != 0 &&
 	    hdr->last_nonrecent_uid != hdr->next_uid-1) {

Index: mail-index.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- mail-index.h	29 May 2003 21:08:53 -0000	1.77
+++ mail-index.h	29 May 2003 22:48:02 -0000	1.78
@@ -29,14 +29,15 @@
 	/* Rebuild flag is set while index is being rebuilt or when
 	   some error is noticed in the index file. If this flag is set,
 	   the index shouldn't be used before rebuilding it. */
-	MAIL_INDEX_FLAG_REBUILD			= 0x01,
-	MAIL_INDEX_FLAG_FSCK			= 0x02,
-	MAIL_INDEX_FLAG_CACHE_FIELDS		= 0x04,
-	MAIL_INDEX_FLAG_COMPRESS		= 0x08,
-	MAIL_INDEX_FLAG_COMPRESS_DATA		= 0x10,
-	MAIL_INDEX_FLAG_REBUILD_TREE		= 0x20,
-	MAIL_INDEX_FLAG_DIRTY_MESSAGES		= 0x40,
-	MAIL_INDEX_FLAG_DIRTY_CUSTOMFLAGS	= 0x80
+	MAIL_INDEX_FLAG_REBUILD			= 0x0001,
+	MAIL_INDEX_FLAG_FSCK			= 0x0002,
+	MAIL_INDEX_FLAG_CACHE_FIELDS		= 0x0004,
+	MAIL_INDEX_FLAG_COMPRESS		= 0x0008,
+	MAIL_INDEX_FLAG_COMPRESS_DATA		= 0x0010,
+	MAIL_INDEX_FLAG_REBUILD_TREE		= 0x0020,
+	MAIL_INDEX_FLAG_DIRTY_MESSAGES		= 0x0040,
+	MAIL_INDEX_FLAG_DIRTY_CUSTOMFLAGS	= 0x0080,
+	MAIL_INDEX_FLAG_MAILDIR_NEW		= 0x0100
 };
 
 enum mail_data_field {



More information about the dovecot-cvs mailing list