Sisima...TARTTLS(3pm)
π¦ Sisimai::Reason::FailedSTARTTLS(3pm) π
okay bestie, so this is a Perl manual page (man page, the classic "type man and squint at it" situation) β User Contributed Perl Documentation energy, and today's main character is Sisimai::Reason::FailedSTARTTLS. Say that class name five times fast, I dare you. π«Ά
β¨ NAME β¨
Sisimai::Reason::FailedSTARTTLS β it's the vibe check for whether a bounce reason is "FailedSTARTTLS" or literally not. π
πΈ SYNOPSIS πΈ
like, here's the whole thing in action:
use Sisimai::Reason::FailedSTARTTLS;
print Sisimai::Reason::FailedSTARTTLS->match('5.7.10 STARTTLS is required to send mail'); # 1
and that # 1 at the end? that's it popping off, bestie. match found, slay. β¨
π DESCRIPTION π
so "Sisimai::Reason::FailedSTARTTLS" is out here checking whether a bounce reason is "FailedSTARTTLS" or not. That's the whole personality. π
important detail though: this class does not just show up anywhere β it's called only by the "Sisimai::Reason" class. No random walk-ups, this is a private-ish friendship circle, iykyk.
and what is this error actually about? it's the error related to STARTTLS, DANE, MTA-STS, and so on. so basically the whole "hey, your mail connection refused to do the secure handshake thing" friend group. π
π CLASS METHODS π
π "text()"
the text() method returns the fixed string "failedstarttls". no arguments, no drama, just a string.
print Sisimai::Reason::FailedSTARTTLS->text; # failedstarttls
that's it. that's the method. iconic, honestly. β¨
π§ "match(string)"
the match() method returns 1 if the argument matched with patterns defined in this class. so you hand it a string, it goes π, and if it recognizes the pattern you get a 1 back.
print Sisimai::Reason::FailedSTARTTLS->match('5.7.10 STARTTLS is required to send mail'); # 1
no match? no 1. simple as that, no cap. π₯
π₯ "true(Sisimai::Fact)"
the true() method returns 1 if the bounce reason is "FailedSTARTTLS".
okay and here's the rules for feeding it β the argument must be a "Sisimai::Fact" object. like, it's not gonna accept just vibes. and heads up: this method is called only from the "Sisimai::Reason" class. so again β inner circle only. π«Ά
π AUTHOR π
azumakuniyuki β the legend who wrote all this. absolute main character energy. π
π COPYRIGHT π
Copyright (C) 2024-2025 azumakuniyuki, All rights reserved.
(yes, the years are literally 2024-2025, keep up bestie π)
π LICENSE π
This software is distributed under The BSD 2-Clause License. free and open, as it should be. periodt. β¨
okay and for the cute sign-off: this whole thing got written down asperl v5.40.1documentation, dated2026-07-05, under the manual nameSisima...TARTTLS(3pm)(yes the header really is truncated like that, it's giving "the terminal ate my class name" π). bye bestie, go read your bounce reasons π π
π¦ where this page comes from
- ubuntu stonking: libsisimai-perl 5.7.0-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms