DOKK / manpages / debian 12 / libsisimai-perl / Sisimai::Reason::NotAccept.3pm.en
Sisimai::Reason::NotAccept(3pm) User Contributed Perl Documentation Sisimai::Reason::NotAccept(3pm)

Sisimai::Reason::NotAccept - Bounce reason is "notaccept" or not.

    use Sisimai::Reason::NotAccept;
    print Sisimai::Reason::NotAccept->match('domain does not exist:');   # 1

Sisimai::Reason::NotAccept checks the bounce reason is "notaccept" or not. This class is called only Sisimai::Reason class.

This is the error that a destination mail server does ( or can ) not accept any email. In many case, the server is high load or under the maintenance. Sisimai will set "notaccept" to the reason of email bounce if the value of Status: field in a bounce email is 5.3.2 or the value of SMTP reply code is 556.

"text()" returns string: "notaccept".

    print Sisimai::Reason::NotAccept->text;  # notaccept

"match()" returns 1 if the argument matched with patterns defined in this class.

    print Sisimai::Reason::NotAccept->match('domain does not exist:');   # 1

"true()" returns 1 if the bounce reason is "notaccept". The argument must be Sisimai::Data object and this method is called only from Sisimai::Reason class.

azumakuniyuki

Copyright (C) 2014-2016,2018,2020-2022 azumakuniyuki, All rights reserved.

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

2022-12-23 perl v5.36.0