[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.109, 1.110
tss at dovecot.org
tss at dovecot.org
Thu Feb 1 21:08:13 UTC 2007
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv1398
Modified Files:
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.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- mail-index-sync-update.c 23 Jan 2007 16:10:58 -0000 1.109
+++ mail-index-sync-update.c 1 Feb 2007 21:08:10 -0000 1.110
@@ -402,6 +402,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