[dovecot-cvs] dovecot: Allow bytes=n in quota rule definitions.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 12 18:36:35 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/3c3159eb7175
changeset: 5702:3c3159eb7175
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 12 18:36:31 2007 +0300
description:
Allow bytes=n in quota rule definitions.

diffstat:

1 file changed, 2 insertions(+)
src/plugins/quota/quota.c |    2 ++

diffs (12 lines):

diff -r d6a86d6367fe -r 3c3159eb7175 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Tue Jun 12 18:06:38 2007 +0300
+++ b/src/plugins/quota/quota.c	Tue Jun 12 18:36:31 2007 +0300
@@ -200,6 +200,8 @@ int quota_root_add_rule(struct quota_roo
 	for (args++; *args != NULL; args++) {
 		if (strncmp(*args, "storage=", 8) == 0)
 			rule->bytes_limit = strtoll(*args + 8, NULL, 10) * 1024;
+		else if (strncmp(*args, "bytes=", 6) == 0)
+			rule->bytes_limit = strtoll(*args + 6, NULL, 10);
 		else if (strncmp(*args, "messages=", 9) == 0)
 			rule->count_limit = strtoll(*args + 9, NULL, 10);
 		else {


More information about the dovecot-cvs mailing list