]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Allow fs layout to have empty mail_path
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 27 Dec 2023 18:01:24 +0000 (13:01 -0500)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:11 +0000 (12:34 +0200)
This has become necessary now  that mail_path can only be an empty string,
not NULL.

src/lib-storage/list/mailbox-list-fs.c

index c18a2bc2d768bd519e9fa31f57f1b29f1b1d636e..e56506099405de4b88e7fab52c2454b19c890afa 100644 (file)
@@ -564,7 +564,9 @@ static int fs_list_rename_mailbox(struct mailbox_list *oldlist,
 
 struct mailbox_list fs_mailbox_list = {
        .name = MAILBOX_LIST_NAME_FS,
-       .props = 0,
+       /* Allow using with empty mail path. Especially useful with pop3c,
+          which can optionally use index files. */
+       .props = MAILBOX_LIST_PROP_NO_ROOT,
        .mailbox_name_max_length = MAILBOX_LIST_NAME_MAX_LENGTH,
 
        .v = {