#901 regex problem in maillogconvert.pl with mdaemon Statistics.log

7.0
open
nobody
None
1
2014-08-12
2013-01-04
Vogelkamm
No

There is a regex problem in maillogconvert.pl in line 575 when parsing MDaemon (3.x) Statistics.log files.

Please note this example: The first line will work fine. The second will fail.
"2013-01-04 18:24:42","2013-01-04 18:24:42",SMTPI,6123,"a@example.org","b@example.com","","","192.168.100.11","","",0,25617,0
"2013-01-04 18:03:20","2013-01-04 18:03:21",SMTPI,6103,"c@example.net","b@example.com","","","80.67.29.7","","",-3.6,3605,0

The problem is, that third to the last element in this log file can be a negativ value.
A "-?" in the regex would fix the problem. A possible patch is attached to this bug report.

1 Attachments

Discussion

  • Patch added into dev branch