Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22236 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66209 invoked by uid 1010); 7 Mar 2006 22:56:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66193 invoked from network); 7 Mar 2006 22:56:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2006 22:56:43 -0000 X-Host-Fingerprint: 69.60.120.90 iconoclast.caedmon.net Linux 2.4/2.6 Received: from ([69.60.120.90:43615] helo=iconoclast.caedmon.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 75/46-27106-AAF0E044 for ; Tue, 07 Mar 2006 17:56:42 -0500 Received: from localhost ([127.0.0.1]) by iconoclast.caedmon.net with esmtp (Exim 3.35 #1 (Debian)) id 1FGl57-0004Kn-00; Tue, 07 Mar 2006 17:55:05 -0500 Message-ID: <440E0F3D.9020604@caedmon.net> Date: Tue, 07 Mar 2006 17:54:53 -0500 User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Gareth Ardron CC: internals@lists.php.net References: <440E0187.5040102@fission.org.uk> In-Reply-To: <440E0187.5040102@fission.org.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] mail addition From: sean@caedmon.net (Sean Coates) Gareth Ardron wrote: > Hi, > > Sort of mailing this in as the result of the rantings of quite a few > mates of mine who look after shared hosting boxes. > > Would it be acceptable to do up a patch for the mail() function which'll > listen to an ini entry[0] for a logfile to log all mail sent using this > function. You can do this in "admin-space": http://blog.phpdoc.info/archives/20-mail-replacement-a-better-hack.html True, it doesn't prevent the user from ini_set()ing, but unless you're blocking the socket functions, the user can get around this anyway. S