dovecot-2.0: quota: Ignore quota limits for admin users.

dovecot at dovecot.org dovecot at dovecot.org
Sat Nov 5 19:27:44 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/00157fd523ea
changeset: 12956:00157fd523ea
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 05 19:37:02 2011 +0200
description:
quota: Ignore quota limits for admin users.

diffstat:

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

diffs (15 lines):

diff -r 0330312d2182 -r 00157fd523ea src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Fri Nov 04 21:57:05 2011 +0000
+++ b/src/plugins/quota/quota.c	Sat Nov 05 19:37:02 2011 +0200
@@ -926,6 +926,11 @@
 	ctx->box = box;
 	ctx->bytes_ceil = (uint64_t)-1;
 	ctx->count_ceil = (uint64_t)-1;
+
+	if (box->storage->user->admin) {
+		/* ignore quota for admins */
+		ctx->limits_set = TRUE;
+	}
 	return ctx;
 }
 


More information about the dovecot-cvs mailing list