Sisima...TARTTLS(3pm)

πŸ“¦
version 5.7.0 Β· 3 versions
, in ubuntu stonking

πŸ¦‹ 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 (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 as perl v5.40.1 documentation, dated 2026-07-05, under the manual name Sisima...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