NAME
Transform::Alert::Input::POP3 - Transform alerts from POP3 messages
SYNOPSIS
# In your configuration
<Input test>
Type POP3
Interval 60 # seconds (default)
<ConnOpts>
Username bob
Password mail4fun
# See Net::POP3->new
Host mail.foobar.org
Port 110 # default
Timeout 120 # default
</ConnOpts>
# <Template> tags...
</Input>
DESCRIPTION
This input type will read a POP3 mailbox and process each message through the input template engine. If it finds a match, the results of the match are sent to one or more outputs, depending on the group configuration.
See Net::POP3 for a list of the ConnOpts section parameters. The Username
and Password
options are included in this set, but not used in the POP3 object's construction.
OUTPUTS
Text
Full text of the message, including headers.
Preparsed Hash
{
# Header pairs, as per Email::Simple::Header
Email::Simple->new($msg)->header_obj->header_pairs,
BODY => $str,
}
CAVEATS
All messages are deleted from the system, whether it was matched or not.
AVAILABILITY
The project homepage is https://github.com/SineSwiper/Transform-Alert/wiki.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/Transform::Alert/.
AUTHOR
Brendan Byrd <BBYRD@CPAN.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Brendan Byrd.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)