diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-04 06:04:03 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-04 06:04:03 +0000 |
commit | af9bb04a6fe879f8208de99b5d080b9f4b602325 (patch) | |
tree | a0cbbf5c96160601dfba8c6efccdb85e3f0cade2 | |
parent | 49cd34df39ba022e32d40239ec2e36d570ac01d6 (diff) | |
download | ruby-af9bb04a6fe879f8208de99b5d080b9f4b602325.tar.gz |
* lib/net/pop.rb: APOP did not work. [ruby-dev:20149]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/net/pop.rb | 16 |
2 files changed, 12 insertions, 8 deletions
@@ -1,3 +1,7 @@ +Sun May 4 15:06:37 2003 Minero Aoki <aamine@loveruby.net> + + * lib/net/pop.rb: APOP did not work. [ruby-dev:20149] + Sat May 3 00:58:53 2003 Yukihiro Matsumoto <matz@ruby-lang.org> * class.c (rb_class_protected_instance_methods): now gives diff --git a/lib/net/pop.rb b/lib/net/pop.rb index fa012f1a3a..1d1373d4d6 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -448,7 +448,7 @@ module Net end def auth_only( account, password ) - raise IOError, 'opening already opened POP session' if active? + raise IOError, 'opening already opened POP session' if started? start(account, password) { ; } @@ -511,14 +511,14 @@ module Net alias active? started? # backward compatibility def start( account, password ) - raise IOError, 'already closed POP session' if @started + raise IOError, 'POP session already started' if @started if block_given? begin do_start account, password return yield(self) ensure - finish unless @started + finish if @started end else do_start acount, password @@ -715,12 +715,12 @@ module Net end def apop( account, password ) - raise POPAuthenticationError.new('not APOP server; cannot login', nil)\ + raise POPAuthenticationError, 'not APOP server; cannot login' \ unless @apop_stamp check_response_auth(critical { - get_reply('APOP %s %s', - account, - Digest::MD5.hexdigest(@apop_stamp + password)) + get_response('APOP %s %s', + account, + Digest::MD5.hexdigest(@apop_stamp + password)) }) end @@ -745,7 +745,7 @@ module Net end def rset - check_reply(critical { get_response 'RSET' }) + check_response(critical { get_response 'RSET' }) end def top( num, lines = 0, dest = '' ) |