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

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


details:   http://hg.dovecot.org/dovecot-2.1/rev/131e44d50d35
changeset: 13663:131e44d50d35
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 6894298ae5fd -r 131e44d50d35 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Sat Nov 05 19:17:59 2011 +0200
+++ b/src/plugins/quota/quota.c	Sat Nov 05 19:37:02 2011 +0200
@@ -927,6 +927,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