We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be253f3 commit 200757eCopy full SHA for 200757e
1 file changed
lib/net/imap.rb
@@ -562,6 +562,18 @@ def logout
562
# Sends a {STARTTLS command [IMAP4rev1 §6.2.1]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.2.1]
563
# to start a TLS session.
564
#
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
577
# Related: Net::IMAP.new, #login, #authenticate
578
579
# ===== Capability
0 commit comments