dovecot-sieve-1.0: If sieve_execute_bytecode() fails, log an error.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 13 01:55:15 EEST 2007


details:   http://hg.dovecot.org/dovecot-sieve-1.0/rev/f8f207198d09
changeset: 22:f8f207198d09
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 13 01:48:38 2007 +0300
description:
If sieve_execute_bytecode() fails, log an error.

diffstat:

1 file changed, 4 insertions(+), 2 deletions(-)
src/sieve-cmu.c |    6 ++++--

diffs (16 lines):

diff -r 64a7986b5e55 -r f8f207198d09 src/sieve-cmu.c
--- a/src/sieve-cmu.c	Tue Jun 19 18:23:17 2007 +0300
+++ b/src/sieve-cmu.c	Fri Jul 13 01:48:38 2007 +0300
@@ -590,8 +590,10 @@ int cmu_sieve_run(struct mail_storage *s
 		i_info("cmusieve: Executing script %s", compiled_path);
 
 	if (sieve_execute_bytecode(bytecode, interp,
-				   &sdata, &mdata) != SIEVE_OK)
-		return -1;
+				   &sdata, &mdata) != SIEVE_OK) {
+		i_error("sieve_execute_bytecode(%s) failed", compiled_path);
+		return -1;
+	}
 
 	return 1;
 }


More information about the dovecot-cvs mailing list