Mail::Abuse::Reader::POP3 - Reads a Mail::Abuse::Report out of a POP3 account
use Mail::Abuse::Report; use Mail::Abuse::Reader::POP3; my $r = new Mail::Abuse::Reader::POP3; my $report = new Mail::Abuse::Report (reader => $r);
This class reads in each message in a POP3 mailbox into the text of a Mail::Abuse::Report object.
Mail::Abuse::Report
A number of configuration keys are used for establishing the operational parameters. These config keys are described below:
Must be set to the name or address of the POP3 server where reports are to be fetched from.
The username used for the POP3 session.
The corresponding password.
Set to a true value to cause messages to be deleted after reading them.
A regular expression that, if matches, discards the current message. This is useful to avoid processing bounces.
If set to a true value, debug messages will be sent through warn().
warn()
The following methods are implemented within this class.
read($report)
Populates the text of the given $report using the ->text method. Must return true if succesful or false otherwise.
$report
->text
DESTROY
In order to effectively delete any messages, this method terminates gracefully the POP3 session using the ->quit method of Net::POP3.
->quit
Net::POP3
None by default.
Original version; created by h2xs 1.2 with options
-ACOXcfkn Mail::Abuse -v 0.01
This code and all accompanying software comes with NO WARRANTY. You use it at your own risk.
This code and all accompanying software can be used freely under the same terms as Perl itself.
Luis E. Muñoz <luismunoz@cpan.org>
perl(1).
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Muñoz'. Assuming CP1252
To install Mail::Abuse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Abuse
CPAN shell
perl -MCPAN -e shell install Mail::Abuse
For more information on module installation, please visit the detailed CPAN module installation guide.