Sisimai::Bite::Email::UserDefined - User defined MTA module as an example
use lib '/path/to/your/lib/dir'; use Your::Custom::Bite::Email::Module; use Sisimai::Mail; use Sisimai::Data; use Sisimai::Message; my $file = '/path/to/mailbox'; my $mail = Sisimai::Mail->new($file); my $mesg = undef; my $data = undef; while( my $r = $mail->read ){ $mesg = Sisimai::Message->new( 'data' => $r, 'load' => ['Your::Custom::Bite::Email::Module'] ); $data = Sisimai::Data->make('data' => $mesg); ... }
Sisimai::Bite::Email::UserDefined is an example module as a template to implement your custom MTA module.
description()
description() returns description string of this module.
print Your::Custom::Bite::Email::Module->description;
smtpagent()
smtpagent() returns MTA name.
print Your::Custom::Bite::Email::Module->smtpagent;
scan(header data, reference to body string)
scan() method parses a bounced email and return results as a array reference. See Sisimai::Message for more details.
scan()
azumakuniyuki
Copyright (C) 2015-2017 azumakuniyuki, All rights reserved.
This software is distributed under The BSD 2-Clause License.
To install Sisimai, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sisimai
CPAN shell
perl -MCPAN -e shell install Sisimai
For more information on module installation, please visit the detailed CPAN module installation guide.