]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Don't try to mkdir root directory for unusable namespaces
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 24 Oct 2025 17:18:14 +0000 (20:18 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Sat, 25 Oct 2025 17:23:23 +0000 (17:23 +0000)
The unusable namespaces are for nonexistent user shared namespaces.

src/lib-storage/mailbox-list.c

index 9712d1d679990a863f64e9bc0cd8d8732c2940be..b402a762294c19fac671e02428d6b110dddf2f62 100644 (file)
@@ -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