Mail::Abuse::Processor::Mailer - Handle the email response to a Mail::Abuse::Report
use Mail::Abuse::Processor::Mailer; use Mail::Abuse::Report; my $p = new Mail::Abuse::Processor::Mailer; my $report = new Mail::Abuse::Report (processors => [ $p ]); # ... other pieces of code that configure the report ...
This class handles automatic email responses sent to the originator of the Mail::Abuse::Report. Mail loops are avoided and detected by inserting a special header, X-Mail-Abuse-Loop. If this header is present, no messages will be sent.
The following configuration keys control the behavior of this module.
If set to a true value, causes this module to emit debugging info using warn().
warn()
The type of mailer to use, as described in Mail::Mailer. Defaults to mail.
Mail::Mailer
Some types of mailers require the specification of an SMTP server. This option allows for it.
The complete RFC-2822 address to be used in the From: header placed in the message header. It must be specified.
The Reply-To: header to use in the message header of the reply. The header will not be included if left unspecified.
The Errors-To: header to use in the message header of the reply. The header will not be included if left unspecified.
If this value is set, the response message is directed to the given address.
The subject to use in the responses.
The precedence to use. Defaults to 'bulk'.
The name of the file containing the message template that will be used to compose a message whenever no incidents can be parsed or pass the filters from the abuse report. This distribution includes an example message in the etc/ subdirectory.
etc/
The name of the file containing the message template that will be used to compose a message when one or more incidents are parsed and filtered from the abuse report.. This distribution includes an example message in the etc/ subdirectory.
The charset used to encode the response. Defaults to 'US-ASCII'. This is placed in the charset= part of the MIME headers.
The following functions are implemented.
process($report)
Takes a Mail::Abuse::Report object as an argument and performs the processing action required. MIME headers inserted by this module, force encoding to 8bit.
Mail::Abuse::Report
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 UTF-8
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.