[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.61,
1.62
cras at dovecot.org
cras at dovecot.org
Mon Nov 29 01:43:25 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv8849/lib-index
Modified Files:
mail-index-sync-update.c
Log Message:
Still need to update view->hdr..
Index: mail-index-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- mail-index-sync-update.c 28 Nov 2004 23:26:19 -0000 1.61
+++ mail-index-sync-update.c 28 Nov 2004 23:43:23 -0000 1.62
@@ -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;
More information about the dovecot-cvs
mailing list