Skip to content

Conversation

nevans
Copy link
Contributor

@nevans nevans commented Nov 7, 2023

  • .start and #start now take an auth keyword argument, which is an optional hash of keyword arguments that will be forwarded to #authenticate.
  • #authenticate now forwards its keyword arguments (and its block argument) to its chosen authenticator.

Note: this isn't tested in this PR because the tests I originally wrote for it don't work without authenticators that accept keyword arguments. This PR doesn't update existing authenticators or adding any new authenticator. See #71.

@nevans
Copy link
Contributor Author

nevans commented Nov 7, 2023

@tmtm Thanks for taking the time to review all of my PRs! I've split this PR out from #71, because the other changes in that PR are not as important or uncontroversial as these changes. However, the tests for this code are still in that PR. Please let me know if you'd like me to make any changes (e.g: adding tests directly to this PR or changing anything about the API). Thanks!

nevans added 2 commits July 17, 2025 13:54
This adds a new `auth` keyword param to `Net::SMTP.start` and `#start`
that can be used to pass any arbitrary keyword parameters to
`#authenticate`.  The pre-existing `username`, `secret`, etc keyword
params will retain their existing behavior as positional arguments to
`#authenticate`.
@nevans nevans force-pushed the sasl/forward-keyword-args branch from 7a6f2f1 to 2dd30e5 Compare July 17, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant