]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Change mailbox_list.mail_set to use also storage name-specific settings
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 27 Oct 2023 10:31:19 +0000 (13:31 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
src/lib-storage/mail-storage.c

index 750c3fc63edda6762cf2b608a0ce30bee041af3d..89648a87e3c9e7ed081b1c596491aea8e38df958 100644 (file)
@@ -385,6 +385,10 @@ mail_storage_create_full_real(struct mail_namespace *ns, const char *driver,
                if ((storage_class->class_flags & MAIL_STORAGE_CLASS_FLAG_NO_LIST_DELETES) != 0)
                        list_flags |= MAILBOX_LIST_FLAG_NO_DELETES;
                struct event *event = event_create(ns->user->event);
+               /* Lookup storage-specific settings, especially to get
+                  storage-specific defaults for mailbox list settings. */
+               event_set_ptr(event, SETTINGS_EVENT_FILTER_NAME,
+                             (void *)storage_class->name);
                event_add_str(event, "namespace", ns->set->name);
                if (mailbox_list_create(list_set.layout, event, ns, &list_set,
                                        list_flags, &list, error_r) < 0) {