Sisima...lation(3pm)
β¨ NAME β¨
Sisimai::Reason::PolicyViolation β bestie, this one decides whether a bounce reason is policyviolation or not. That's it, that's the job. π
(This is from the User Contributed Perl Documentation crew, section 3pm, so you know it's a Perl module situation.)
πΈ SYNOPSIS πΈ
Here's the whole vibe in two lines:
use Sisimai::Reason::PolicyViolation;
print Sisimai::Reason::PolicyViolation->match('5.7.9 Header error'); # 1
Like?? It just works. π
π DESCRIPTION π
Okay so <pink>Sisimai::Reason::PolicyViolation</pink> checks whether a bounce reason is policyviolation or not. That's its whole personality. π«Ά
The tea: this class does not get called by you directly β it's called only by the Sisimai::Reason class. It's giving backstage crew, not main character. And honestly? Respect. π
So what is a policy violation, you ask? It's the error you get when the destination mail host detects that somebody broke their rules. Specifically, when the header content or the format of the original message violates their security policies, or when there are multiple addresses in the From: header β that's when Sisimai sets policyviolation. Periodt.
Here's what that looks like in the wild:
Action: failed
Status: 5.7.0
Remote-MTA: DNS; gmail-smtp-in.l.google.com
Diagnostic-Code: SMTP; 552-5.7.0 Our system detected an illegal attachment on your message. Please
Last-Attempt-Date: Tue, 28 Apr 2009 11:02:45 +0900 (JST)
Not the "illegal attachment" π the mail server said absolutely not and honestly it ate.
π CLASS METHODS π
π text()
The text() method returns the fixed string policyviolation. That's the whole method. No thoughts, no arguments, just a string serving cunt. β¨
print Sisimai::Reason::PolicyViolation->text; # policyviolation
π¦ match(string)
The match() method returns 1 if the argument matched with the patterns defined in this class. Give it a string, get a 1 back if it's a match. slay. π
print Sisimai::Reason::PolicyViolation->match('5.7.9 Header error'); # 1
π true(Sisimai::Fact)
The true() method returns 1 if the bounce reason is policyviolation.
β οΈ Heads up bestie: the argument must be aSisimai::Factobject. And this method is called only from theSisimai::Reasonclass β not by you, not by your friend, not by anybody else. iykyk. π
β AUTHOR β
azumakuniyuki β the icon, the moment, the legend. π
π COPYRIGHT π
Copyright (C) 2017-2026 azumakuniyuki, All rights reserved.
(Yes, 2017 through 2026. A whole decade of dedication fr fr. π₯)
π LICENSE π
This software is distributed under The BSD 2-Clause License. Go forth and use it responsibly, gorgeous. π
And that's the whole page, pookie!! π«Ά This was documented for perl v5.40.1, dated 2026-07-05, under Sisima...lation(3pm). No cap, you're now fully caught up. mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: libsisimai-perl 5.7.0-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms