Sisima...antRFC(3pm)
π Sisima...antRFC(3pm) β the "notcompliantrfc" reason era π
ok so bestie, this is a page from the User Contributed Perl Documentation and it's about catching emails that just did NOT read the RFCs. Let's get into it π
β¨ NAME β¨
Sisimai::Reason::NotCompliantRFC β tells you whether a bounce reason is "notcompliantrfc" or not.
That's it. That's the whole job. Very demure, very mindful π
πΈ SYNOPSIS πΈ
use Sisimai::Reason::NotCompliantRFC;
print Sisimai::Reason::NotCompliantRFC->match('This message is not RFC 5322 compliant.'); # 1
see how it prints 1? that's the whole vibe check passing, no cap β¨
π¦ DESCRIPTION π¦
Sisimai::Reason::NotCompliantRFC looks at a bounce reason and figures out if it's "notcompliantrfc" or not. Heads up though: this class doesn't get called by you directly β it gets called only from the Sisimai::Reason class. It's giving backstage crew, not main character π€
So what even is this error? It's the one where the email is not compliant with RFC 5322, or with other email-related RFCs. For example β and this is the classic β there are multiple Subject headers in the email. Likeβ¦ pick ONE bestie π
host aspmx.l.google.com[142.251.170.26] said: This message is not RFC 5322 compliant. There are
multiple Subject headers. To reduce the amount of spam sent to Gmail, this message has been
blocked. Please visit https://support.google.com/mail/?p=RfcMessageNonCompliant and review RFC
5322 specifications for more information. - gsmtp (in reply to end of DATA command)",
Gmail really said "review the specs" and blocked you on the spot π read the RFCs fr fr
π CLASS METHODS π
π text()
the text() method hands you back the fixed string "notcompliantrfc". no arguments, no drama.
print Sisimai::Reason::NotCompliantRFC->text; # notcompliantrfc
π«Ά match(string)
the match() method returns 1 if the argument you pass in matches the patterns defined inside this class.
print Sisimai::Reason::NotCompliantRFC->match('This message is not RFC 5322 compliant'); # 1
π true(Sisimai::Fact)
the true() method returns 1 if the bounce reason is "notcompliantrfc". The argument must be a Sisimai::Fact object, and β plot twist β this method is called only from the Sisimai::Reason class. iykyk π«
β AUTHOR β
azumakuniyuki
π COPYRIGHT π
Copyright (C) 2024-2026 azumakuniyuki, All rights reserved.
π LICENSE π
This software is distributed under The BSD 2-Clause License.
aaaand that's the page bestie! π¦ this absolute icon of a doc was generated from perl v5.40.1 and dated 2026-07-05 β slay, obsessed, periodt β¨π
π¦ 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