Small patch that allows logging of mail() function can be found here: http://ilia.ws/uploads/patches/mail_log.txt.gz (full story: http://ilia.ws/archives/149-mail-logging-for-PHP.html ) As it looks it was supposed to be in 5.2.3, but it's not (according to http://oss.backendmedia.com/PhP52 and php changelog). Would be nice to have that patch applied with 5.2.{2,3}.
Created attachment 122223 [details, diff] php-5.2.2-mail-log.patch This is a re-synced version of patch provided on ilia's blog: it contains also the fix of \r\n versus \n. I've tested it and works.
Still not in CVS. Is there an upstream bug for this? We'd really rather not maintain yet another patch that won't be accepted upstream.
Discussed this with CHTEKK and hoffie; please push this upstream.