dovecot-2.2-pigeonhole: Adjusted to Dovecot dict API changes.

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Sat Oct 13 11:36:21 EEST 2012


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/6979dbc334fa
changeset: 1697:6979dbc334fa
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Sat Oct 13 10:36:11 2012 +0200
description:
Adjusted to Dovecot dict API changes.

diffstat:

 src/lib-sieve/sieve-script-dict.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 9f9459bd038f -r 6979dbc334fa src/lib-sieve/sieve-script-dict.c
--- a/src/lib-sieve/sieve-script-dict.c	Sat Oct 13 10:35:19 2012 +0200
+++ b/src/lib-sieve/sieve-script-dict.c	Sat Oct 13 10:36:11 2012 +0200
@@ -68,7 +68,7 @@
 	struct sieve_instance *svinst = _script->svinst;
 	struct sieve_error_handler *ehandler = _script->ehandler;
 	const char *username = NULL, *name = _script->name;
-	const char *path;
+	const char *path, *error;
 	int ret;
 
 	if ( options != NULL ) {
@@ -117,11 +117,11 @@
 
 	script->dict_uri = p_strdup(_script->pool, data);
 	ret = dict_init(script->dict_uri, DICT_DATA_TYPE_STRING, username,
-		svinst->base_dir, &script->dict);
+		svinst->base_dir, &script->dict, &error);
 	if ( ret < 0 ) {
 		sieve_critical(svinst, ehandler, name, "failed to open sieve script",
 			"sieve dict backend: failed to initialize dict with data `%s' "
-			"for user `%s'", data, username);
+			"for user `%s': error", data, username, error);
 		*error_r = SIEVE_ERROR_TEMP_FAIL;
 		return -1;
 	}


More information about the dovecot-cvs mailing list