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 Nov 8, 2024
1 parent 8e19417 commit d9423ef
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 @@ -1599,7 +1599,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 @@ -1900,7 +1900,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 @@ -2467,7 +2467,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 @@ -2491,9 +2491,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 @@ -2697,7 +2698,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 d9423ef

Please sign in to comment.