summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-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 82cc9a747b..0f3aa0d878 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)