dovecot-2.2-pigeonhole: lib-sieve: file storage: Don't tempfail ...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Thu Jul 24 13:21:36 UTC 2014


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/2a489c1fdaee
changeset: 1890:2a489c1fdaee
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Thu Jul 24 15:20:47 2014 +0200
description:
lib-sieve: file storage: Don't tempfail on missing active script.

diffstat:

 src/lib-sieve/storage/file/sieve-file-storage-active.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r 5ffb5eba8246 -r 2a489c1fdaee src/lib-sieve/storage/file/sieve-file-storage-active.c
--- a/src/lib-sieve/storage/file/sieve-file-storage-active.c	Thu Jul 24 12:53:51 2014 +0200
+++ b/src/lib-sieve/storage/file/sieve-file-storage-active.c	Thu Jul 24 15:20:47 2014 +0200
@@ -288,9 +288,11 @@
 		fscript = sieve_file_script_open_from_path(fstorage,
 			fstorage->active_path, NULL, NULL);
 		if ( fscript == NULL ) {
-			sieve_storage_set_critical(storage,
-				"Failed to open active path `%s' as regular file",
-				fstorage->active_path);
+			if ( storage->error_code != SIEVE_ERROR_NOT_FOUND ) {
+				sieve_storage_set_critical(storage,
+					"Failed to open active path `%s' as regular file: %s",
+					fstorage->active_path, storage->error);
+			}
 			return NULL;
 		}
 


More information about the dovecot-cvs mailing list