Skip to content

Commit 53b9307

Browse files
committed
Merge branch 'sasl/public-auth_capable' into HEAD
2 parents f7d0851 + 6d51323 commit 53b9307

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/net/smtp.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,13 @@ def capable_cram_md5_auth?
324324
auth_capable?('CRAM-MD5')
325325
end
326326

327+
# Returns whether the server advertises support for the authentication type.
328+
# You cannot get valid result before opening SMTP session.
327329
def auth_capable?(type)
328330
return nil unless @capabilities
329331
return false unless @capabilities['AUTH']
330332
@capabilities['AUTH'].include?(type)
331333
end
332-
private :auth_capable?
333334

334335
# Returns supported authentication methods on this server.
335336
# You cannot get valid value before opening SMTP session.

0 commit comments

Comments
 (0)