dovecot-2.0-pigeonhole: ManageSieve: forgot to initialize Sieve ...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Wed May 5 16:42:51 EEST 2010


details:   http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/6dfabcae83f7
changeset: 1269:6dfabcae83f7
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Wed May 05 15:42:44 2010 +0200
description:
ManageSieve: forgot to initialize Sieve extensions.

diffstat:

 src/managesieve/managesieve-client.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 861ffb523cb9 -r 6dfabcae83f7 src/managesieve/managesieve-client.c
--- a/src/managesieve/managesieve-client.c	Mon May 03 20:02:55 2010 +0200
+++ b/src/managesieve/managesieve-client.c	Wed May 05 15:42:44 2010 +0200
@@ -62,7 +62,7 @@
 
 static const struct sieve_environment managesieve_sieve_env = {
 	managesieve_sieve_get_homedir,
-    managesieve_sieve_get_setting
+	managesieve_sieve_get_setting
 };
 
 static void client_idle_timeout(struct client *client)
@@ -124,6 +124,11 @@
 
 	svinst = sieve_init(&managesieve_sieve_env, (void *) user);
 
+	extensions = mail_user_plugin_getenv(user, "sieve_extensions");
+	if ( extensions != NULL ) {
+		sieve_set_extensions(svinst, extensions);
+	}
+
 	/* Get Sieve storage */
 
 	storage = client_get_storage(svinst, user, set);	


More information about the dovecot-cvs mailing list