# HG changeset patch # User Timo Sirainen # Date 1101685403 -7200 # Node ID b909bce742bf811601e8c99f06ada6808c915922 # Parent 1e0d71e67315dd11ec901830ed9bdaf176eeccb3 Still need to update view->hdr.. diff -r 1e0d71e67315 -r b909bce742bf src/lib-index/mail-index-sync-update.c --- 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;