php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54550 mail.log
Submitted: 2011-04-17 19:04 UTC Modified: 2011-04-19 08:06 UTC
Votes:7
Avg. Score:4.3 ± 0.9
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:2 (40.0%)
From: mv at zvyk dot com Assigned:
Status: Wont fix Package: Mail related
PHP Version: 5.3.6 OS: Linux 2.6.31-gentoo-r
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mv at zvyk dot com
New email:
PHP Version: OS:

 

 [2011-04-17 19:04 UTC] mv at zvyk dot com
Description:
------------
---
From manual page: http://www.php.net/mail.configuration
---


[mail function]
;as well as it is
mail.log = /filename.log

;log record format (to add timestamp | full date ...)
.
.
;log in csv??
mail.log_format = [default|csv|...]
=====================================
from:
mail() on [/dir/subdir/script.php:259]: To: -_-@xxxxx.com -- Headers: From: xxx@zvyk.com

to:
[Sun Apr 17 18:35:55 2011] mail() on [/dir/subdir/script.php:259]: To: -_-@xxxxx.com -- Headers: From: xxx@zvyk.com

or to(csv format):
2011-04-17; 18:35:55; mail(); /dir/subdir/script.php; 259; To: -_-@xxxxx.com; Headers: From: xxx@zvyk.com


Expected result:
----------------
from:
mail() on [/dir/subdir/script.php:259]: To: -_-@xxxxx.com -- Headers: From: xxx@zvyk.com

to:
[Sun Apr 17 18:35:55 2011] mail() on [/dir/subdir/script.php:259]: To: -_-@xxxxx.com -- Headers: From: xxx@zvyk.com


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-19 08:06 UTC] aharvey@php.net
-Status: Open +Status: Wont fix -Package: *General Issues +Package: Mail related
 [2011-04-19 08:06 UTC] aharvey@php.net
I don't see any reason to complicate what's meant to be a simple debugging aid with different output formats.
 [2013-08-21 10:54 UTC] nicola dot avancini at gmail dot com
The reason is a very useful system for trace shell script injection used for 
spam..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC