diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-19 11:42:05 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-19 11:42:05 +0000 |
commit | 38f7116d02cb305bdfd41b4c03109278654f0649 (patch) | |
tree | ee4930e80bb7324a1dfc6da25cc31ee130f5a9c2 /lib/net | |
parent | cdc2c74754842f6e0e3c6e2e3774a52bcff41f78 (diff) | |
download | ruby-38f7116d02cb305bdfd41b4c03109278654f0649.tar.gz ruby-38f7116d02cb305bdfd41b4c03109278654f0649.tar.xz ruby-38f7116d02cb305bdfd41b4c03109278654f0649.zip |
* lib/net/pop.rb (Net::POP3#set_all_uids): speed
up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/pop.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb index 82cc9a747..0f3aa0d87 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -683,9 +683,8 @@ module Net end def set_all_uids #:nodoc: internal use only (called from POPMail#uidl) - command().uidl.each do |num, uid| - @mails.find {|m| m.number == num }.uid = uid - end + uidl = command().uidl + @mails.each {|m| m.uid = uidl[m.number] } end def logging(msg) |