Sisima...imited(3pm)

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

πŸ’– NAME πŸ’–

Sisimai::Reason::RateLimited β€” the bounce reason for when a server is like "bestie pls, too many connections, slow down" πŸ’€


✨ SYNOPSIS ✨

okay so this is literally all you need, no cap:

use Sisimai::Reason::RateLimited;
print Sisimai::Reason::RateLimited->match('Connection rate limit exceeded');    # 1

πŸ¦‹ DESCRIPTION πŸ¦‹

So Sisimai::Reason::RateLimited πŸ‘‘ has one job: it checks whether a bounce reason is ratelimited or not. That's it, that's the whole vibe. And heads up β€” this class is called only by the Sisimai::Reason class. Not you, not your script, just Sisimai::Reason. iykyk 🫢

Now what actually is this error? It's the one where the SMTP connection got rejected temporarily because you were hitting the remote server too fast, or with too many concurrent connections at once. Like showing up to the party with your whole group chat πŸ’…. This reason got added in Sisimai 4.1.26, so if you're on something older, sorry bestie 😭

And here's what it actually looks like in the wild, fr fr:

<kijitora@example.ne.jp>: host mx02.example.ne.jp[192.0.1.20] said:
    452 4.3.2 Connection rate limit exceeded. (in reply to MAIL FROM command)

see that 452 4.3.2? that's the moment πŸŽ€


🌸 CLASS METHODS 🌸

text()

The text() method returns the fixed string ratelimited. That's the whole thing, no arguments, no drama ✨

print Sisimai::Reason::RateLimited->text;  # ratelimited

match(string)

The match() method returns 1 if the argument you passed in matched with the patterns defined in this class. So it's doing a lil vibe check on your string 🧚

print Sisimai::Reason::RateLimited->match('Connection rate limit exceeded');  # 1

true(Sisimai::Fact)

The true() method returns 1 if the bounce reason is ratelimited. Okay but listen β€” the argument must be a Sisimai::Fact object, and this method is called only from the Sisimai::Reason class. So don't just hand it a random string, it's not gonna slay 🌈

honestly the recurring theme here is: Sisimai::Reason runs the show, this class is backstage πŸ’œ

πŸ’œ AUTHOR πŸ’œ

azumakuniyuki β€” the icon, the moment, the main character πŸ‘‘


Copyright (C) 2014-2021,2024-2026 azumakuniyuki, All rights reserved.


🌈 LICENSE 🌈

This software is distributed under The BSD 2-Clause License.


okay that's the whole page bestie, you ate it up πŸ’…βœ¨ this was Sisima...imited(3pm) from User Contributed Perl Documentation, running under perl v5.40.1, dated 2026-07-05 β€” mwah, periodt πŸ«ΆπŸ’–

πŸ“¦ where this page comes from