Mercurial > dovecot > original-hg > dovecot-1.2
changeset 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 | 1ec784dd4773 |
children | f56bbf8b33e1 |
files | src/master/mail-process.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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));