@@ -776,7 +776,7 @@ class << self
776
776
def open_timeout ; config . open_timeout end
777
777
778
778
# Seconds to wait until an IDLE response is received.
779
- attr_reader : idle_response_timeout
779
+ def idle_response_timeout ; config . idle_response_timeout end
780
780
781
781
# The hostname this client connected to
782
782
attr_reader :host
@@ -823,14 +823,13 @@ def open_timeout; config.open_timeout end
823
823
# config object for inheritance. Every Net::IMAP client has its own
824
824
# unique #config for overrides.
825
825
#
826
- # [idle_response_timeout]
827
- # Seconds to wait until an IDLE response is received
828
- #
829
826
# Any other keyword arguments will be forwarded to Config.new, to create the
830
827
# client's #config. For example:
831
828
#
832
829
# [open_timeout]
833
830
# Seconds to wait until a connection is opened
831
+ # [idle_response_timeout]
832
+ # Seconds to wait until an IDLE response is received
834
833
#
835
834
# See DeprecatedClientOptions.new for deprecated arguments.
836
835
#
@@ -888,14 +887,12 @@ def open_timeout; config.open_timeout end
888
887
# Connected to the host successfully, but it immediately said goodbye.
889
888
#
890
889
def initialize ( host , port : nil , ssl : nil ,
891
- idle_response_timeout : 5 ,
892
890
config : Config . global , **config_options )
893
891
super ( )
894
892
# Config options
895
893
@host = host
896
894
@config = Config . new ( config , **config_options )
897
895
@port = port || ( ssl ? SSL_PORT : PORT )
898
- @idle_response_timeout = Integer ( idle_response_timeout )
899
896
@ssl_ctx_params , @ssl_ctx = build_ssl_ctx ( ssl )
900
897
901
898
# Basic Client State
@@ -2451,7 +2448,7 @@ def idle(timeout = nil, &response_handler)
2451
2448
unless @receiver_thread_terminating
2452
2449
remove_response_handler ( response_handler )
2453
2450
put_string ( "DONE#{ CRLF } " )
2454
- response = get_tagged_response ( tag , "IDLE" , @ idle_response_timeout)
2451
+ response = get_tagged_response ( tag , "IDLE" , idle_response_timeout )
2455
2452
end
2456
2453
end
2457
2454
end
0 commit comments