diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 232b37286..1e4c9ae8e 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -725,8 +725,6 @@ class IMAP < Protocol "UTF8=ONLY" => "UTF8=ACCEPT", }.freeze - autoload :Config, File.expand_path("imap/config", __dir__) - autoload :SASL, File.expand_path("imap/sasl", __dir__) autoload :SASLAdapter, File.expand_path("imap/sasl_adapter", __dir__) autoload :StringPrep, File.expand_path("imap/stringprep", __dir__) @@ -2981,6 +2979,7 @@ def self.saslprep(string, **opts) end require_relative "imap/errors" +require_relative "imap/config" require_relative "imap/command_data" require_relative "imap/data_encoding" require_relative "imap/flags" diff --git a/lib/net/imap/config.rb b/lib/net/imap/config.rb index f8201c5ca..5a3f86f96 100644 --- a/lib/net/imap/config.rb +++ b/lib/net/imap/config.rb @@ -57,9 +57,7 @@ def self.[](config) # :nodoc: unfinished API # The debug mode (boolean) # - # | Starting with version | The default value is | - # |-----------------------|----------------------| - # | _original_ | +false+ | + # The default value is +false+. attr_accessor :debug, type: :boolean # method: debug? @@ -72,17 +70,13 @@ def self.[](config) # :nodoc: unfinished API # If the IMAP object cannot open a connection within this time, # it raises a Net::OpenTimeout exception. See Net::IMAP.new. # - # | Starting with version | The default value is | - # |-----------------------|----------------------| - # | _original_ | +30+ seconds | + # The default value is +30+ seconds. attr_accessor :open_timeout, type: Integer # Seconds to wait until an IDLE response is received, after # the client asks to leave the IDLE state. See Net::IMAP#idle_done. # - # | Starting with version | The default value is | - # |-----------------------|----------------------| - # | _original_ | +5+ seconds | + # The default value is +5+ seconds. attr_accessor :idle_response_timeout, type: Integer # Creates a new config object and initialize its attribute with +attrs+.