Re: [exim] Feature req: env var logging

Góra strony
Delete this message
Reply to this message
Autor: Eli
Data:  
Dla: exim-users
Temat: Re: [exim] Feature req: env var logging
David wrote:
> this is just a trick for php not running as an apache module,
> for other cgi scripts the patch is very useful. Also it's
> possible to patch the php apache module to fill the
> enviroment like in cgi's so other more useful enviroment
> variables like SCRIPT_NAME (which will be very difficulty set
> by -D) could be used inside exim


... Which is exactly why I wrote the patch. Logging just static info (such
as site name) is useful, but hardly where you should stop. Writing wrapper
scripts are OK, but can be easily circumvented if people just write a script
to connect directly. Not to mention, there is no way to set -D for CGI
scripts unless you make a wrapper sendmail program - so this patch makes
things easier for an admin. You don't need any wrapper scripts, and the
only "hack" required is for PHP *if* it runs as a DSO module. If you have
PHP run as a CGI, it would act just like any other CGI script.

Of course the patch isn't fool proof, but it's a step in the right direction
and DOES make an admins job much easier.

Eli.