[ruby-core:99518] [Ruby master Bug#11628] Net::SMTPServerBusy is not behaving according to documentation
From:
jackryan0307@...
Date:
2020-08-08 20:35:18 UTC
List:
ruby-core #99518
Issue #11628 has been updated by jackryan0307 (Jack Ryan).
Checkout this - https://www.freesmtpservers.com/free-smtp-servers-for-sending-free-emails/
----------------------------------------
Bug #11628: Net::SMTPServerBusy is not behaving according to documentation
https://bugs.ruby-lang.org/issues/11628#change-86979
* Author: rupert (Robert Pankowecki)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The documentation for Net::SMTPServerBusy says _Represents SMTP error code 420 or 450, a temporary error_ (http://ruby-doc.org/stdlib-2.2.0/libdoc/net/smtp/rdoc/Net/SMTPServerBusy.html)
However the code for that is:
~~~
def exception_class
case @status
when /\A4/ then SMTPServerBusy
when /\A50/ then SMTPSyntaxError
when /\A53/ then SMTPAuthenticationError
when /\A5/ then SMTPFatalError
else SMTPUnknownError
end
end
~~~
so it actually represents any error code starting with 4, including such as: `Net::SMTPServerBusy: 401 4.1.3 Bad recipient address syntax`.
It doesn't help that different pages in internet list different error codes:
* http://www.serversmtp.com/en/smtp-error
* http://www.greenend.org.uk/rjk/tech/smtpreplies.html
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>