| POE-Filter-Log-Procmail documentation | view source | Contained in the POE-Filter-Log-Procmail distribution. |
POE::Filter::Log::Procmail - filter for processing procmail logs
use POE::Filter::Log::Procmail; $filter = POE::Filter::Log::Procmail->new(Debug => 1); $arrayref_of_hashrefs = $filter->get($arrayref_of_raw_chunks_from_driver);
The Log::Procmail filter translates procmail record streams to hashrefs.
new() creates and initializes a new POE::Filter::Log::Procmail filter. You can pass it "Debug => 1" to turn debugging on.
get() translates procmail log lines into hashrefs. The hashref looks like
$VAR1 = {
'subject' => 'Re: use XML::Simple breaks my PoCo::IKC::Server',
'time' => '12:22:50',
'date' => '1',
'size' => '1726',
'folder' => 'mail/perl/poe',
'from' => 'poe-return-2605-paulv=cpan.org.org',
'dow' => 'Thu',
'mon' => 'Nov',
'year' => '2004'
};
POE::Filter.
Doesn't support get_one(), get_one_start(), or get_pending(). This means switching from this filter to another filter probably won't work, but I haven't tried it.
Doesn't support put().
Ignores verbose lines if VERBOSE is set in .procmailrc.
Paul Visscher, <paulv@cpan.org>
Copyright (C) 2004 by Paul Visscher
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| POE-Filter-Log-Procmail documentation | view source | Contained in the POE-Filter-Log-Procmail distribution. |