Skip to content
Snippets Groups Projects
Commit bc3d93c5 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Sieve tools: prevent automatically creating mail storage.

parent db97d27a
No related branches found
No related tags found
No related merge requests found
...@@ -335,6 +335,8 @@ void sieve_tool_init_mail_user ...@@ -335,6 +335,8 @@ void sieve_tool_init_mail_user
const char *username = tool->username; const char *username = tool->username;
struct mail_namespace_settings ns_set; struct mail_namespace_settings ns_set;
struct mail_namespace *ns = NULL; struct mail_namespace *ns = NULL;
enum mail_storage_flags storage_flags =
MAIL_STORAGE_FLAG_NO_AUTOCREATE;
const char *home = NULL, *errstr = NULL; const char *home = NULL, *errstr = NULL;
tool->mail_user = mail_user_alloc tool->mail_user = mail_user_alloc
...@@ -356,7 +358,7 @@ void sieve_tool_init_mail_user ...@@ -356,7 +358,7 @@ void sieve_tool_init_mail_user
ns->flags |= NAMESPACE_FLAG_NOQUOTA | NAMESPACE_FLAG_NOACL; ns->flags |= NAMESPACE_FLAG_NOQUOTA | NAMESPACE_FLAG_NOACL;
ns->set = &ns_set; ns->set = &ns_set;
if ( mail_storage_create(ns, NULL, 0, &errstr) < 0 ) if ( mail_storage_create(ns, NULL, storage_flags, &errstr) < 0 )
i_fatal("Test storage creation failed: %s", errstr); i_fatal("Test storage creation failed: %s", errstr);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.