Sisima...ailure(3pm)

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

πŸ’– Sisimai::Reason::AuthFailure πŸ’–

okay bestie so this is a page from the User Contributed Perl Documentation (that's the 3pm section, iykyk) and it's literally all about one tiny little class that does one tiny little job. iconic behaviour tbh.


✨ NAME ✨

Sisimai::Reason::AuthFailure β€” it checks whether a bounce reason is "authfailure" or not. that's it. that's the whole gig. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

use Sisimai::Reason::AuthFailure;
print Sisimai::Reason::AuthFailure->match('5.7.9 Header error');    # 1

see, you call it, you get a 1. slay. ✨


🌸 DESCRIPTION 🌸

so "Sisimai::Reason::AuthFailure" checks if the bounce reason is "authfailure" or not. and listen β€” this class is only called by the "Sisimai::Reason" class. it's not out here doing its own thing, it's a supporting character. but honestly? it's giving main character energy anyway. 🫢

this is the error you get when some kind of authentication failure related to SPF, DKIM, or DMARC was detected on a destination mail host. yeah. the big three. the auth trio. πŸ’€

Action: failed
Status: 5.7.1
Remote-MTA: dns; smtp.example.com
Diagnostic-Code: smtp; 550 5.7.1 Email rejected per DMARC policy for example.org

literally the "sorry babe, your DKIM said no" of email. 😭


πŸ‘‘ CLASS METHODS πŸ‘‘

πŸ’œ "text()"

text() method returns the fixed string "authfailure". like, it just says the thing. no notes. perfect.

print Sisimai::Reason::AuthFailure->text;  # authfailure

πŸ¦‹ "match(string)"

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

print Sisimai::Reason::AuthFailure->match('5.7.0 SPF Check: fail');    # 1

pass it a string, get a 1 if it vibes with the patterns in here. vibe check passed bestie βœ…

🌈 "true(Sisimai::Fact)"

true() method returns 1 if the bounce reason is "authfailure". no cap.

⚠️ heads up: the argument must be a "Sisimai::Fact" object, and this method is called only from the "Sisimai::Reason" class. so don't go calling it from just anywhere, she's got a very specific social circle. πŸ™ˆ

πŸ’« AUTHOR πŸ’«

azumakuniyuki

Copyright (C) 2022-2026 azumakuniyuki, All rights reserved.

🧚 LICENSE 🧚

This software is distributed under The BSD 2-Clause License. go forth and distribute, respectfully. πŸ’–


and that's the whole page babes!! this gem was served up by perl v5.40.1 on 2026-07-05 (that's the footer, she's dated, she's versioned, she's thriving βœ¨πŸŽ€πŸ’…). mwah, bye!! 🫢

πŸ“¦ where this page comes from