Sisima...ommand(3pm)

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

πŸ’Œ Sisimai::SMTP::Command β€” the Perl page, but make it cute

okay so bestie, welcome to Sisimai::SMTP::Command πŸ’– this lives in the User Contributed Perl Documentation, section 3pm β€” yes, the Sisima...ommand(3pm) one, she's real, she's here, she's serving. 🫢


✨ NAME ✨

Sisimai::SMTP::Command β€” SMTP Command related utilities πŸŽ€

✨ SYNOPSIS ✨

use Sisimai::SMTP::Command;
Sisimai::SMTP::Command->find('in reply to RCPT TO command');  # RCPT

like, that's it. that's the whole vibe. one use, one call, and she hands you RCPT. πŸ’…

✨ DESCRIPTION ✨

Sisimai::SMTP::Command is a class for finding the last SMTP command from a given error message. that's her whole job and she does it flawlessly, no notes. πŸ”₯

so you hand her some messy bounce-y error text, and she digs through it and tells you which SMTP command was the last one being talked about. main character energy fr fr. πŸ‘‘

🌸 CLASS METHODS 🌸

πŸ’– test(String)

the test() method checks whether the SMTP command is a valid command or not β€” like a little vibe check for command strings. βœ…

print Sisimai::SMTP::Command->test('STARTTLS'); # 1
print Sisimai::SMTP::Command->test('NEKO');     # 0

STARTTLS? valid, she said 1. NEKO? not a command bestie, that's a cat, she said 0. πŸ˜­πŸ’€

πŸ’– find(String)

the find() method returns the last SMTP command, like the following: πŸ”

print Sisimai::SMTP::Command->find('MAIL FROM: <> 250 OK RCPT TO: <...> 550');  # "RCPT"

see how she ignored MAIL FROM: <> and clocked the RCPT? obsessed. she only cares about the last one. periodt. 🌈


✨ AUTHOR ✨

azumakuniyuki β€” the icon, the legend, the moment. πŸ‘‘

Copyright (C) 2022-2026 azumakuniyuki, All rights reserved. πŸ“

✨ LICENSE ✨

This software is distributed under The BSD 2-Clause License. πŸ“œ β€” permissive, chill, iconic behavior. πŸ¦‹


and that's the whole page bestie!! no cap, every last crumb of it. πŸ“

this little cutie was brought to you by perl v5.40.1, dated 2026-07-05 🌸 β€” so go forth, find your SMTP commands, and slay. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from