File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments