From 2a426472978a989857d2e1ed213256af5a5f5ef5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 18 Jan 2021 23:23:37 +0200 Subject: [PATCH] imapc: Add a default vname_escape_char 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib-storage/index/imapc/imapc-storage.c b/src/lib-storage/index/imapc/imapc-storage.c index e06440f118..674c9d6833 100644 --- a/src/lib-storage/index/imapc/imapc-storage.c +++ b/src/lib-storage/index/imapc/imapc-storage.c @@ -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 * -- 2.47.3