Mercurial > dovecot > original-hg > dovecot-1.2
diff src/master/mail-process.c @ 9364:eb22a456a625 HEAD
dovecot --exec-mail: Put mail_uid and mail_gid settings to environment.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Sep 2009 21:10:24 -0400 |
parents | 8bf54859b19b |
children | 76294bdecd5a |
line wrap: on
line diff
--- a/src/master/mail-process.c Sun Sep 06 21:00:22 2009 -0400 +++ b/src/master/mail-process.c Sun Sep 06 21:10:24 2009 -0400 @@ -429,6 +429,11 @@ env_put(t_strdup_printf("DBOX_ROTATE_DAYS=%u", set->dbox_rotate_days)); + if (exec_mail && *set->mail_uid != '\0') + env_put(t_strconcat("MAIL_UID=", set->mail_uid, NULL)); + if (exec_mail && *set->mail_gid != '\0') + env_put(t_strconcat("MAIL_GID=", set->mail_gid, NULL)); + if (*set->mail_plugins != '\0') { env_put(t_strconcat("MAIL_PLUGIN_DIR=", set->mail_plugin_dir, NULL));