changeset 2906:b909bce742bf HEAD

Still need to update view->hdr..
author Timo Sirainen <tss@iki.fi>
date Mon, 29 Nov 2004 01:43:23 +0200
parents 1e0d71e67315
children 8fa07cbfd68e
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	Mon Nov 29 01:26:19 2004 +0200
+++ b/src/lib-index/mail-index-sync-update.c	Mon Nov 29 01:43:23 2004 +0200
@@ -250,6 +250,7 @@
 
 	map->records_count -= count;
 	map->hdr.messages_count -= count;
+	view->hdr.messages_count -= count;
 
 	if (map->buffer != NULL) {
 		buffer_set_used_size(map->buffer, map->records_count *
@@ -291,6 +292,7 @@
 	map->hdr.messages_count++;
 	map->hdr.next_uid = rec->uid+1;
 	map->records_count++;
+	view->hdr.messages_count++;
 
 	if ((rec->flags & MAIL_INDEX_MAIL_FLAG_DIRTY) != 0)
 		map->hdr.flags |= MAIL_INDEX_HDR_FLAG_HAVE_DIRTY;
@@ -1185,6 +1187,7 @@
 		}
 	}
 	i_assert(view->map == index->map);
+	view->hdr = map->hdr;
 
         mail_index_view_unlock(view);
 	return ret;