dovecot-2.0-pigeonhole: Sieve tools: prevent automatically creat...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Wed Jan 26 01:52:03 EET 2011


details:   http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/dcaa91e4c7e5
changeset: 1469:dcaa91e4c7e5
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Wed Jan 26 00:51:55 2011 +0100
description:
Sieve tools: prevent automatically creating mail storage.

diffstat:

 src/lib-sieve-tool/sieve-tool.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r ab3833311fc9 -r dcaa91e4c7e5 src/lib-sieve-tool/sieve-tool.c
--- a/src/lib-sieve-tool/sieve-tool.c	Tue Jan 25 02:44:29 2011 +0100
+++ b/src/lib-sieve-tool/sieve-tool.c	Wed Jan 26 00:51:55 2011 +0100
@@ -335,6 +335,8 @@
 	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 @@
 	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);
 }
 


More information about the dovecot-cvs mailing list