dovecot-2.0: dbox: Fixed creating new mailboxes.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 4 19:45:48 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/97679435f892
changeset: 9442:97679435f892
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 04 12:45:33 2009 -0400
description:
dbox: Fixed creating new mailboxes.
diffstat:
1 file changed, 4 insertions(+)
src/lib-storage/index/dbox/dbox-storage.c | 4 ++++
diffs (18 lines):
diff -r d43232f22ace -r 97679435f892 src/lib-storage/index/dbox/dbox-storage.c
--- a/src/lib-storage/index/dbox/dbox-storage.c Thu Jun 04 12:45:14 2009 -0400
+++ b/src/lib-storage/index/dbox/dbox-storage.c Thu Jun 04 12:45:33 2009 -0400
@@ -205,10 +205,14 @@ static void dbox_write_index_header(stru
struct dbox_index_header hdr;
uint32_t uid_validity;
+ if (dbox_map_open(mbox->storage->map, TRUE) < 0)
+ return;
+
trans = mail_index_transaction_begin(mbox->ibox.view, 0);
/* set dbox header */
memset(&hdr, 0, sizeof(hdr));
+ hdr.map_uid_validity = dbox_map_get_uid_validity(mbox->storage->map);
mail_index_update_header_ext(trans, mbox->dbox_hdr_ext_id, 0,
&hdr, sizeof(hdr));
More information about the dovecot-cvs
mailing list