logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sisimai::MDA - Error message parser for MDA

Author

       azumakuniyuki

Class Methods

"make(Header,Referencetomessagebody)"
       "make()" is a parser for detecting an error from mail delivery agent.

           my $header = { 'from' => 'mailer-daemon@example.jp' };
           my $string = 'mail.local: Disc quota exceeded';
           my $return = Sisimai::MDA->make($header, \$string);
           warn Dumper $return;
           $VAR1 = {
               'mda' => 'mail.local',
               'reason' => 'mailboxfull',
               'message' => 'mail.local: Disc quota exceeded'
           }

Description

       Sisimai::MDA parse bounced email which created by some MDA, such as "dovecot", "mail.local", "procmail",
       and so on.  This class is called from Sisimai::Message only.

License

       This software is distributed under The BSD 2-Clause License.

perl v5.32.1                                       2021-11-25                                  Sisimai::MDA(3pm)

Name

       Sisimai::MDA - Error message parser for MDA

Synopsis

           use Sisimai::MDA;
           my $header = { 'from' => 'mailer-daemon@example.jp' };
           my $string = 'mail.local: Disc quota exceeded';
           my $return = Sisimai::MDA->make($header, \$string);

See Also