* lib/net/smtp.rb: ESMTP -> SMTP transition wrongly fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af9bb04a6f
commit
55d9858060
@ -1,3 +1,7 @@
|
|||||||
|
Sun May 4 15:21:18 2003 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* lib/net/smtp.rb: ESMTP -> SMTP transition wrongly fails.
|
||||||
|
|
||||||
Sun May 4 15:06:37 2003 Minero Aoki <aamine@loveruby.net>
|
Sun May 4 15:06:37 2003 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/net/pop.rb: APOP did not work. [ruby-dev:20149]
|
* lib/net/pop.rb: APOP did not work. [ruby-dev:20149]
|
||||||
|
@ -302,7 +302,7 @@ module Net
|
|||||||
|
|
||||||
def start( helo = 'localhost.localdomain',
|
def start( helo = 'localhost.localdomain',
|
||||||
user = nil, secret = nil, authtype = nil )
|
user = nil, secret = nil, authtype = nil )
|
||||||
raise IOError, 'SMTP session opened already' if @started
|
raise IOError, 'SMTP session already started' if @started
|
||||||
if block_given?
|
if block_given?
|
||||||
begin
|
begin
|
||||||
do_start(helo, user, secret, authtype)
|
do_start(helo, user, secret, authtype)
|
||||||
@ -330,7 +330,7 @@ module Net
|
|||||||
rescue ProtocolError
|
rescue ProtocolError
|
||||||
if @esmtp
|
if @esmtp
|
||||||
@esmtp = false
|
@esmtp = false
|
||||||
@command.error_ok
|
@command = SMTPCommand.new(@socket)
|
||||||
retry
|
retry
|
||||||
end
|
end
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user