dovecot-2.0: Mail storage service: Added MAIL_STORAGE_SERVICE_NO...

dovecot at dovecot.org dovecot at dovecot.org
Mon Dec 14 02:28:25 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/21c0676961e8
changeset: 10461:21c0676961e8
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Dec 13 19:27:27 2009 -0500
description:
Mail storage service: Added MAIL_STORAGE_SERVICE_NO_PLUGINS flag.

diffstat:

2 files changed, 5 insertions(+), 1 deletion(-)
src/lib-storage/mail-storage-service.c |    2 ++
src/lib-storage/mail-storage-service.h |    4 +++-

diffs (26 lines):

diff -r b07f913040b1 -r 21c0676961e8 src/lib-storage/mail-storage-service.c
--- a/src/lib-storage/mail-storage-service.c	Fri Dec 11 19:26:26 2009 -0500
+++ b/src/lib-storage/mail-storage-service.c	Sun Dec 13 19:27:27 2009 -0500
@@ -651,6 +651,8 @@ mail_storage_service_load_modules(struct
 
 	if (*user_set->mail_plugins == '\0')
 		return;
+	if ((ctx->flags & MAIL_STORAGE_SERVICE_NO_PLUGINS) != 0)
+		return;
 
 	mail_set = mail_user_set_get_driver_settings(user_info, user_set,
 						MAIL_STORAGE_SET_DRIVER_NAME);
diff -r b07f913040b1 -r 21c0676961e8 src/lib-storage/mail-storage-service.h
--- a/src/lib-storage/mail-storage-service.h	Fri Dec 11 19:26:26 2009 -0500
+++ b/src/lib-storage/mail-storage-service.h	Sun Dec 13 19:27:27 2009 -0500
@@ -22,7 +22,9 @@ enum mail_storage_service_flags {
 	/* Enable core dumps even when dropping privileges temporarily */
 	MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS	= 0x40,
 	/* Don't initialize logging or change log prefixes */
-	MAIL_STORAGE_SERVICE_NO_LOG_INIT		= 0x80
+	MAIL_STORAGE_SERVICE_NO_LOG_INIT		= 0x80,
+	/* Don't load plugins in _service_lookup() */
+	MAIL_STORAGE_SERVICE_NO_PLUGINS			= 0x100
 };
 
 struct mail_storage_service_input {


More information about the dovecot-cvs mailing list