@@ -876,28 +876,24 @@ def self.encode_utf7(s)
876
876
@@debug = false
877
877
@@authenticators = { }
878
878
879
+ # call-seq:
880
+ # Net::IMAP.new(host, options = {})
881
+ #
879
882
# Creates a new Net::IMAP object and connects it to the specified
880
- # port (143 by default) on the named +host+.
883
+ # +host+.
881
884
#
882
- # If +port_or_options+ responds to to_int, it is used as port number.
883
- # Otherwise +port_or_options+ is an option hash.
885
+ # +options+ is an option hash.
884
886
#
885
887
# The available options are:
886
888
#
887
889
# :port:: port number (default value is 143 for imap, or 993 for imaps)
888
- # :ssl:: if port_or_options [:ssl] is true, then an attempt will be made
890
+ # :ssl:: if +options [:ssl]+ is true, then an attempt will be made
889
891
# to use SSL (now TLS) to connect to the server. For this to work
890
892
# OpenSSL [OSSL] and the Ruby OpenSSL [RSSL] extensions need to
891
893
# be installed.
892
- # if port_or_options [:ssl] is a hash, it's passed to
894
+ # if +options [:ssl]+ is a hash, it's passed to
893
895
# OpenSSL::SSL::SSLContext.build as parameters.
894
896
#
895
- # +usessl+, +certs+, and +verify+ are for backward compatibility.
896
- # If +usessl+ is true, then an attempt will be made to use SSL (now TLS)
897
- # to connect to the server. The +certs+ parameter indicates
898
- # the path or file containing the CA cert of the server, and the
899
- # +verify+ parameter is for the OpenSSL verification callback.
900
- #
901
897
# The most common errors are:
902
898
#
903
899
# Errno::ECONNREFUSED:: connection refused by +host+ or an intervening
0 commit comments