From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id D077C19C001F for ; Wed, 28 Oct 2015 19:00:39 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 564F0B5D86C for ; Wed, 28 Oct 2015 19:28:34 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 47C6C952439 for ; Wed, 28 Oct 2015 19:28:33 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 91D221204B9; Wed, 28 Oct 2015 19:28:32 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id DD91C12047B for ; Wed, 28 Oct 2015 19:28:28 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=Scj9gX6ksQFFiZt28KQj7BONl0Q=; b=loxb4CXxGhFhScodBq f2cXR/1pGMSt5Rvdwitfy2MN0yOnZBbrqD5q9Ftd8zB8mHCU5PPt6+9gpsENN1s/ kb1QsuNLCvRxAj5aWSPVTzUPlgAGLk3cOL+hkgqdIwy8/vHPoBjwEUP7y7b7k4bo dzq6iSR+PCwNS2egn5QiGdqUM= Received: by filter0455p1mdw1.sendgrid.net with SMTP id filter0455p1mdw1.19871.5630A34835 2015-10-28 10:28:24.896728873 +0000 UTC Received: from herokuapp.com (ec2-54-166-20-181.compute-1.amazonaws.com [54.166.20.181]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id 6iULheGCTXyZXNZI1eo10Q for ; Wed, 28 Oct 2015 10:28:24.392 +0000 (UTC) Date: Wed, 28 Oct 2015 10:28:24 +0000 From: robert.pankowecki@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 45872 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11628 X-Redmine-Issue-Author: rupert X-Redmine-Sender: rupert X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7+qen92DpZPhk7uBkSFl0zmBXgZevDZFYxjC 7aUBfvkfZrz50g4VUIoMftZAMb67V6NHazlCarG4Sp6nO2IHZoW6YO5mqj7Oqs+nF01vnumQdqU54m Pw2ZVmXbqdngHCDjvZ6iv1SerE4MNm8Ivvlz X-ML-Name: ruby-core X-Mail-Count: 71243 Subject: [ruby-core:71243] [Ruby trunk - Bug #11628] [Open] Net::SMTPServerBusy is not behaving according to documentation X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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/