@@ -1123,7 +1123,7 @@ def capability
1123
1123
#
1124
1124
# See [ID[https://tools.ietf.org/html/rfc2971]] for field definitions.
1125
1125
#
1126
- # ===== Capabilities
1126
+ # ==== Capabilities
1127
1127
#
1128
1128
# The server's capabilities must include +ID+
1129
1129
# [RFC2971[https://tools.ietf.org/html/rfc2971]].
@@ -1205,7 +1205,7 @@ def logout!
1205
1205
#
1206
1206
# Related: Net::IMAP.new, #login, #authenticate
1207
1207
#
1208
- # ===== Capability
1208
+ # ==== Capability
1209
1209
# Clients should not call #starttls unless the server advertises the
1210
1210
# +STARTTLS+ capability.
1211
1211
#
@@ -1352,7 +1352,7 @@ def authenticate(*args, sasl_ir: config.sasl_ir, **props, &callback)
1352
1352
#
1353
1353
# Related: #authenticate, #starttls
1354
1354
#
1355
- # ===== Capabilities
1355
+ # ==== Capabilities
1356
1356
#
1357
1357
# An IMAP client MUST NOT call #login when the server advertises the
1358
1358
# +LOGINDISABLED+ capability. By default, Net::IMAP will raise a
@@ -1393,7 +1393,7 @@ def login(user, password)
1393
1393
#
1394
1394
# Related: #examine
1395
1395
#
1396
- # ===== Capabilities
1396
+ # ==== Capabilities
1397
1397
#
1398
1398
# If [UIDPLUS[https://www.rfc-editor.org/rfc/rfc4315.html]] is supported,
1399
1399
# the server may return an untagged "NO" response with a "UIDNOTSTICKY"
@@ -1511,7 +1511,7 @@ def unsubscribe(mailbox)
1511
1511
#
1512
1512
# Related: #lsub, MailboxList
1513
1513
#
1514
- # ===== For example:
1514
+ # ==== For example:
1515
1515
#
1516
1516
# imap.create("foo/bar")
1517
1517
# imap.create("foo/baz")
@@ -1562,7 +1562,7 @@ def list(refname, mailbox)
1562
1562
#
1563
1563
# Related: #list, Namespaces, Namespace
1564
1564
#
1565
- # ===== For example:
1565
+ # ==== For example:
1566
1566
#
1567
1567
# if capable?("NAMESPACE")
1568
1568
# namespaces = imap.namespace
@@ -1576,7 +1576,7 @@ def list(refname, mailbox)
1576
1576
# end
1577
1577
# end
1578
1578
#
1579
- # ===== Capabilities
1579
+ # ==== Capabilities
1580
1580
#
1581
1581
# The server's capabilities must include +NAMESPACE+
1582
1582
# [RFC2342[https://tools.ietf.org/html/rfc2342]].
@@ -1615,7 +1615,7 @@ def namespace
1615
1615
#
1616
1616
# Related: #list, MailboxList
1617
1617
#
1618
- # ===== Capabilities
1618
+ # ==== Capabilities
1619
1619
#
1620
1620
# The server's capabilities must include +XLIST+,
1621
1621
# a deprecated Gmail extension (replaced by +SPECIAL-USE+).
@@ -1638,7 +1638,7 @@ def xlist(refname, mailbox)
1638
1638
#
1639
1639
# Related: #getquota, #setquota, MailboxQuotaRoot, MailboxQuota
1640
1640
#
1641
- # ===== Capabilities
1641
+ # ==== Capabilities
1642
1642
#
1643
1643
# The server's capabilities must include +QUOTA+
1644
1644
# [RFC2087[https://tools.ietf.org/html/rfc2087]].
@@ -1659,7 +1659,7 @@ def getquotaroot(mailbox)
1659
1659
#
1660
1660
# Related: #getquotaroot, #setquota, MailboxQuota
1661
1661
#
1662
- # ===== Capabilities
1662
+ # ==== Capabilities
1663
1663
#
1664
1664
# The server's capabilities must include +QUOTA+
1665
1665
# [RFC2087[https://tools.ietf.org/html/rfc2087]].
@@ -1677,7 +1677,7 @@ def getquota(mailbox)
1677
1677
#
1678
1678
# Related: #getquota, #getquotaroot
1679
1679
#
1680
- # ===== Capabilities
1680
+ # ==== Capabilities
1681
1681
#
1682
1682
# The server's capabilities must include +QUOTA+
1683
1683
# [RFC2087[https://tools.ietf.org/html/rfc2087]].
@@ -1697,7 +1697,7 @@ def setquota(mailbox, quota)
1697
1697
#
1698
1698
# Related: #getacl
1699
1699
#
1700
- # ===== Capabilities
1700
+ # ==== Capabilities
1701
1701
#
1702
1702
# The server's capabilities must include +ACL+
1703
1703
# [RFC4314[https://tools.ietf.org/html/rfc4314]].
@@ -1715,7 +1715,7 @@ def setacl(mailbox, user, rights)
1715
1715
#
1716
1716
# Related: #setacl, MailboxACLItem
1717
1717
#
1718
- # ===== Capabilities
1718
+ # ==== Capabilities
1719
1719
#
1720
1720
# The server's capabilities must include +ACL+
1721
1721
# [RFC4314[https://tools.ietf.org/html/rfc4314]].
@@ -1752,7 +1752,7 @@ def lsub(refname, mailbox)
1752
1752
# for +mailbox+ cannot be returned; for instance, because it
1753
1753
# does not exist.
1754
1754
#
1755
- # ===== Supported attributes
1755
+ # ==== Supported attributes
1756
1756
#
1757
1757
# +MESSAGES+:: The number of messages in the mailbox.
1758
1758
#
@@ -1783,12 +1783,12 @@ def lsub(refname, mailbox)
1783
1783
# Unsupported attributes may be requested. The attribute value will be
1784
1784
# either an Integer or an ExtensionData object.
1785
1785
#
1786
- # ===== For example:
1786
+ # ==== For example:
1787
1787
#
1788
1788
# p imap.status("inbox", ["MESSAGES", "RECENT"])
1789
1789
# #=> {"RECENT"=>0, "MESSAGES"=>44}
1790
1790
#
1791
- # ===== Capabilities
1791
+ # ==== Capabilities
1792
1792
#
1793
1793
# +SIZE+ requires the server's capabilities to include either +IMAP4rev2+ or
1794
1794
# <tt>STATUS=SIZE</tt>
@@ -1828,7 +1828,7 @@ def status(mailbox, attr)
1828
1828
# not exist (it is not created automatically), or if the flags,
1829
1829
# date_time, or message arguments contain errors.
1830
1830
#
1831
- # ===== Capabilities
1831
+ # ==== Capabilities
1832
1832
#
1833
1833
# If +UIDPLUS+ [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]] is
1834
1834
# supported and the destination supports persistent UIDs, the server's
@@ -1877,7 +1877,7 @@ def close
1877
1877
#
1878
1878
# Related: #close
1879
1879
#
1880
- # ===== Capabilities
1880
+ # ==== Capabilities
1881
1881
#
1882
1882
# The server's capabilities must include +UNSELECT+
1883
1883
# [RFC3691[https://tools.ietf.org/html/rfc3691]].
@@ -1918,7 +1918,7 @@ def expunge
1918
1918
#
1919
1919
# Related: #expunge
1920
1920
#
1921
- # ===== Capabilities
1921
+ # ==== Capabilities
1922
1922
#
1923
1923
# The server's capabilities must include +UIDPLUS+
1924
1924
# [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]].
@@ -2249,7 +2249,7 @@ def uid_search(...)
2249
2249
#
2250
2250
# Related: #uid_search, FetchData
2251
2251
#
2252
- # ===== For example:
2252
+ # ==== For example:
2253
2253
#
2254
2254
# p imap.fetch(6..8, "UID")
2255
2255
# #=> [#<Net::IMAP::FetchData seqno=6, attr={"UID"=>98}>, \\
@@ -2267,7 +2267,7 @@ def uid_search(...)
2267
2267
# p data.attr["UID"]
2268
2268
# #=> 98
2269
2269
#
2270
- # ===== Capabilities
2270
+ # ==== Capabilities
2271
2271
#
2272
2272
# Many extensions define new message +attr+ names. See FetchData for a list
2273
2273
# of supported extension fields.
@@ -2296,7 +2296,7 @@ def fetch(set, attr, mod = nil, changedsince: nil)
2296
2296
#
2297
2297
# Related: #fetch, FetchData
2298
2298
#
2299
- # ===== Capabilities
2299
+ # ==== Capabilities
2300
2300
# Same as #fetch.
2301
2301
def uid_fetch ( set , attr , mod = nil , changedsince : nil )
2302
2302
fetch_internal ( "UID FETCH" , set , attr , mod , changedsince : changedsince )
@@ -2330,14 +2330,14 @@ def uid_fetch(set, attr, mod = nil, changedsince: nil)
2330
2330
#
2331
2331
# Related: #uid_store
2332
2332
#
2333
- # ===== For example:
2333
+ # ==== For example:
2334
2334
#
2335
2335
# p imap.store(6..8, "+FLAGS", [:Deleted])
2336
2336
# #=> [#<Net::IMAP::FetchData seqno=6, attr={"FLAGS"=>[:Seen, :Deleted]}>,
2337
2337
# #<Net::IMAP::FetchData seqno=7, attr={"FLAGS"=>[:Seen, :Deleted]}>,
2338
2338
# #<Net::IMAP::FetchData seqno=8, attr={"FLAGS"=>[:Seen, :Deleted]}>]
2339
2339
#
2340
- # ===== Capabilities
2340
+ # ==== Capabilities
2341
2341
#
2342
2342
# Extensions may define new data items to be used with #store.
2343
2343
#
@@ -2361,7 +2361,7 @@ def store(set, attr, flags, unchangedsince: nil)
2361
2361
#
2362
2362
# Related: #store
2363
2363
#
2364
- # ===== Capabilities
2364
+ # ==== Capabilities
2365
2365
# Same as #store.
2366
2366
def uid_store ( set , attr , flags , unchangedsince : nil )
2367
2367
store_internal ( "UID STORE" , set , attr , flags , unchangedsince : unchangedsince )
@@ -2374,7 +2374,7 @@ def uid_store(set, attr, flags, unchangedsince: nil)
2374
2374
#
2375
2375
# Related: #uid_copy
2376
2376
#
2377
- # ===== Capabilities
2377
+ # ==== Capabilities
2378
2378
#
2379
2379
# If +UIDPLUS+ [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]] is
2380
2380
# supported, the server's response should include a +COPYUID+ response code
@@ -2391,7 +2391,7 @@ def copy(set, mailbox)
2391
2391
#
2392
2392
# Similar to #copy, but +set+ contains unique identifiers.
2393
2393
#
2394
- # ===== Capabilities
2394
+ # ==== Capabilities
2395
2395
#
2396
2396
# +UIDPLUS+ affects #uid_copy the same way it affects #copy.
2397
2397
def uid_copy ( set , mailbox )
@@ -2406,7 +2406,7 @@ def uid_copy(set, mailbox)
2406
2406
#
2407
2407
# Related: #uid_move
2408
2408
#
2409
- # ===== Capabilities
2409
+ # ==== Capabilities
2410
2410
#
2411
2411
# The server's capabilities must include +MOVE+
2412
2412
# [RFC6851[https://tools.ietf.org/html/rfc6851]].
@@ -2430,7 +2430,7 @@ def move(set, mailbox)
2430
2430
#
2431
2431
# Related: #move
2432
2432
#
2433
- # ===== Capabilities
2433
+ # ==== Capabilities
2434
2434
#
2435
2435
# Same as #move: The server's capabilities must include +MOVE+
2436
2436
# [RFC6851[https://tools.ietf.org/html/rfc6851]]. +UIDPLUS+ also affects
@@ -2450,14 +2450,14 @@ def uid_move(set, mailbox)
2450
2450
#
2451
2451
# Related: #uid_sort, #search, #uid_search, #thread, #uid_thread
2452
2452
#
2453
- # ===== For example:
2453
+ # ==== For example:
2454
2454
#
2455
2455
# p imap.sort(["FROM"], ["ALL"], "US-ASCII")
2456
2456
# #=> [1, 2, 3, 5, 6, 7, 8, 4, 9]
2457
2457
# p imap.sort(["DATE"], ["SUBJECT", "hello"], "US-ASCII")
2458
2458
# #=> [6, 7, 8, 1]
2459
2459
#
2460
- # ===== Capabilities
2460
+ # ==== Capabilities
2461
2461
#
2462
2462
# The server's capabilities must include +SORT+
2463
2463
# [RFC5256[https://tools.ietf.org/html/rfc5256]].
@@ -2472,7 +2472,7 @@ def sort(sort_keys, search_keys, charset)
2472
2472
#
2473
2473
# Related: #sort, #search, #uid_search, #thread, #uid_thread
2474
2474
#
2475
- # ===== Capabilities
2475
+ # ==== Capabilities
2476
2476
#
2477
2477
# The server's capabilities must include +SORT+
2478
2478
# [RFC5256[https://tools.ietf.org/html/rfc5256]].
@@ -2497,7 +2497,7 @@ def uid_sort(sort_keys, search_keys, charset)
2497
2497
#
2498
2498
# Related: #uid_thread, #search, #uid_search, #sort, #uid_sort
2499
2499
#
2500
- # ===== Capabilities
2500
+ # ==== Capabilities
2501
2501
#
2502
2502
# The server's capabilities must include +THREAD+
2503
2503
# [RFC5256[https://tools.ietf.org/html/rfc5256]].
@@ -2511,7 +2511,7 @@ def thread(algorithm, search_keys, charset)
2511
2511
#
2512
2512
# Related: #thread, #search, #uid_search, #sort, #uid_sort
2513
2513
#
2514
- # ===== Capabilities
2514
+ # ==== Capabilities
2515
2515
#
2516
2516
# The server's capabilities must include +THREAD+
2517
2517
# [RFC5256[https://tools.ietf.org/html/rfc5256]].
@@ -2530,7 +2530,7 @@ def uid_thread(algorithm, search_keys, charset)
2530
2530
#
2531
2531
# Related: #capable?, #capabilities, #capability
2532
2532
#
2533
- # ===== Capabilities
2533
+ # ==== Capabilities
2534
2534
#
2535
2535
# The server's capabilities must include
2536
2536
# +ENABLE+ [RFC5161[https://tools.ietf.org/html/rfc5161]]
@@ -2632,7 +2632,7 @@ def enable(*capabilities)
2632
2632
#
2633
2633
# Related: #idle_done, #noop, #check
2634
2634
#
2635
- # ===== Capabilities
2635
+ # ==== Capabilities
2636
2636
#
2637
2637
# The server's capabilities must include +IDLE+
2638
2638
# [RFC2177[https://tools.ietf.org/html/rfc2177]].
@@ -2749,7 +2749,7 @@ def idle_done
2749
2749
#
2750
2750
# Related: #extract_responses, #clear_responses, #response_handlers, #greeting
2751
2751
#
2752
- # ===== Thread safety
2752
+ # ==== Thread safety
2753
2753
# >>>
2754
2754
# *Note:* Access to the responses hash is synchronized for thread-safety.
2755
2755
# The receiver thread and response_handlers cannot process new responses
@@ -2763,7 +2763,7 @@ def idle_done
2763
2763
# thread, but will not modify any responses after adding them to the
2764
2764
# responses hash.
2765
2765
#
2766
- # ===== Clearing responses
2766
+ # ==== Clearing responses
2767
2767
#
2768
2768
# Previously unhandled responses are automatically cleared before entering a
2769
2769
# mailbox with #select or #examine. Long-lived connections can receive many
@@ -2772,7 +2772,7 @@ def idle_done
2772
2772
# the block, or remove responses with #extract_responses, #clear_responses,
2773
2773
# or #add_response_handler.
2774
2774
#
2775
- # ===== Missing responses
2775
+ # ==== Missing responses
2776
2776
#
2777
2777
# Only non-+nil+ data is stored. Many important response codes have no data
2778
2778
# of their own, but are used as "tags" on the ResponseText object they are
0 commit comments