dovecot-2.1: quota: If "quota" setting's value is empty, assume ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 9 20:21:24 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/dc674f4577af
changeset: 14104:dc674f4577af
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 09 20:21:14 2012 +0200
description:
quota: If "quota" setting's value is empty, assume quota is wanted to be disabled.

diffstat:

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

diffs (12 lines):

diff -r 28b73743c36f -r dc674f4577af src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Thu Feb 09 19:32:25 2012 +0200
+++ b/src/plugins/quota/quota.c	Thu Feb 09 20:21:14 2012 +0200
@@ -202,7 +202,7 @@
 	i_strocpy(root_name, "quota", sizeof(root_name));
 	for (i = 2;; i++) {
 		env = mail_user_plugin_getenv(user, root_name);
-		if (env == NULL)
+		if (env == NULL || *env == '\0')
 			break;
 
 		if (quota_root_add(quota_set, user, env, root_name,


More information about the dovecot-cvs mailing list