NAME
Sisimai - It's a module for analyzing email bounces and generate structured data in a JSON format from parsed bounce messages.
SYNOPSIS
use Sisimai;
DESCRIPTION
Sisimai is a core module of bounceHammer
version 4, is a Perl module for analyzing email bounce and generate structured data in a JSON format (YAML is also available if "YAML" module is installed on your system) from parsed bounce messages. Sisimai
stands for SISI "Mail Analyzing Interface".
BASIC USAGE
make
method provides feature for getting parsed data from bounced email messages like following.
use Sisimai;
my $v = Sisimai->make( '/path/to/mbox' ); # or Path to Maildir
if( defined $v ) {
for my $e ( @$v ) {
print ref $e; # Sisimai::Data
print $e->recipient->address; # kijitora@example.jp
print $e->reason; # userunknown
my $h = $e->damn; # Convert to HASH reference
my $j = $e->dump('json'); # Convert to JSON string
my $y = $e->dump('yaml'); # Convert to YAML string
}
}
SEE ALSO
Sisimai::Mail - Mailbox or Maildir object Sisimai::Data - Parsed data object
AUTHOR
azumakuniyuki
COPYRIGHT
Copyright (C) 2014-2015 azumakuniyuki <perl.org@azumakuniyuki.org>, All Rights Reserved.
LICENSE
This software is distributed under The BSD 2-Clause License.