dovecot-2.0-managesieve: Adjusted to changes in Sieve library API.

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Wed Dec 30 01:20:44 EET 2009


details:   http://hg.rename-it.nl/dovecot-2.0-managesieve/rev/e608769dd9f9
changeset: 210:e608769dd9f9
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Wed Dec 30 00:20:11 2009 +0100
description:
Adjusted to changes in Sieve library API.

diffstat:

 src/lib-sievestorage/sieve-storage.c |  10 +++++-----
 src/managesieve/managesieve-client.c |   4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r 64f68a8f510b -r e608769dd9f9 src/lib-sievestorage/sieve-storage.c
--- a/src/lib-sievestorage/sieve-storage.c	Sun Dec 27 12:06:09 2009 +0100
+++ b/src/lib-sievestorage/sieve-storage.c	Wed Dec 30 00:20:11 2009 +0100
@@ -141,11 +141,11 @@
 	 * Read settings 
 	 */
 
-	active_path = sieve_get_setting(svinst, "sieve");
-    sieve_data = sieve_get_setting(svinst, "sieve_dir");
+	active_path = sieve_setting_get(svinst, "sieve");
+    sieve_data = sieve_setting_get(svinst, "sieve_dir");
 
 	if ( sieve_data == NULL )
-		sieve_data = sieve_get_setting(svinst, "sieve_storage");
+		sieve_data = sieve_setting_get(svinst, "sieve_storage");
 
 	/* Get path to active Sieve script */
 
@@ -287,12 +287,12 @@
 	storage->max_storage = 0;
 	storage->max_scripts = 0;
 
-	if ( sieve_get_size_setting
+	if ( sieve_setting_get_size_value
 		(svinst, "sieve_quota_max_storage", &size_setting) ) {
 		storage->max_storage = size_setting;
     }
 
-	if ( sieve_get_uint_setting
+	if ( sieve_setting_get_uint_value
 		(svinst, "sieve_quota_max_scripts", &uint_setting) ) {
 		storage->max_scripts = uint_setting;
 	}
diff -r 64f68a8f510b -r e608769dd9f9 src/managesieve/managesieve-client.c
--- a/src/managesieve/managesieve-client.c	Sun Dec 27 12:06:09 2009 +0100
+++ b/src/managesieve/managesieve-client.c	Wed Dec 30 00:20:11 2009 +0100
@@ -60,7 +60,7 @@
     return mail_user_plugin_getenv(mail_user, identifier);
 }
 
-static const struct sieve_callbacks managesieve_sieve_callbacks = {
+static const struct sieve_environment managesieve_sieve_env = {
 	managesieve_sieve_get_homedir,
     managesieve_sieve_get_setting
 };
@@ -117,7 +117,7 @@
 
 	/* Initialize Sieve instance */
 
-	svinst = sieve_init(&managesieve_sieve_callbacks, (void *) user);
+	svinst = sieve_init(&managesieve_sieve_env, (void *) user);
 
 	/* Get Sieve storage */
 


More information about the dovecot-cvs mailing list