@@ -2357,14 +2357,9 @@ def uid_search(...)
2357
2357
# Sends a {FETCH command [IMAP4rev1 §6.4.5]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.5]
2358
2358
# to retrieve data associated with a message in the mailbox.
2359
2359
#
2360
- # The +set+ parameter is a number or a range between two numbers,
2361
- # or an array of those. The number is a message sequence number,
2362
- # where -1 represents a '*' for use in range notation like 100..-1
2363
- # being interpreted as '100:*'. Beware that the +exclude_end?+
2364
- # property of a Range object is ignored, and the contents of a
2365
- # range are independent of the order of the range endpoints as per
2366
- # the protocol specification, so 1...5, 5..1 and 5...1 are all
2367
- # equivalent to 1..5.
2360
+ # +set+ is the message sequence numbers to fetch, and may be any valid input
2361
+ # to {SequenceSet[...]}[rdoc-ref:SequenceSet@Creating+sequence+sets].
2362
+ # (For UIDs, use #uid_fetch instead.)
2368
2363
#
2369
2364
# +attr+ is a list of attributes to fetch; see the documentation
2370
2365
# for FetchData for a list of valid attributes.
@@ -2374,7 +2369,7 @@ def uid_search(...)
2374
2369
#
2375
2370
# The return value is an array of FetchData.
2376
2371
#
2377
- # Related: #uid_search , FetchData
2372
+ # Related: #uid_fetch , FetchData
2378
2373
#
2379
2374
# ==== For example:
2380
2375
#
@@ -2413,17 +2408,22 @@ def fetch(set, attr, mod = nil, changedsince: nil)
2413
2408
# Sends a {UID FETCH command [IMAP4rev1 §6.4.8]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.8]
2414
2409
# to retrieve data associated with a message in the mailbox.
2415
2410
#
2416
- # Similar to #fetch, but the +set+ parameter contains unique identifiers
2417
- # instead of message sequence numbers.
2411
+ # +set+ is the message UIDs to fetch, and may be any valid input to
2412
+ # {SequenceSet[...]}[rdoc-ref:SequenceSet@Creating+sequence+sets].
2413
+ # (For message sequence numbers, use #fetch instead.)
2418
2414
#
2415
+ # +attr+ behaves the same as with #fetch.
2419
2416
# >>>
2420
2417
# *Note:* Servers _MUST_ implicitly include the +UID+ message data item as
2421
2418
# part of any +FETCH+ response caused by a +UID+ command, regardless of
2422
2419
# whether a +UID+ was specified as a message data item to the +FETCH+.
2423
2420
#
2421
+ # +changedsince+ (optional) behaves the same as with #fetch.
2422
+ #
2424
2423
# Related: #fetch, FetchData
2425
2424
#
2426
2425
# ==== Capabilities
2426
+ #
2427
2427
# Same as #fetch.
2428
2428
def uid_fetch ( set , attr , mod = nil , changedsince : nil )
2429
2429
fetch_internal ( "UID FETCH" , set , attr , mod , changedsince : changedsince )
0 commit comments