changeset 3321:be9bf789a1d4 HEAD

When removing recent flags, we didn't update the recent flag count in header.
author Timo Sirainen <tss@iki.fi>
date Sat, 23 Apr 2005 16:28:22 +0300
parents 0403596c93fd
children 49071cc19102
files src/lib-index/mail-index-sync-update.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync-update.c	Sat Apr 23 12:56:39 2005 +0300
+++ b/src/lib-index/mail-index-sync-update.c	Sat Apr 23 16:28:22 2005 +0300
@@ -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,