From: Timo Sirainen Date: Mon, 14 Dec 2009 00:29:56 +0000 (-0500) Subject: script: Don't load mail plugins. X-Git-Tag: 2.0.beta1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5be8f188b20dcc4926ae71f3b1985908079f4875;p=thirdparty%2Fdovecot%2Fcore.git script: Don't load mail plugins. --HG-- branch : HEAD --- diff --git a/src/util/script.c b/src/util/script.c index 510aa92e31..4dac4b92c1 100644 --- a/src/util/script.c +++ b/src/util/script.c @@ -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 struct master_service_connection *conn) 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);