[dovecot-cvs] dovecot/src/deliver deliver.c,1.20.2.8,1.20.2.9

cras at dovecot.org cras at dovecot.org
Tue Aug 29 14:59:13 EEST 2006


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv443

Modified Files:
      Tag: branch_1_0
	deliver.c 
Log Message:
Set USER environment to the destination user, since some plugins require it
to work.



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.20.2.8
retrieving revision 1.20.2.9
diff -u -d -r1.20.2.8 -r1.20.2.9
--- deliver.c	10 Aug 2006 21:48:31 -0000	1.20.2.8
+++ deliver.c	29 Aug 2006 11:59:11 -0000	1.20.2.9
@@ -454,6 +454,7 @@
 	} else {
 		destination = user;
 	}
+	env_put(t_strconcat("USER=", destination, NULL));
 
 	value = getenv("UMASK");
 	if (value == NULL || sscanf(value, "%i", &i) != 1 || i < 0)



More information about the dovecot-cvs mailing list