@@ -1212,7 +1212,7 @@ def starttls(**options)
12121212 end
12131213
12141214 # :call-seq:
1215- # authenticate(mechanism, *, sasl_ir: true , registry: Net::IMAP::SASL.authenticators, **, &) -> ok_resp
1215+ # authenticate(mechanism, *, sasl_ir: config.sasl_ir , registry: Net::IMAP::SASL.authenticators, **, &) -> ok_resp
12161216 #
12171217 # Sends an {AUTHENTICATE command [IMAP4rev1 §6.2.2]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.2.2]
12181218 # to authenticate the client. If successful, the connection enters the
@@ -1317,7 +1317,9 @@ def starttls(**options)
13171317 # Previously cached #capabilities will be cleared when this method
13181318 # completes. If the TaggedResponse to #authenticate includes updated
13191319 # capabilities, they will be cached.
1320- def authenticate ( mechanism , *creds , sasl_ir : true , **props , &callback )
1320+ def authenticate ( mechanism , *creds ,
1321+ sasl_ir : config . sasl_ir ,
1322+ **props , &callback )
13211323 mechanism = mechanism . to_s . tr ( "_" , "-" ) . upcase
13221324 authenticator = SASL . authenticator ( mechanism , *creds , **props , &callback )
13231325 cmdargs = [ "AUTHENTICATE" , mechanism ]
0 commit comments