From bc3d93c589e3eaad348d94ba1860aa88d45b1c3c Mon Sep 17 00:00:00 2001 From: Stephan Bosch <stephan@rename-it.nl> Date: Wed, 26 Jan 2011 00:51:55 +0100 Subject: [PATCH] Sieve tools: prevent automatically creating mail storage. --- src/lib-sieve-tool/sieve-tool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib-sieve-tool/sieve-tool.c b/src/lib-sieve-tool/sieve-tool.c index 1a6e5e130..9bc93c6dc 100644 --- a/src/lib-sieve-tool/sieve-tool.c +++ b/src/lib-sieve-tool/sieve-tool.c @@ -335,6 +335,8 @@ void sieve_tool_init_mail_user const char *username = tool->username; struct mail_namespace_settings ns_set; struct mail_namespace *ns = NULL; + enum mail_storage_flags storage_flags = + MAIL_STORAGE_FLAG_NO_AUTOCREATE; const char *home = NULL, *errstr = NULL; tool->mail_user = mail_user_alloc @@ -356,7 +358,7 @@ void sieve_tool_init_mail_user ns->flags |= NAMESPACE_FLAG_NOQUOTA | NAMESPACE_FLAG_NOACL; 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); } -- GitLab