Mail::Abuse::Processor::Store

Mail::Abuse::Processor::Store module can process a Mail::Abuse::Report.
Download

Mail::Abuse::Processor::Store Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Luis E. M.
  • Publisher web site:
  • http://search.cpan.org/~luismunoz/Mail-Abuse-1.026/lib/Mail/Abuse/Processor/Store.pm

Mail::Abuse::Processor::Store Tags


Mail::Abuse::Processor::Store Description

Mail::Abuse::Processor::Store module can process a Mail::Abuse::Report. Mail::Abuse::Processor::Store module can process a Mail::Abuse::Report.SYNOPSIS use Mail::Abuse::Processor::Store; use Mail::Abuse::Report; my $p = new Mail::Abuse::Processor::Store; my $report = new Mail::Abuse::Report (processors => ); # ... other pieces of code that configure the report ...This class stores a processed report in a file hierarchy that is composed using the smallest acceptable timestamp from the list of incidents in a report.If no incidents are found within a report, a special name is built based on the report text.The place where the files are created can be controlled with entries in the configuration file. Currently, the following directives are understood.store root pathPoints to the root of the tree where reports are to be stored. Defaults to the current directory.store empty pathThe name of the leaf where reports with no incidents are stored. This is a subdir of store root path. It defaults to the very creative name, "empty".store modeThe mode in which to store abuse reports. The following modes are supported.serializedThis is the default, and uses Storable to serialize the in-memory Mail::Abuse::Report object and store it in a flat file.serialized-gzJust like serialized, but the resulting file is compressed with the equivalent of gzip, using PerlIO::gzip.plainStore only the report text, as a flat file.plain-gzJust like plain but the resulting file is compressed on the fly using PerlIO::gzip.debug storeIf set to a true value, causes this module to emit debugging information using warn().The following functions are implemented.process($report)Takes a Mail::Abuse::Report object as an argument and performs the processing action required.The processed $report will have the filename where the report was stored, added in store_file. Requirements: · Perl


Mail::Abuse::Processor::Store Related Software