dovecot-2.1: mdbox: Fixed initial mailbox creation to work again...

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 9 01:00:27 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/41bd2d4c013d
changeset: 14081:41bd2d4c013d
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 09 00:59:44 2012 +0200
description:
mdbox: Fixed initial mailbox creation to work again without errors.

diffstat:

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

diffs (13 lines):

diff -r 1e2e69ea3095 -r 41bd2d4c013d src/lib-storage/index/dbox-multi/mdbox-map.c
--- a/src/lib-storage/index/dbox-multi/mdbox-map.c	Thu Feb 09 00:41:25 2012 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-map.c	Thu Feb 09 00:59:44 2012 +0200
@@ -195,7 +195,8 @@
 	mdbox_map_cleanup(map);
 
 	if (mail_index_get_header(map->view)->uid_validity == 0) {
-		if (mdbox_map_generate_uid_validity(map) < 0) {
+		if (mdbox_map_generate_uid_validity(map) < 0 ||
+		    mdbox_map_refresh(map) < 0) {
 			mail_storage_set_internal_error(MAP_STORAGE(map));
 			mail_index_reset_error(map->index);
 			mail_index_close(map->index);


More information about the dovecot-cvs mailing list