dovecot-2.0: sdbox: In-memory mailbox GUID differed from on-inde...

dovecot at dovecot.org dovecot at dovecot.org
Sat Apr 30 15:55:24 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/663528c5c799
changeset: 12761:663528c5c799
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Apr 30 15:55:08 2011 +0300
description:
sdbox: In-memory mailbox GUID differed from on-index GUID after mailbox_create().

diffstat:

 src/lib-storage/index/dbox-single/sdbox-storage.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r bf8c2edfbc3e -r 663528c5c799 src/lib-storage/index/dbox-single/sdbox-storage.c
--- a/src/lib-storage/index/dbox-single/sdbox-storage.c	Fri Apr 29 19:10:52 2011 +0300
+++ b/src/lib-storage/index/dbox-single/sdbox-storage.c	Sat Apr 30 15:55:08 2011 +0300
@@ -118,6 +118,8 @@
 		mail_index_update_header_ext(trans, mbox->hdr_ext_id, 0,
 					     &new_hdr, sizeof(new_hdr));
 	}
+	memcpy(mbox->mailbox_guid, new_hdr.mailbox_guid,
+	       sizeof(mbox->mailbox_guid));
 }
 
 static int sdbox_mailbox_create_indexes(struct mailbox *box,


More information about the dovecot-cvs mailing list