Skip to content

Commit

Permalink
🚧📚 More consistent docs for IMAP4rev2 capability
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Dec 23, 2024
1 parent 7e99f4e commit 0b1bacc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ def list(refname, mailbox)
#
# ==== Capabilities
#
# The server's capabilities must include +NAMESPACE+
# The server's capabilities must include either +IMAP4rev2+ or +NAMESPACE+
# [RFC2342[https://tools.ietf.org/html/rfc2342]].
def namespace
synchronize do
Expand Down Expand Up @@ -1893,7 +1893,7 @@ def close
#
# ==== Capabilities
#
# The server's capabilities must include +UNSELECT+
# The server's capabilities must include either +IMAP4rev2+ or +UNSELECT+
# [RFC3691[https://tools.ietf.org/html/rfc3691]].
def unselect
send_command("UNSELECT")
Expand Down Expand Up @@ -2602,7 +2602,7 @@ def uid_copy(set, mailbox)
#
# ==== Capabilities
#
# The server's capabilities must include +MOVE+
# The server's capabilities must include either +IMAP4rev2+ or +MOVE+
# [RFC6851[https://tools.ietf.org/html/rfc6851]].
#
# If +UIDPLUS+ [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]] is
Expand All @@ -2626,9 +2626,10 @@ def move(set, mailbox)
#
# ==== Capabilities
#
# Same as #move: The server's capabilities must include +MOVE+
# [RFC6851[https://tools.ietf.org/html/rfc6851]]. +UIDPLUS+ also affects
# #uid_move the same way it affects #move.
# The server's capabilities must include either +IMAP4rev2+ or +MOVE+
# [RFC6851[https://tools.ietf.org/html/rfc6851]].
#
# +UIDPLUS+ affects #uid_move the same way it affects #move.
def uid_move(set, mailbox)
copy_internal("UID MOVE", set, mailbox)
end
Expand Down Expand Up @@ -2828,7 +2829,7 @@ def enable(*capabilities)
#
# ==== Capabilities
#
# The server's capabilities must include +IDLE+
# The server's capabilities must include either +IMAP4rev2+ or +IDLE+
# [RFC2177[https://tools.ietf.org/html/rfc2177]].
def idle(timeout = nil, &response_handler)
raise LocalJumpError, "no block given" unless response_handler
Expand Down

0 comments on commit 0b1bacc

Please sign in to comment.