Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen_smtp_client: stop filtering gen_tcp and ssl options, fixes #271 #274

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

seriyps
Copy link
Collaborator

@seriyps seriyps commented Aug 20, 2021

A lot of new useful options were added to gen_tcp and ssl in the recent
OTP releases, but smtp_socket module (that backs gen_smtp_client) currently
only allows a smal set of options and discarded all the not defined in
the whitelist.
We think that it's better to let programmer decide which options they
want to pass - it should e programmer's responsibility if they provide
invalid options.
Especially given that we stopped doing any option filtering for gen_smtp_server after we migrated it to ranch.

…tp#271

A lot of new useful options were added to gen_tcp and ssl in the recent
OTP releases, but `smtp_socket` module (that backs gen_smtp_client) used
to only allow a smal set of options and discarded all the not defined in
the whitelist.
We think that it's better to let programmer decide which options they
want to pass - it should e programmer's responsibility if they provide
invalid options.
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.

2 participants