From a26f73e57c6e500d3f988bba6f6d4a8662bbc24f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 24 Oct 2025 20:18:14 +0300 Subject: [PATCH] lib-storage: Don't try to mkdir root directory for unusable namespaces The unusable namespaces are for nonexistent user shared namespaces. --- src/lib-storage/mailbox-list.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib-storage/mailbox-list.c b/src/lib-storage/mailbox-list.c index 9712d1d679..b402a76229 100644 --- a/src/lib-storage/mailbox-list.c +++ b/src/lib-storage/mailbox-list.c @@ -1438,6 +1438,8 @@ int mailbox_list_mkdir_missing_index_root(struct mailbox_list *list) if (list->index_root_dir_created) return 1; + if ((list->ns->flags & NAMESPACE_FLAG_UNUSABLE) != 0) + return -1; /* If index root dir hasn't been created yet, do it now. Do this here even if the index directory is the same as mail root -- 2.47.3