dovecot-2.2-pigeonhole: lib-sieve: fileinto/keep: don't log quot...

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


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/7301a7ed8800
changeset: 1692:7301a7ed8800
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Thu Oct 11 01:48:29 2012 +0200
description:
lib-sieve: fileinto/keep: don't log quota errors to syslog but rather to user's log.
Prevents administrator frustration about useless log messages caused by users with too much mail.

diffstat:

 src/lib-sieve/sieve-actions.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 1963a329c539 -r 7301a7ed8800 src/lib-sieve/sieve-actions.c
--- a/src/lib-sieve/sieve-actions.c	Wed Sep 26 21:52:32 2012 +0200
+++ b/src/lib-sieve/sieve-actions.c	Thu Oct 11 01:48:29 2012 +0200
@@ -604,8 +604,9 @@
 				(mailbox_get_storage(trans->box), &error_code);
 		}
 
-		if ( error_code != MAIL_ERROR_NOTFOUND && error_code != MAIL_ERROR_PARAMS )
-			{
+		if ( error_code != MAIL_ERROR_NOTFOUND && error_code != MAIL_ERROR_PARAMS &&
+			error_code != MAIL_ERROR_NOSPACE)
+		{
 			sieve_result_global_error(aenv, "failed to store into mailbox %s: %s",
 				mailbox_name, errstr);
 		} else {


More information about the dovecot-cvs mailing list