Skip to content

Commit f7d617b

Browse files
committed
📚 Improve rdoc example for uid_fetch with partial
1 parent bab9dfb commit f7d617b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/net/imap.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,6 +2675,7 @@ def fetch(...)
26752675
# # fetch should return quickly and allocate little memory
26762676
# results.size # => 0..500
26772677
# break if results.empty?
2678+
# results.sort_by!(&:uid) # server may return results out of order
26782679
# next_uid_to_fetch = results.last.uid + 1
26792680
# process results
26802681
# end

0 commit comments

Comments
 (0)