Sisima...nknown(3pm)

✨ NAME ✨

okay so bestie, welcome to Sisima...nknown(3pm) β€” she's a Perl module and her whole name is Sisimai::Reason::HostUnknown, and her entire job? figuring out whether a bounce reason is hostunknown or not πŸ’… no cap.


🌸 SYNOPSIS 🌸

literally just this, it's giving minimal:

use Sisimai::Reason::HostUnknown;
print Sisimai::Reason::HostUnknown->match('550 5.2.1 Host Unknown');   # 1

πŸ¦‹ DESCRIPTION πŸ¦‹

Sisimai::Reason::HostUnknown does a vibe check on whether the bounce reason is hostunknown or not. periodt. and heads up β€” this class is called only by the Sisimai::Reason class, so she's not out here taking walk-ins, iykyk.

so what even is this error? it's when the domain part of the recipient's email address β€” aka the right hand side of the @ sign β€” does not exist 😭. in many cases the domain part is just misspelled, or the domain name has been expired. classic. it's giving typo energy.

Sisimai will set hostunknown to the reason of the email bounce if the value of the Status: field in a bounce mail is 5.1.2. the receipts look like this:

Your message to the following recipients cannot be delivered:

<kijitora@example.cat>:
<<< No such domain.

πŸ‘‘ CLASS METHODS πŸ‘‘

text()

text() method returns the fixed string hostunknown. that's it. she said consistency. πŸ’–

print Sisimai::Reason::HostUnknown->text;  # hostunknown

match(string)

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

print Sisimai::Reason::HostUnknown->match('550 5.2.1 Host Unknown');   # 1

true(Sisimai::Fact)

true() method returns 1 if the bounce reason is hostunknown. the argument must be a Sisimai::Fact object β€” no substitutions, bestie β€” and this method is called only from the Sisimai::Reason class.


πŸŽ€ AUTHOR πŸŽ€

azumakuniyuki β€” the icon, the moment, the main character πŸ‘‘


Copyright (C) 2014-2018,2020,2021,2023-2026 azumakuniyuki, All rights reserved.


πŸ“œ LICENSE πŸ“œ

This software is distributed under The BSD 2-Clause License. slay, legally speaking πŸ’œ


okay and for the cute sign-off: this lil page is documented for perl v5.40.1, dated 2026-07-05, and it lives in the User Contributed Perl Documentation section. read it, love it, ship it πŸ«ΆπŸ’–

πŸ“¦ where this page comes from