]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: list - Add separators to mailbox names when decoding from index
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 18 Oct 2022 08:35:22 +0000 (11:35 +0300)
committerMarkus Valentin <markus.valentin@open-xchange.com>
Thu, 20 Oct 2022 08:55:32 +0000 (10:55 +0200)
Mailbox name header decode did not add separators to name,
producing only FooBarBar, when it was supposed to give
Foo/Bar/Baz.

Broken in 8216a079d8aac93e2537ed79485e301350ff3887

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

index 5a38ca78bdd51594bd1bfccb46c903f7a4d6a874..9c8a718d132af2ef7327790945861467f6c1cf2e 100644 (file)
@@ -579,8 +579,10 @@ mailbox_name_hdr_decode_storage_name(struct mailbox_list *list,
                                        list->set.maildir_name));
                }
 
-               if (p != NULL)
+               if (p != NULL) {
                        name_hdr += name_part_len + 1;
+                       str_append_c(storage_name, list_sep);
+               }
        }
        return str_c(storage_name);
 }