summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-24 07:38:32 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-24 07:38:32 +0000
commita9ce2ba8b9a896678a3a0a0269ea01c63d09422b (patch)
tree4936b3d98c0c7213ca0587ad69f944e87c728a7c /lib
parent39d1071b90280fb5549c1d01c847998e4f69dad6 (diff)
merge revision(s) 17430:
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@29903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/pop.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index 9a6a25266f..4374550ae9 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)