* lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821

violation. [ruby-dev:35487]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@18118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2008-07-17 12:42:52 +00:00
parent b3f0632590
commit 296150a27f
3 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 17 21:42:07 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
* lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821
violation. [ruby-dev:35487]
Thu Jul 17 21:32:49 2008 Tanaka Akira <akr@fsij.org> Thu Jul 17 21:32:49 2008 Tanaka Akira <akr@fsij.org>
* string.c (rb_str_format_m): make tmp volatile to avoid possible GC * string.c (rb_str_format_m): make tmp volatile to avoid possible GC

View file

@ -437,7 +437,7 @@ module Net
# +port+ is the port to connect to; it defaults to port 25. # +port+ is the port to connect to; it defaults to port 25.
# #
# +helo+ is the _HELO_ _domain_ provided by the client to the # +helo+ is the _HELO_ _domain_ provided by the client to the
# server (see overview comments); it defaults to 'localhost'. # server (see overview comments); it defaults to 'localhost.localdomain'.
# #
# The remaining arguments are used for SMTP authentication, if required # The remaining arguments are used for SMTP authentication, if required
# or desired. +user+ is the account name; +secret+ is your password # or desired. +user+ is the account name; +secret+ is your password
@ -457,7 +457,7 @@ module Net
# * IOError # * IOError
# * TimeoutError # * TimeoutError
# #
def SMTP.start(address, port = nil, helo = 'localhost', def SMTP.start(address, port = nil, helo = 'localhost.localdomain',
user = nil, secret = nil, authtype = nil, user = nil, secret = nil, authtype = nil,
&block) # :yield: smtp &block) # :yield: smtp
new(address, port).start(helo, user, secret, authtype, &block) new(address, port).start(helo, user, secret, authtype, &block)
@ -518,7 +518,7 @@ module Net
# * IOError # * IOError
# * TimeoutError # * TimeoutError
# #
def start(helo = 'localhost', def start(helo = 'localhost.localdomain',
user = nil, secret = nil, authtype = nil) # :yield: smtp user = nil, secret = nil, authtype = nil) # :yield: smtp
if block_given? if block_given?
begin begin

View file

@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2008-07-17" #define RUBY_RELEASE_DATE "2008-07-17"
#define RUBY_VERSION_CODE 187 #define RUBY_VERSION_CODE 187
#define RUBY_RELEASE_CODE 20080717 #define RUBY_RELEASE_CODE 20080717
#define RUBY_PATCHLEVEL 62 #define RUBY_PATCHLEVEL 63
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_MINOR 8