Sisima...rkError(3pm)

πŸ’… Sisimai::Reason::NetworkError β€” the perl doc you didn't know you needed (3pm)

okay bestie sit DOWN because we're reading a manual page together and honestly? it's giving "User Contributed Perl Documentation" realness. this little diva lives in the 3pm section and her whole personality is answering one question: is this bounce a networkerror or not. πŸ’–


✨ NAME ✨

Sisimai::Reason::NetworkError β€” tells you whether the bounce reason is "networkerror" or not. no cap, that's the whole job. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

use Sisimai::Reason::NetworkError;
print Sisimai::Reason::NetworkError->match('554 5.4.6 Too many hops'); # 1

that # 1 at the end? that's the slay. ✨


🌸 DESCRIPTION 🌸

Sisimai::Reason::NetworkError checks whether the bounce reason is "networkerror" or not. she's the popular girl who only takes calls from one number, and that number is the Sisimai::Reason class β€” literally, this class is called only by Sisimai::Reason. main character energy, no walk-ins allowed. πŸ’…

so what IS this error? it's the one where the SMTP connection just... failed. could be a DNS look up failure, could be other network problems, either way: connection said "not today." 😭 this reason got added in Sisimai 4.1.12, so if your version is older than that, she doesn't exist yet, bye.

and here's the vibe in the wild β€” a message delayed for more than 10 minutes for the following list of recipients:

A message is delayed for more than 10 minutes for the following list of recipients:

kijitora@neko.example.jp: Network error on destination MXs

cat email address, network error on destination MXs. iconic. 🐱


πŸ‘‘ CLASS METHODS πŸ‘‘

text()

text() method returns the fixed string "networkerror". that's it. she said one word and it was the right one.

print Sisimai::Reason::NetworkError->text;  # networkerror

match(string)

match() method returns 1 if the argument matched with patterns defined in this class. hand her a string, she hands you a 1. 🀝

print Sisimai::Reason::NetworkError->match('5.3.5 System config error'); # 1

true(Sisimai::Fact)

true() method returns 1 if the bounce reason is "networkerror". ⚠️ important: the argument must be a Sisimai::Fact object, and this method is called only from the Sisimai::Reason class. so don't just roll up with whatever, bestie, she checks IDs at the door. πŸšͺ✨


🫢 AUTHOR 🫢

azumakuniyuki


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

(notice the years, she took a lil gap year in 2019 and 2023. we respect the rest era. πŸ’œ)


🌈 LICENSE 🌈

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


and that's the whole page, bestie β€” you now know more about network errors than 99% of the group chat. go forth and match() responsibly. πŸ¦‹πŸ’–

sign-off szn: this page rode in on perl v5.40.1, dated 2026-07-05, and the footer was serving Sisima...rkError(3pm) the whole time. periodt. πŸ‘‘

πŸ“¦ where this page comes from