]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: raw storage - Avoid using mail_storage_create() driver parameter
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 1 Nov 2023 14:57:43 +0000 (16:57 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
It will be removed in a later commit.

src/lib-storage/index/raw/raw-storage.c

index 03cb87f52c704b3e9744072175f0f64699338a9d..92d5b7c08044299b504080746134dbcb60d043f7 100644 (file)
@@ -63,7 +63,7 @@ raw_storage_create_from_set(struct mail_storage_service_ctx *ctx,
 
        ns_set = p_new(user->pool, struct mail_namespace_settings, 1);
        ns_set->name = "raw-storage";
-       ns_set->location = ":LAYOUT=none";
+       ns_set->location = "raw::LAYOUT=none";
        ns_set->separator = "/";
 
        ns = mail_namespaces_init_empty(user);
@@ -73,7 +73,7 @@ raw_storage_create_from_set(struct mail_storage_service_ctx *ctx,
        ns->flags |= NAMESPACE_FLAG_NOQUOTA | NAMESPACE_FLAG_NOACL;
        ns->set = ns_set;
 
-       if (mail_storage_create(ns, "raw", 0, &error) < 0)
+       if (mail_storage_create(ns, NULL, 0, &error) < 0)
                i_fatal("Couldn't create internal raw storage: %s", error);
        if (mail_namespaces_init_finish(ns, &error) < 0)
                i_fatal("Couldn't create internal raw namespace: %s", error);