ruby-changes:6600
From: shyouhei <ko1@a...>
Date: Thu, 17 Jul 2008 21:40:52 +0900 (JST)
Subject: [ruby-changes:6600] Ruby:r18116 (ruby_1_8_6): * lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821
shyouhei 2008-07-17 21:40:40 +0900 (Thu, 17 Jul 2008) New Revision: 18116 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18116 Log: * lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821 violation. [ruby-dev:35487] Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/lib/net/smtp.rb branches/ruby_1_8_6/version.h Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 18115) +++ ruby_1_8_6/ChangeLog (revision 18116) @@ -1,3 +1,8 @@ +Thu Jul 17 21:37:39 2008 URABE Shyouhei <shyouhei@r...> + + * lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821 + violation. [ruby-dev:35487] + Thu Jul 17 21:31:46 2008 Tanaka Akira <akr@f...> * string.c (rb_str_format_m): make tmp volatile to avoid possible GC Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 18115) +++ ruby_1_8_6/version.h (revision 18116) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-07-17" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080717 -#define RUBY_PATCHLEVEL 278 +#define RUBY_PATCHLEVEL 279 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/lib/net/smtp.rb =================================================================== --- ruby_1_8_6/lib/net/smtp.rb (revision 18115) +++ ruby_1_8_6/lib/net/smtp.rb (revision 18116) @@ -289,7 +289,7 @@ # +port+ is the port to connect to; it defaults to port 25. # # +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 # or desired. +user+ is the account name; +secret+ is your password @@ -309,10 +309,9 @@ # * IOError # * TimeoutError # - def SMTP.start( address, port = nil, - helo = 'localhost', - user = nil, secret = nil, authtype = nil, - &block) # :yield: smtp + def SMTP.start(address, port = nil, helo = 'localhost.localdomain', + user = nil, secret = nil, authtype = nil, + &block) # :yield: smtp new(address, port).start(helo, user, secret, authtype, &block) end @@ -371,8 +370,8 @@ # * IOError # * TimeoutError # - def start( helo = 'localhost', - user = nil, secret = nil, authtype = nil ) # :yield: smtp + def start(helo = 'localhost.localdomain', + user = nil, secret = nil, authtype = nil) # :yield: smtp if block_given? begin do_start(helo, user, secret, authtype) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/