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

Add support for Reply-To. #58

Merged
merged 2 commits into from
Sep 21, 2017
Merged

Conversation

martey
Copy link
Contributor

@martey martey commented Jul 17, 2017

Allow setting the Reply-To header through the "reply_to" attribute or by setting extra headers. Support both email address and "name ".

Allow setting the Reply-To header through the "reply_to" attribute or
by setting extra headers. Support both email address and "name <email>".
@codecov-io
Copy link

codecov-io commented Jul 17, 2017

Codecov Report

Merging #58 into master will increase coverage by 3.4%.
The diff coverage is 80%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #58     +/-   ##
=========================================
+ Coverage   60.22%   63.63%   +3.4%     
=========================================
  Files           1        1             
  Lines          88       99     +11     
  Branches       22       27      +5     
=========================================
+ Hits           53       63     +10     
  Misses         29       29             
- Partials        6        7      +1
Impacted Files Coverage Δ
sgbackend/mail.py 63.63% <80%> (+3.4%) ⬆️

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 476bfbe...6b02889. Read the comment docs.

@@ -104,8 +104,28 @@ def _build_sg_mail(self, email):
for k, v in email.substitutions.items():
personalization.add_substitution(Substitution(k, v))

# SendGrid does not support adding Reply-To as an extra
# header, so it needs to be manually removed if it exists.
reply_to_string = ""
for k, v in email.extra_headers.items():
Copy link
Collaborator

Choose a reason for hiding this comment

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

please rename to key, value

Choose a reason for hiding this comment

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

the entire file uses the k, v naming, so it makes sense to keep the consistency.

@martey
Copy link
Contributor Author

martey commented Sep 6, 2017

@andriisoldatenko, I've updated the pull request as you asked. Could you please give it another review when you get time?

@eirenik0
Copy link

Hey guys, when will you merge it with the upstream branch? I really needed this fix :)

@andriisoldatenko
Copy link
Collaborator

@elbuo8 do you have any comments?
from my side code LGTM

@andriisoldatenko andriisoldatenko merged commit c23cd36 into elbuo8:master Sep 21, 2017
@eirenik0
Copy link

Guys, will you update the package version and sources in the PyPi?

@andriisoldatenko
Copy link
Collaborator

yep, will do soon.

@elbuo8
Copy link
Owner

elbuo8 commented Sep 25, 2017 via email

@eirenik0
Copy link

eirenik0 commented Sep 28, 2017

@elbuo8 no problem, thank you for the library :) Will you be able to upload new version into PyPi in this week?

@elbuo8
Copy link
Owner

elbuo8 commented Sep 28, 2017 via email

@martey
Copy link
Contributor Author

martey commented Feb 25, 2018

This should allow both #34 and #50 to be closed, I think. Commenting here so that anyone who stumbles upon those open issues will see that a pull request has been merged.

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.

5 participants