Sisima...oLarge(3pm)
π Sisimai::Reason::EmailTooLarge π
okay bestie, sit down, hydrate, and let me tell you about Sisimai::Reason::EmailTooLarge β it lives in the User Contributed Perl Documentation section of the manual, and it is literally the vibe checker for one specific bounce reason. Yes, one. And it does that one job flawlessly. π
β¨ NAME β¨
Sisimai::Reason::EmailTooLarge β nope, this isn't about whether the bounce reason is "emailtoolarge" or not? girl, it totally IS about whether the bounce reason is "emailtoolarge" or not. That's the whole thing. That's the assignment. π
πΈ SYNOPSIS πΈ
the lil sneak peek, look how cute and short:
use Sisimai::Reason::EmailTooLarge;
print Sisimai::Reason::EmailTooLarge->match('400 Message too big'); # 1
see that # 1? that's the match saying "yeah bestie, that's the one". π«Ά
π¦ DESCRIPTION π¦
so "Sisimai::Reason::EmailTooLarge" checks whether the bounce reason is "emailtoolarge" or not. That's it, that's the errand. π§
and important detail, do NOT skip this: this class is called only by the "Sisimai::Reason" class. it's not for you to ring up directly out of nowhere, ok? it's got main character energy but it answers to one boss. π€
here's the actual situation this class is describing: this is the error that happens when the sent email size is too big for the destination mail server. and in many cases?? there are many attachment files riding along with the email, or a single file is just enormous. π
and here's the tea β Sisimai will set "emailtoolarge" to the reason of the email bounce if the value of the "Status:" field in the bounce email is 5.2.3 or 5.3.4. those two numbers, those are the magic ones. β¨
like, for example:
Action: failed
Status: 553 Exceeded maximum inbound message size
iconic. observed. noted. π₯
π CLASS METHODS π
π "text()"
text() method returns the fixed string "emailtoolarge". no drama, no surprises, just the word. periodt.
print Sisimai::Reason::EmailTooLarge->text; # emailtoolarge
π "match(string)"
match() method returns 1 if the argument matched with patterns defined in this class. give it a string, get back a 1 or nothing at all. the original vibe check. π
print Sisimai::Reason::EmailTooLarge->match('400 Message too big'); # 1
π "true(Sisimai::Fact)"
true() method returns 1 if the bounce reason is "emailtoolarge". π
BUT β and this is the catch, bestie β the argument must be a "Sisimai::Fact" object. not a string, not a hash, not a vibe. a Sisimai::Fact object. and on top of that, this method is called only from the "Sisimai::Reason" class. so it's a whole private-club situation. iykyk. πͺβ¨
π AUTHOR π
azumakuniyuki β the legend who wrote all this. respect. π«‘
β COPYRIGHT β
Copyright (C) 2014-2018,2020,2021,2024-2026 azumakuniyuki, All rights reserved.
look at that date list, the way it hops from 2021 straight to 2024, that's a gap year and honestly? relatable. π
π LICENSE π
This software is distributed under The BSD 2-Clause License. open, generous, iconic behavior only. π
and that's the whole page bestie!! ππ
one last lil sign-off from the footer: this is documented for perl v5.40.1, dated 2026-07-05, and it's filed underSisima...oLarge(3pm)in theSisimai::Reason::EmailTooLargesection. yes the title is literally truncated like that, that's not me being lazy, that's just how the page prints. ππ¦
love u, go check those Status: fields π
π¦ 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