On Fri, 18 Dec 2009, CLEMENT Francis wrote:

> >-----Message d'origine-----
> >De : [email protected]
> >[mailto:[email protected]]de la part de Davide Libenzi
> >Envoyé : jeudi 17 décembre 2009 21:54
> >À : XMail Users Mailing List
> >Objet : Re: [xmail] Patches: IPv6 and SSL
> >
> >
> >On Thu, 17 Dec 2009, Stephan Müller wrote:
> >
> >> That is a good approach, but may I ask to make it a command 
> >line option? The 
> >> issue is the following: I like to run xmail under an 
> >unprivileged user ID. I 
> >> use the compartment tool which (rightfully) strips the 
> >environment of all 
> >> variables and replaces them with known good values before 
> >doing a setuid and 
> >> fork/exec. This means that environment variables are problematic.
> >
> >I don't like Unix-only options leak through the command line.
> >I am plenty sure you can take care of setting proper enviroment with 
> >compartment.
> >
> >
> >
> >- Davide
> >
> >
> 
> Why not simply add this variable in server.tab file ? doing so it could :
> - be os independant (apply too in win32 systems ;-) )
> - resolve possible environment variables problems (compartments, ... :)
> - and if not set in server.tab file, use default system tmp directory as it
> does actually

Certain options do not fit the server.tab, and this is one of them. In 
XMail you can live-change the server.tab and options becomes available 
w/out re-starting XMail. This requires holding a config handle, which 
would not fit the APIs. I explained this to you many times.
Windows already has an API to return the path for temporary files, and I 
like to play the game of the systems I am running onto, when possible.
This is why the XMail API to return the temporary file directory path, is 
a system API.



- Davide

_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail

Reply via email to