From 0b1baccd8d98898e9446725b094df752a81cd12c Mon Sep 17 00:00:00 2001 From: nick evans Date: Wed, 25 Sep 2024 11:23:26 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=F0=9F=93=9A=20More=20consistent=20?= =?UTF-8?q?docs=20for=20IMAP4rev2=20capability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/net/imap.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 6e7a5829..d6cf62d5 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -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 @@ -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") @@ -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 @@ -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 @@ -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