[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c, 1.34, 1.35

cras at dovecot.org cras at dovecot.org
Mon Jul 12 11:07:06 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv32047/lib-storage/index/maildir

Modified Files:
	maildir-sync.c 
Log Message:
Handle recent flags in index file correctly. Fixes recent flag losing when
copying or saving mails with flags.



Index: maildir-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- maildir-sync.c	3 Jul 2004 17:21:27 -0000	1.34
+++ maildir-sync.c	12 Jul 2004 08:07:03 -0000	1.35
@@ -720,6 +720,17 @@
 			continue;
 		}
 
+		if ((rec->flags & MAIL_RECENT) != 0) {
+			index_mailbox_set_recent(ibox, seq);
+			if (ibox->keep_recent) {
+				flags |= MAIL_RECENT;
+			} else {
+				mail_index_update_flags(trans, seq,
+							MODIFY_REMOVE,
+							MAIL_RECENT, keywords);
+			}
+		}
+
 		if ((uflags & MAILDIR_UIDLIST_REC_FLAG_NONSYNCED) != 0) {
 			/* partial syncing */
 			continue;



More information about the dovecot-cvs mailing list