Skip to content

Commit 200757e

Browse files
committed
📚 Update #starttls documentation
1 parent be253f3 commit 200757e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/net/imap.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,18 @@ def logout
562562
# Sends a {STARTTLS command [IMAP4rev1 §6.2.1]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.2.1]
563563
# to start a TLS session.
564564
#
565+
# Any +options+ are forwarded to OpenSSL::SSL::SSLContext#set_params.
566+
#
567+
# This method returns after TLS negotiation and hostname verification are
568+
# both successful. Any error indicates that the connection has not been
569+
# secured.
570+
#
571+
# *Note:*
572+
# >>>
573+
# Any #response_handlers added before STARTTLS should be aware that the
574+
# TaggedResponse to STARTTLS is sent clear-text, _before_ TLS negotiation.
575+
# TLS negotiation starts immediately after that response.
576+
#
565577
# Related: Net::IMAP.new, #login, #authenticate
566578
#
567579
# ===== Capability

0 commit comments

Comments
 (0)