dovecot-2.2: doveadm user: Avoid initializing the user as much a...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 14 12:56:15 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/70b97cecdacd
changeset: 15643:70b97cecdacd
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 14 12:56:09 2013 +0200
description:
doveadm user: Avoid initializing the user as much as possible.

diffstat:

 src/doveadm/doveadm-auth.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r ca2be7b7da3e -r 70b97cecdacd src/doveadm/doveadm-auth.c
--- a/src/doveadm/doveadm-auth.c	Mon Jan 14 08:38:36 2013 +0200
+++ b/src/doveadm/doveadm-auth.c	Mon Jan 14 12:56:09 2013 +0200
@@ -415,8 +415,11 @@
 
 	if (!userdb_only) {
 		storage_service = mail_storage_service_init(master_service, NULL,
+			MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP |
+			MAIL_STORAGE_SERVICE_FLAG_NO_CHDIR |
 			MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT |
-			MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP);
+			MAIL_STORAGE_SERVICE_FLAG_NO_PLUGINS |
+			MAIL_STORAGE_SERVICE_FLAG_NO_NAMESPACES);
 	}
 
 	while ((input.username = argv[optind++]) != NULL) {


More information about the dovecot-cvs mailing list