dovecot-2.1: mdbox: Don't lose save_dates when rebuilding indexes.

dovecot at dovecot.org dovecot at dovecot.org
Sun Jan 29 00:35:51 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/47018c625680
changeset: 14030:47018c625680
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jan 29 00:35:40 2012 +0200
description:
mdbox: Don't lose save_dates when rebuilding indexes.

diffstat:

 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r dd2f85009ba0 -r 47018c625680 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Sun Jan 29 00:30:23 2012 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Sun Jan 29 00:35:40 2012 +0200
@@ -364,12 +364,12 @@
 	bool expunged;
 	uint32_t seq, uid, new_seq, map_uid;
 
-	memset(&new_dbox_rec, 0, sizeof(new_dbox_rec));
 	hdr = mail_index_get_header(view);
 	for (seq = 1; seq <= hdr->messages_count; seq++) {
 		mail_index_lookup_ext(view, seq, mbox->ext_id,
 				      &data, &expunged);
 		dbox_rec = data;
+		new_dbox_rec = *dbox_rec;
 		map_uid = dbox_rec == NULL ? 0 : dbox_rec->map_uid;
 
 		mail_index_lookup_ext(view, seq, mbox->guid_ext_id,


More information about the dovecot-cvs mailing list