1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
aamine 2003-05-04 06:18:19 +00:00
parent af9bb04a6f
commit 55d9858060
2 changed files with 6 additions and 2 deletions

View file

@ -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>
* lib/net/pop.rb: APOP did not work. [ruby-dev:20149]

View file

@ -302,7 +302,7 @@ module Net
def start( helo = 'localhost.localdomain',
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?
begin
do_start(helo, user, secret, authtype)
@ -330,7 +330,7 @@ module Net
rescue ProtocolError
if @esmtp
@esmtp = false
@command.error_ok
@command = SMTPCommand.new(@socket)
retry
end
raise