NAME

Mail::Log::Parse::Postfix - Parse and return info in Postfix maillogs

SYNOPSIS

use Mail::Log::Parse::Postfix;

(See Mail::Log::Parse for more info.)

DESCRIPTION

This is a subclass of Mail::Log::Parse, which handles parsing for Postfix mail logs.

USAGE

next

Returns a hash of the next line of postfix log data.

Hash keys are:

delay_before_queue, delay_connect_setup, delay_in_queue, 
delay_message_transmission, from, host, id, msgid, pid, program, 
relay, size, status, text, timestamp, to, total_delay

All keys are garunteed to be present. 'program', 'pid', 'host', 'timestamp', 'id' and 'text' are garunteed to have a value.

The 'text' key will have all of the log text after the standard Postfix header. (All of which is in the other keys that are required to have a value.)

BUGS

None known at the moment.

REQUIRES

Scalar::Util, Time::Local, Mail::Log::Parse, Mail::Log::Exceptions

AUTHOR

Daniel T. Staal

DStaal@usa.net

SEE ALSO

Mail::Log::Parse, for the main documentation on this module set.

HISTORY

Oct 6, 2008 - Inital version.

COPYRIGHT and LICENSE

Copyright (c) 2008 Daniel T. Staal. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

This copyright will expire in 30 years, or 5 years after the author's death, whichever is longer.