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

feat: custom smtp header config #1747

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

emtammaru
Copy link
Contributor

@emtammaru emtammaru commented Sep 13, 2021

This adds a simple configuration option for passing custom headers to the SMTP server.

Related issue(s)

#1725

Checklist

Further Comments

All automated tests pass for me locally, and I also confirmed with a manual test that the headers are propagated correctly to SES. One thing I'm not quite sure how to test is the yaml config json schema validation. It might be nice to add a propertyNames.pattern regex validation for the headers object and/or prohibit reserved headers like To, Subject, etc. But, it works with these minimal changes.

@CLAassistant
Copy link

CLAassistant commented Sep 13, 2021

CLA assistant check
All committers have signed the CLA.

@emtammaru emtammaru changed the title Feature/smtp header config feat: custom smtp header config Sep 13, 2021
@codecov
Copy link

codecov bot commented Sep 13, 2021

Codecov Report

Merging #1747 (770cefe) into master (ae86860) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1747      +/-   ##
==========================================
+ Coverage   74.02%   74.03%   +0.01%     
==========================================
  Files         260      260              
  Lines       12691    12696       +5     
==========================================
+ Hits         9394     9399       +5     
  Misses       2672     2672              
  Partials      625      625              
Impacted Files Coverage Δ
courier/courier.go 68.34% <100.00%> (+0.69%) ⬆️
driver/config/config.go 82.07% <100.00%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae86860...770cefe. Read the comment docs.

@emtammaru emtammaru marked this pull request as ready for review September 13, 2021 20:14
Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you!

@aeneasr aeneasr merged commit 7ffe0e9 into ory:master Sep 14, 2021
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.

3 participants