From: robert.pankowecki@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:71243] [Ruby trunk - Bug #11628] [Open] Net::SMTPServerBusy is not behaving according to documentation
Date: Wed, 28 Oct 2015 10:28:24 +0000 [thread overview]
Message-ID: <redmine.issue-11628.20151028102822.1dc7ea75cca33d27@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11628.20151028102822@ruby-lang.org
Issue #11628 has been reported by Robert Pankowecki.
----------------------------------------
Bug #11628: Net::SMTPServerBusy is not behaving according to documentation
https://bugs.ruby-lang.org/issues/11628
* Author: Robert Pankowecki
* Status: Open
* Priority: Normal
* Assignee:
* 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/
parent reply other threads:[~2015-10-28 10:00 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <redmine.issue-11628.20151028102822@ruby-lang.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.issue-11628.20151028102822.1dc7ea75cca33d27@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).