[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.83, 1.84

cras at dovecot.org cras at dovecot.org
Sat Apr 23 16:28:24 EEST 2005


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

Modified Files:
	mail-index-sync-update.c 
Log Message:
When removing recent flags, we didn't update the recent flag count in
header.



Index: mail-index-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- mail-index-sync-update.c	16 Apr 2005 21:41:22 -0000	1.83
+++ mail-index-sync-update.c	23 Apr 2005 13:28:22 -0000	1.84
@@ -544,6 +544,9 @@
 		if ((rec->flags & MAIL_RECENT) != 0)
 			rec->flags &= ~MAIL_RECENT;
 	}
+
+	map->hdr.recent_messages_count = 0;
+	map->hdr.first_recent_uid_lowwater = map->hdr.next_uid;
 }
 
 int mail_index_sync_update_index(struct mail_index_sync_ctx *sync_ctx,



More information about the dovecot-cvs mailing list