Mail::Abuse::Incident::Normalize

Filter the text of a report within an Email
Download

Mail::Abuse::Incident::Normalize Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Luis Mu?oz
  • Publisher web site:
  • http://search.cpan.org/~luismunoz/

Mail::Abuse::Incident::Normalize Tags


Mail::Abuse::Incident::Normalize Description

Filter the text of a report within an Email Mail::Abuse::Incident::Normalize is a Perl module that can be used to filter the text of a report within an e-mail.SYNOPSIS use Mail::Abuse::Report; use Mail::Abuse::Incident::Normalize; my $i = new Mail::Abuse::Incident::Normalize; my $report = new Mail::Abuse::Report (incidents => );This class handles various important tasks related with recognizing an abuse report. The specific tassks are: * Parse the headers and the body of the email message * Provide a translation from HTML to text if no suitable part is included in the original report * When a report has been forwarded or quoted multiple times, this class removes the indications at the beginning and left-hand side (>).The parser based on this class must be the first in the list of parsers passed to the report object, so that all parser that need its services can access them automatically.The following new keys are created into the corresponding report after running this class. These are:headerA Mail::Header object with the header of the message.bodyContains a reference to the body of the message, as a single scalar or string.normalizedSet to the scalar Mail::Abuse::Incident::Normalize to indicate that this class did the normalization.tzThe guessed timezone from the message. This might come from matching it in the body of the message, from the Date header or from other sources. This should be used as a "last-resort hint" by other Incident parsers.The following method is implemented bu this class:parse($report)Pushes incidents into the given report, based on parsing of the text in the report itself.It must return a list of objects of the same class, with the incident data (IP address, timestamp and other information) filled. Requirements: · Perl


Mail::Abuse::Incident::Normalize Related Software