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

Sisimai::Reason::FailedSTARTTLS - Bounce reason is "FailedSTARTTLS" or not.

    use Sisimai::Reason::FailedSTARTTLS;
    print Sisimai::Reason::FailedSTARTTLS->match('5.7.10 STARTTLS is required to send mail');   # 1

"Sisimai::Reason::FailedSTARTTLS" checks the bounce reason is "FailedSTARTTLS" or not. This class is called only "Sisimai::Reason" class. This is the error related to STARTTLS, DANE, MTA-STS, and so on.

text() method returns the fixed string "failedstarttls".

    print Sisimai::Reason::FailedSTARTTLS->text;  # failedstarttls

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

    print Sisimai::Reason::FailedSTARTTLS->match('5.7.10 STARTTLS is required to send mail');   # 1

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

azumakuniyuki

Copyright (C) 2024 azumakuniyuki, All rights reserved.

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

2025-04-12 perl v5.40.1