library postfix-log-parser
Parser for log files of Postfix MTA
wendrowycz/postfix-log-parser
Parser for log files of Postfix MTA
- Monday, November 30, 2015
- by wendrowycz
- Repository
- 1 Watchers
- 0 Stars
- 331 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 25 % Grown
postfix-log-parser
Parser for log files of Postfix MTA, (*1)
One-pass parsing of log files with ability to filter only matching message ids., (*2)
$parser = new \Postfix\Log\MailLogParser('<order%d.event%s.'); // mask of interesting messageId
$parser->search(array()); // find all matching emails and their status
$parser->search(array(1234, 'created')); // find emails about order 1234 and event 'created' in messageId
$parser->search(array(1234, '%s')); // find emails about orderId 1234 in messageId
$parser->setLogFiles(array('/var/log/mail.info.1')); // set specific log files
By default, parser looks for /var/log/mail.info and last archieved log file nearby., (*3)
dev-master
9999999-dev
Parser for log files of Postfix MTA
Sources
Download
by
Vladimir Goldobin
by
Bartosz Grzesiak