[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.96.2.10, 1.96.2.11

tss at dovecot.org tss at dovecot.org
Thu Feb 1 21:08:10 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv1402

Modified Files:
      Tag: branch_1_0
	mail-index-sync-update.c 
Log Message:
Setting flags other than seen/deleted was broken.



Index: mail-index-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.96.2.10
retrieving revision 1.96.2.11
diff -u -d -r1.96.2.10 -r1.96.2.11
--- mail-index-sync-update.c	23 Jan 2007 16:10:55 -0000	1.96.2.10
+++ mail-index-sync-update.c	1 Feb 2007 21:08:08 -0000	1.96.2.11
@@ -401,6 +401,10 @@
 	if (((u->add_flags | u->remove_flags) &
 	     (MAIL_SEEN | MAIL_DELETED | MAIL_RECENT)) == 0) {
 		/* we're not modifying any counted/lowwatered flags */
+		for (idx = seq1-1; idx < seq2; idx++) {
+			rec = MAIL_INDEX_MAP_IDX(view->map, idx);
+			rec->flags = (rec->flags & flag_mask) | u->add_flags;
+		}
 	} else if (view->broken_counters || ctx->unreliable_flags) {
 		view->broken_counters = TRUE;
 		for (idx = seq1-1; idx < seq2; idx++) {



More information about the dovecot-cvs mailing list