]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: Add a default vname_escape_char
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 18 Jan 2021 21:23:37 +0000 (23:23 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 3 Feb 2021 09:04:22 +0000 (09:04 +0000)
Having vname_escape_char guarantees that all the remote mailbox names are
accessible by escaping them as necessary.

src/lib-storage/index/imapc/imapc-storage.c

index e06440f1182134e7f9cfb7b10ee5df5e9c761b2d..674c9d683334110130af8bb5b14acd67dbfc55c7 100644 (file)
@@ -479,6 +479,10 @@ imapc_storage_get_list_settings(const struct mail_namespace *ns ATTR_UNUSED,
        if (set->layout == NULL)
                set->layout = MAILBOX_LIST_NAME_IMAPC;
        set->storage_name_escape_char = IMAPC_LIST_STORAGE_NAME_ESCAPE_CHAR;
+       /* We want to have all imapc mailboxes accessible, so escape them if
+          necessary. */
+       if (set->vname_escape_char == '\0')
+               set->vname_escape_char = IMAPC_LIST_VNAME_ESCAPE_CHAR;
 }
 
 static struct mailbox *