Skip to content

Commit e650840

Browse files
committed
📚 Update #uid_fetch documentation
Add a note about the implicit UID message data item.
1 parent 1e6b243 commit e650840

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/net/imap.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,11 @@ def fetch(set, attr, mod = nil)
13401340
# Similar to #fetch, but the +set+ parameter contains unique identifiers
13411341
# instead of message sequence numbers.
13421342
#
1343+
# >>>
1344+
# *Note:* Servers _MUST_ implicitly include the +UID+ message data item as
1345+
# part of any +FETCH+ response caused by a +UID+ command, regardless of
1346+
# whether a +UID+ was specified as a message data item to the +FETCH+.
1347+
#
13431348
# Related: #fetch, FetchData
13441349
def uid_fetch(set, attr, mod = nil)
13451350
return fetch_internal("UID FETCH", set, attr, mod)

0 commit comments

Comments
 (0)