]> 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)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 18 Oct 2022 11:54:03 +0000 (11:54 +0000)
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 c150cd45a76a3d03ec1605e105f833ab4025e53b..fcfecb0c110bf315e1286ea995d50a8e8e38a320 100644 (file)
@@ -580,8 +580,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);
 }