dovecot-1.1: deliver should have used mail_access_groups setting...

dovecot at dovecot.org dovecot at dovecot.org
Sat Apr 4 01:23:09 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/138c8b0bfbb3
changeset: 8235:138c8b0bfbb3
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 03 18:23:03 2009 -0400
description:
deliver should have used mail_access_groups setting, not mail_extra_groups.

diffstat:

1 file changed, 5 insertions(+), 1 deletion(-)
src/deliver/auth-client.c |    6 +++++-

diffs (16 lines):

diff -r f6d86da96608 -r 138c8b0bfbb3 src/deliver/auth-client.c
--- a/src/deliver/auth-client.c	Fri Apr 03 12:41:33 2009 -0400
+++ b/src/deliver/auth-client.c	Fri Apr 03 18:23:03 2009 -0400
@@ -176,7 +176,11 @@ static void auth_parse_input(struct auth
 	if (home_dir != NULL)
 		env_put(t_strconcat("HOME=", home_dir, NULL));
 
-	extra_groups = getenv("MAIL_EXTRA_GROUPS");
+	extra_groups = getenv("MAIL_ACCESS_GROUPS");
+	if (extra_groups == NULL) {
+		/* FIXME: backwards compatibility */
+		extra_groups = getenv("MAIL_EXTRA_GROUPS");
+	}
 	if (extra_groups != NULL) {
 		env_put(t_strconcat("RESTRICT_SETEXTRAGROUPS=",
 				    extra_groups, NULL));


More information about the dovecot-cvs mailing list