Sisima...antRFC(3pm)

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

πŸ’– 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 (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