dovecot-2.2-pigeonhole: lib-sieve: file storage: Warning about a...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Sat Aug 23 19:12:06 UTC 2014


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/3b964432b84b
changeset: 1908:3b964432b84b
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Sat Aug 23 21:11:54 2014 +0200
description:
lib-sieve: file storage: Warning about active script not being a symlink was triggered at inappropriate times.
Fixed by issueing the warning only when storage is opened as READWRITE (ManageSieve).

diffstat:

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

diffs (13 lines):

diff -r 1e388884d31c -r 3b964432b84b src/lib-sieve/storage/file/sieve-file-storage-active.c
--- a/src/lib-sieve/storage/file/sieve-file-storage-active.c	Tue Aug 05 18:25:12 2014 +0200
+++ b/src/lib-sieve/storage/file/sieve-file-storage-active.c	Sat Aug 23 21:11:54 2014 +0200
@@ -78,7 +78,8 @@
 			 * Activating a script will automatically resolve this, so
 			 * there is no need to panic on this one.
 			 */
-			if ( (storage->flags & SIEVE_STORAGE_FLAG_SYNCHRONIZING) == 0 ) {
+			if ( (storage->flags & SIEVE_STORAGE_FLAG_READWRITE) != 0 &&
+				(storage->flags & SIEVE_STORAGE_FLAG_SYNCHRONIZING) == 0 ) {
 				sieve_storage_sys_warning(storage,
 					"Active sieve script symlink %s is no symlink.",
 				  fstorage->active_path);


More information about the dovecot-cvs mailing list