[dovecot-cvs] dovecot/src/lib-index mail-index-open.c,1.36,1.37 mail-index.h,1.79,1.80

cras at procontrol.fi cras at procontrol.fi
Sun Jun 15 06:20:54 EEST 2003


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

Modified Files:
	mail-index-open.c mail-index.h 
Log Message:
Dirty maildir flags support works now.



Index: mail-index-open.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-open.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- mail-index-open.c	4 Jun 2003 17:39:37 -0000	1.36
+++ mail-index-open.c	15 Jun 2003 02:20:52 -0000	1.37
@@ -30,6 +30,9 @@
 	index->maildir_have_new =
 		(hdr->flags & MAIL_INDEX_FLAG_MAILDIR_NEW) != 0;
 
+	if ((hdr->flags & MAIL_INDEX_FLAG_DIRTY_MESSAGES) != 0)
+		index->next_dirty_flush = ioloop_time;
+
 	/* 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.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- mail-index.h	4 Jun 2003 15:57:58 -0000	1.79
+++ mail-index.h	15 Jun 2003 02:20:52 -0000	1.80
@@ -404,7 +404,7 @@
 
 	/* last maildir sync: */
 	time_t last_new_mtime, last_uidlist_mtime;
-	time_t maildir_cur_dirty;
+	time_t maildir_cur_dirty, next_dirty_flush;
 	int maildir_lock_fd;
 	pool_t new_filename_pool;
 	struct hash_table *new_filenames;
@@ -458,7 +458,7 @@
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
-	0, 0, 0, 0
+	0, 0, 0, 0, 0
 #endif
 
 /* defaults - same as above but prefixed with mail_index_. */



More information about the dovecot-cvs mailing list