dovecot-2.1: quota: mailbox_get_status(STATUS_CHECK_OVER_QUOTA) ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 27 02:42:02 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/bebe54e1d640
changeset: 14805:bebe54e1d640
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 27 02:41:53 2012 +0200
description:
quota: mailbox_get_status(STATUS_CHECK_OVER_QUOTA) returned wrong value on success.
This fixes lmtp_rcpt_check_quota=yes

diffstat:

 src/plugins/quota/quota-storage.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1ac96aad5027 -r bebe54e1d640 src/plugins/quota/quota-storage.c
--- a/src/plugins/quota/quota-storage.c	Tue Nov 27 02:20:37 2012 +0200
+++ b/src/plugins/quota/quota-storage.c	Tue Nov 27 02:41:53 2012 +0200
@@ -87,7 +87,7 @@
 		if ((items & ~STATUS_CHECK_OVER_QUOTA) == 0) {
 			/* don't bother calling parent, it may unnecessarily
 			   try to open the mailbox */
-			return ret;
+			return ret < 0 ? -1 : 0;
 		}
 	}
 


More information about the dovecot-cvs mailing list