class Net::IMAP
def sort(sort_keys, search_keys, charset)
The server's capabilities must include +SORT+
===== Capabilities
#=> [6, 7, 8, 1]
p imap.sort(["DATE"], ["SUBJECT", "hello"], "US-ASCII")
#=> [1, 2, 3, 5, 6, 7, 8, 4, 9]
p imap.sort(["FROM"], ["ALL"], "US-ASCII")
===== For example:
Related: #uid_sort, #search, #uid_search, #thread, #uid_thread
++
TODO: describe +sort_keys+
--
are interpreted the same as for #search.
array of message sequence numbers, sorted by +sort_keys+. +search_keys+
to search a mailbox for messages that match +search_keys+ and return an
Sends a {SORT command [RFC5256 ยง3]}[https://www.rfc-editor.org/rfc/rfc5256#section-3]
def sort(sort_keys, search_keys, charset) return sort_internal("SORT", sort_keys, search_keys, charset) end