Sisima...rError(3pm)

πŸ’… Sisimai::Reason::MailerError β€” the perl 3pm page you're currently reading (header calls it Sisima...rError(3pm) bc terminals love to truncate βœ‚οΈ)

okay bestie, sit down, we're doing perl module lore today πŸŽ€


✨ NAME ✨

Sisimai::Reason::MailerError β€” tells you whether a bounce reason is "mailererror" or not. that's it. that's the whole job. she's niche but she's essential πŸ‘‘


✨ SYNOPSIS ✨

use Sisimai::Reason::MailerError;
print Sisimai::Reason::MailerError->match('X-Unix; 255');   # 1

literally two lines and you're already getting a 1 back. slay. 🫢


✨ DESCRIPTION ✨

so Sisimai::Reason::MailerError checks if the bounce reason is "mailererror" or not. no cap. and here's the tea: this class is called only from the Sisimai::Reason class. she does not take walk-ins, she is booked and busy πŸ’…

what is a mailererror, you ask? it's the error you get when the mailer program has not exited successfully, or exited unexpectedly, on the destination mail server. the mailer said "i'm fine" and then was very much not fine. iconic behavior honestly πŸ™ˆ

here's what that looks like in the wild:

X-Actual-Recipient: X-Unix; |/home/kijitora/mail/catch.php
Diagnostic-Code: X-Unix; 255

the 255 is the mailer throwing up its hands and leaving the group chat. πŸ’€


✨ CLASS METHODS ✨

🌸 text()

text() method returns the fixed string "mailererror". that's it. it's a string. it's fixed. she's consistent.

print Sisimai::Reason::MailerError->text;  # mailererror

🌸 match(string)

match() method returns 1 if the argument matched with patterns defined in this class. patterns live in the class, the argument comes from you, and when they vibe together you get a 1 ✨

print Sisimai::Reason::MailerError->match('X-Unix; 255');   # 1

🌸 true(Sisimai::Fact)

true() method returns 1 if the bounce reason is "mailererror".

heads up bestie 🚨 the argument must be a Sisimai::Fact object, and this method is called only from the Sisimai::Reason class. don't just pass it vibes, pass it the right object fr fr.

✨ AUTHOR ✨

azumakuniyuki β€” the author. the main character. the moment. πŸ‘‘


Copyright (C) 2014-2017,2020,2021,2023-2025 azumakuniyuki, All rights reserved.

(note the gap years β€” 2018, 2019 and 2022 were clearly rest years and honestly? respect the work-life balance 🌈)


✨ LICENSE ✨

this software is distributed under The BSD 2-Clause License. permissive, generous, a whole green flag πŸ“


and that's the page!! this doc came to you courtesy of perl v5.40.1, dated 2026-07-05 β€” so she's got the 3pm page energy, the truncated header energy (Sisima...rError(3pm), we don't know her full name either apparently 😭), and she ate. no notes. periodt πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from