[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:26190] [Bug #2241] Let Net::SMTP continu when at least one RCPT is accepted

From: Kero van Gelder <redmine@...>
Date: 2009-10-20 22:33:51 UTC
List: ruby-core #26190
Bug #2241: Let Net::SMTP continu when at least one RCPT is accepted
http://redmine.ruby-lang.org/issues/show/2241

Author: Kero van Gelder
Status: Open, Priority: Normal
Category: lib
ruby -v: 1.8 as well as 1.9

(sorry for the delay in filing on redmine I had some
problems with creating the account; as said, I'm messing
with SMTP daemons ;)  )

Ruby's Net::SMTP quits when the first Unknown User is
encountered. I think Net::SMTP should continue with
other RCPTs, then use DATA to let the mail be delivered
to existing users.

I think this should be so, because
 - RFC821 mentions clearly in the second paragraph in section 2
   "if not, it responds with a reply rejecting that recipient
   (but not the whole mail transaction)", and
 - RFC2821 leaves this in the middle, but still gives
   an example in section  D.1 A Typical SMTP Transaction Scenario
   "C: RCPT TO:<Jones@foo.com>
      S: 250 OK
      C: RCPT TO:<Green@foo.com>
      S: 550 No such user here
      C: RCPT TO:<Brown@foo.com>
      S: 250 OK"

So, I wrote code to accomplish this.
Please find a patch attached.

Comments welcome, especially on the Errors constructed and returned.
They are in plain text; I can imagine making the unknown and ok
users explicit (arrays within the exception), so that code that uses
Net::SMTP has an easier time determining which emails were not sent.

Bye,
Kero.

PS: patch applies to both ruby_1_8 branch and trunk


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next