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

[CU-9ux4p3] Base 64 encode the headers only when necessary #155

Merged

Conversation

arnaudmorisset
Copy link
Contributor

This pull request updates the function rfc822_encode to make it Base64 encode only when the content contains non-ASCII characters.

Some spam filters have a policy, regarding encoded headers, that can lead to mark legit emails as spam. We should encode headers only when necessary.

@kdisneur
Copy link
Contributor

kdisneur commented Nov 9, 2020

test/lib/bamboo/adapters/smtp_adapter_test.exs Outdated Show resolved Hide resolved
@arnaudmorisset arnaudmorisset merged commit c301cbd into develop Nov 10, 2020
@arnaudmorisset arnaudmorisset deleted the CU-9ux4p3_base64-encode-headers-only-when-necessary branch November 10, 2020 07:50
This was referenced Nov 23, 2020
MatheusBueno782 added a commit that referenced this pull request Nov 24, 2020
Bump to v3.1.0

This release contains:

Fix for using custom config with response: true by bumping bamboo version to ~> 1.6 (#150)
Implement our custom test adapter ([#151])
Fix CI random failure by attaching FakeGenSMTP Server process to Test supervision tree.(#153)
Add Content-ID header when needed(#154)
Base 64 encode the headers only when the content contains non-ASCII characters.(#155)
Handle :permanent_failure exception and re-raising it as a SMTPError.(#156)
After bumping the dependencies, the project requires(#149):
credo ~> 1.4.1
bamboo ~> 1.6
excoveralls ~> 0.13.3
gen_smtp ~> 1.0.1
MatheusBueno782 added a commit that referenced this pull request Nov 24, 2020
Bump to v3.1.0

This release contains:

Fix for using custom config with response: true by bumping bamboo version to ~> 1.6 (#150)
Implement our custom test adapter ([#151])
Fix CI random failure by attaching FakeGenSMTP Server process to Test supervision tree.(#153)
Add Content-ID header when needed(#154)
Base 64 encode the headers only when the content contains non-ASCII characters.(#155)
Handle :permanent_failure exception and re-raising it as a SMTPError.(#156)
After bumping the dependencies, the project requires(#149):
credo ~> 1.4.1
bamboo ~> 1.6
excoveralls ~> 0.13.3
gen_smtp ~> 1.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants