logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sisimai::SMTP::Command - SMTP Command related utilities

Author

       azumakuniyuki

Class Methods

"test(String)"
       test() method checks whether the SMTP command is a valid command or not

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

   "find(String)"
       find() method returns the last SMTP command like the following:

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

Description

       "Sisimai::SMTP::Command" is a class for finding the last SMTP command from given error message.

License

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

perl v5.40.1                                       2025-04-12                        Sisimai::SMTP::Command(3pm)

Name

       Sisimai::SMTP::Command - SMTP Command related utilities

Synopsis

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

See Also