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
562
562
# Sends a {STARTTLS command [IMAP4rev1 §6.2.1]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.2.1]
563
563
# to start a TLS session.
564
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
+ #
565
577
# Related: Net::IMAP.new, #login, #authenticate
566
578
#
567
579
# ===== Capability
You can’t perform that action at this time.
0 commit comments