[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.17, 1.18

cras at procontrol.fi cras at procontrol.fi
Tue May 25 01:33:53 EEST 2004


Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv15693/src/lib-index

Modified Files:
	mail-index-sync-update.c 
Log Message:
Fixed var_expand() to take a table of variables rather than a few predefined
ones. Added support for modifiers.



Index: mail-index-sync-update.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- a/mail-index-sync-update.c	24 May 2004 01:50:16 -0000	1.17
+++ b/mail-index-sync-update.c	24 May 2004 22:33:51 -0000	1.18
@@ -81,6 +81,7 @@
 
 	map->records_count -= count;
 	hdr->messages_count -= count;
+	view->messages_count -= count;
 
 	if (map->buffer != NULL) {
 		buffer_set_used_size(map->buffer, map->records_count);
@@ -123,6 +124,7 @@
 	map->records[map->records_count++] = *rec;
 	map->hdr_copy.messages_count++;
 	map->hdr_copy.next_uid = rec->uid+1;
+	view->messages_count++;
 
 	mail_index_header_update_counts(&map->hdr_copy, 0, rec->flags);
 	mail_index_header_update_lowwaters(&map->hdr_copy, rec);



More information about the dovecot-cvs mailing list