Skip to content

Commit

Permalink
📚 Better command capabilities docs for IMAP4rev2
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Jan 3, 2025
1 parent 9756d5b commit 660d5aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,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 @@ -1904,7 +1904,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 @@ -2647,7 +2647,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 Down Expand Up @@ -2889,7 +2889,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 660d5aa

Please sign in to comment.