1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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/trunk@17429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2008-06-19 11:42:05 +00:00
parent 350e6ed84b
commit 2bcb0a1a35
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Thu Jun 19 20:37:00 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* lib/net/pop.rb (Net::POP3#set_all_uids): speed
up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047]
Thu Jun 19 17:44:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org> Thu Jun 19 17:44:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/etc/etc.c (Init_etc): define constant aliases Etc::Passwd * ext/etc/etc.c (Init_etc): define constant aliases Etc::Passwd
@ -8,7 +13,7 @@ Thu Jun 19 17:37:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (str_alloc): specify 'inline' modifier. * string.c (str_alloc): specify 'inline' modifier.
* string.c (str_alloc): remove cSymbol hack that no longer * string.c (str_alloc): remove cSymbol hack that no longer
necessary. necessary.
* string.c (scan_once): avoid retrieving encoding info unless * string.c (scan_once): avoid retrieving encoding info unless
necessary. necessary.

View file

@ -683,9 +683,8 @@ module Net
end end
def set_all_uids #:nodoc: internal use only (called from POPMail#uidl) def set_all_uids #:nodoc: internal use only (called from POPMail#uidl)
command().uidl.each do |num, uid| uidl = command().uidl
@mails.find {|m| m.number == num }.uid = uid @mails.each {|m| m.uid = uidl[m.number] }
end
end end
def logging(msg) def logging(msg)