The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

use v5.26;
use strict;
sub text { 'delivered' }
sub description { 'Email delivered successfully' }
sub match { return undef }
sub true { return undef }
1;
__END__
=encoding utf-8
=head1 NAME
Sisimai::Reason::Delivered - Email delivered successfully
=head1 SYNOPSIS
use Sisimai::Reason::Delivered;
print Sisimai::Reason::Delivered->text; # delivered
=head1 DESCRIPTION
C<Sisimai::Reason::Delivered> checks the email you sent is delivered successfully or not by matching
diagnostic messages with message patterns. Sisimai will set C<"delivered"> to the value of C<"reason">
when C<Status:> field in the bounce message begins with C<2> like following:
Final-Recipient: rfc822; kijitora@neko.nyaan.jp
Action: delivered
Status: 2.1.5
Diagnostic-Code: SMTP; 250 2.1.5 OK
This class is called only C<Sisimai->reason()> method. This is B<NOT AN ERROR> reason.
=head1 CLASS METHODS
=head2 C<B<text()>>
C<text()> returns the fixed string C<delivered>.
print Sisimai::Reason::Delivered->text; # delivered
=head2 C<B<match(I<string>)>>
C<match()> method always return C<undef>
=head2 C<B<true(I<Sisimai::Fact>)>>
C<true()> method always return C<undef>
=head1 AUTHOR
azumakuniyuki
=head1 COPYRIGHT
Copyright (C) 2016,2020,2021,2024 azumakuniyuki, All rights reserved.
=head1 LICENSE
This software is distributed under The BSD 2-Clause License.
=cut