changeset 21128:549d507c6de6

lib-storage: Fix handling LAYOUT=index losing mailbox names It lost all the mailbox names.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 16 Nov 2016 00:55:38 +0200
parents 3547bfd66243
children de3d25050d97
files src/lib-storage/list/mailbox-list-index.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index.c	Fri Nov 11 13:40:55 2016 +0200
+++ b/src/lib-storage/list/mailbox-list-index.c	Wed Nov 16 00:55:38 2016 +0200
@@ -305,7 +305,7 @@
 	/* do a second scan to create the actual mailbox tree hierarchy.
 	   this is needed because the parent_uid may be smaller or higher than
 	   the current node's uid */
-	if (*error_r != NULL)
+	if (*error_r != NULL && ilist->has_backing_store)
 		count = 0;
 	for (seq = 1; seq <= count; seq++) {
 		mail_index_lookup_uid(view, seq, &uid);