dovecot-2.0: maildir++ quota: Support "NOQUOTA" as valid backend...

dovecot at dovecot.org dovecot at dovecot.org
Wed May 19 16:48:25 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/b42184927518
changeset: 11332:b42184927518
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 19 15:48:20 2010 +0200
description:
maildir++ quota: Support "NOQUOTA" as valid backend string.

diffstat:

 src/plugins/quota/quota-maildir.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r c17e111b0d65 -r b42184927518 src/plugins/quota/quota-maildir.c
--- a/src/plugins/quota/quota-maildir.c	Wed May 19 15:03:46 2010 +0200
+++ b/src/plugins/quota/quota-maildir.c	Wed May 19 15:48:20 2010 +0200
@@ -741,7 +741,10 @@
 {
 	uint64_t bytes, count;
 
-	if (!maildir_parse_limit(str, &bytes, &count)) {
+	if (strcmp(str, "NOQUOTA") == 0) {
+		bytes = 0;
+		count = 0;
+	} else if (!maildir_parse_limit(str, &bytes, &count)) {
 		*error_r = "Invalid Maildir++ quota rule";
 		return FALSE;
 	}


More information about the dovecot-cvs mailing list