dovecot-2.0: script: Don't load mail plugins.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Dec 14 02:30:01 EET 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/093865257852
changeset: 10463:093865257852
user: Timo Sirainen <tss at iki.fi>
date: Sun Dec 13 19:29:56 2009 -0500
description:
script: Don't load mail plugins.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/util/script.c | 3 ++-
diffs (20 lines):
diff -r 2a74d458339d -r 093865257852 src/util/script.c
--- a/src/util/script.c Sun Dec 13 19:28:16 2009 -0500
+++ b/src/util/script.c Sun Dec 13 19:29:56 2009 -0500
@@ -23,6 +23,7 @@ static bool drop_privileges = FALSE;
static void client_connected(const struct master_service_connection *conn)
{
+ enum mail_storage_service_flags flags = MAIL_STORAGE_SERVICE_NO_PLUGINS;
string_t *instr, *keys;
const char **args, *key, *value, *error;
struct mail_storage_service_ctx *service_ctx;
@@ -89,7 +90,7 @@ static void client_connected(const struc
master_service_init_log(master_service,
t_strdup_printf("script(%s): ", input.username));
- service_ctx = mail_storage_service_init(master_service, NULL, 0);
+ service_ctx = mail_storage_service_init(master_service, NULL, flags);
if (mail_storage_service_lookup(service_ctx, &input, &user, &error) < 0)
i_fatal("%s", error);
mail_storage_service_restrict_setenv(service_ctx, user);
More information about the dovecot-cvs
mailing list