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

dovecot at dovecot.org dovecot at dovecot.org
Sun Jan 29 00:36:15 EET 2012


details:   http://hg.dovecot.org/dovecot-2.0/rev/c30ea8aec902
changeset: 13034:c30ea8aec902
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 fd16e200f0f7 -r c30ea8aec902 src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Sat Jan 28 23:58:50 2012 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c	Sun Jan 29 00:35:40 2012 +0200
@@ -385,12 +385,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