On Thu, 2011-02-10 at 01:17 +0200, Timo Sirainen wrote: > > (does this really need to be set over and over or can the master process > > set it and have the environment inherited... it has been a long time > > since I did any coding related to environment variables accross forks, > > etc.)? > > Environment is inherited, but Dovecot explicitly clears it at the > startup of each process, so any unnecessary stuff gets dropped out. But > it would be possible to add e.g. DOVECOT_PRESERVE_ENVS that lists which > environments variables should be preserved.
http://hg.dovecot.org/dovecot-2.0/rev/cec7fa92ff48