ruby / net-smtp

This library provides functionality to send internet mail via SMTP, the Simple Mail Transfer Protocol.
Other
44 stars 30 forks source link

Make `#auth_capable?` public #63

Closed nevans closed 11 months ago

nevans commented 11 months ago

This can be useful to users of the library, in the same way that #capable?, #capabilities, and #capable_auth_types are all useful. For what it's worth #auth_capable? is public for net-imap v0.4.0.

I will also suggest that perhaps some future version should deprecate (and eventually, remove) the specific mechanism predicate methods (capable_plain_auth?, capable_login_auth?, and capable_cram_md5_auth?). A new predicate method shouldn't be added for every potential SASL mechanism.