Skip to content

Commit 9377f89

Browse files
committed
📚 Update #search documentation, search criteria
1 parent e650840 commit 9377f89

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

lib/net/imap.rb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,17 +1242,23 @@ def uid_expunge(uid_set)
12421242
#
12431243
# ===== Search criteria
12441244
#
1245-
# The following are some common search criteria;
1246-
# see [{IMAP4rev1 §6.4.4}[https://www.rfc-editor.org/rfc/rfc3501.html#section-6.4.4]]
1247-
# for a full list:
1245+
# For a full list of search criteria,
1246+
# see [{IMAP4rev1 §6.4.4}[https://www.rfc-editor.org/rfc/rfc3501.html#section-6.4.4]],
1247+
# or [{IMAP4rev2 §6.4.4}[https://www.rfc-editor.org/rfc/rfc9051.html#section-6.4.4]],
1248+
# in addition to documentation for
1249+
# any [CAPABILITIES[https://www.iana.org/assignments/imap-capabilities/imap-capabilities.xhtml]]
1250+
# reported by #capability which may define additional search filters, e.g:
1251+
# +CONDSTORE+, +WITHIN+, +FILTERS+, <tt>SEARCH=FUZZY</tt>, +OBJECTID+, or
1252+
# +SAVEDATE+. The following are some common search criteria:
12481253
#
12491254
# <message set>:: a set of message sequence numbers. "<tt>,</tt>" indicates
12501255
# an interval, "+:+" indicates a range. For instance,
12511256
# "<tt>2,10:12,15</tt>" means "<tt>2,10,11,12,15</tt>".
12521257
#
12531258
# BEFORE <date>:: messages with an internal date strictly before
1254-
# <date>. The date argument has a format similar
1255-
# to 8-Aug-2002.
1259+
# <b><date></b>. The date argument has a format similar
1260+
# to <tt>8-Aug-2002</tt>, and can be formatted using
1261+
# Net::IMAP.format_date.
12561262
#
12571263
# BODY <string>:: messages that contain <string> within their body.
12581264
#

0 commit comments

Comments
 (0)