]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fix handling LAYOUT=index losing mailbox names
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 15 Nov 2016 22:55:38 +0000 (00:55 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 18 Nov 2016 11:44:26 +0000 (13:44 +0200)
It lost all the mailbox names.

src/lib-storage/list/mailbox-list-index.c

index 98109166abe6479a87cb8d133b6e23e39311d0f7..61d6fc8f9260b92ec2630d6ad22527019adc37f4 100644 (file)
@@ -305,7 +305,7 @@ static int mailbox_list_index_parse_records(struct mailbox_list_index *ilist,
        /* 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);