-
-
Notifications
You must be signed in to change notification settings - Fork 533
Fix Reply-To header variable consistency #1446
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1446 +/- ##
========================================
Coverage 99.65% 99.65%
========================================
Files 175 176 +1
Lines 22660 22853 +193
Branches 3603 3650 +47
========================================
+ Hits 22582 22775 +193
Misses 70 70
Partials 8 8
🚀 New features to boost your workflow:
|
|
Looks good; try running |
|
Thanks @caronc it was |
|
Your great PR got very distorted; there are tons of line changes now that are not applicable to your objective anymore. You'll need to fix your branch now and rebase it. Alternatively, create a new pr and try again. |
The Reply-To header was not being set due to inconsistent variable usage
between reply_to (unfiltered) and _reply_to (filtered) in prepare_emails().
Bugs fixed:
1. Line 1045: Check _reply_to instead of reply_to before formatting
2. Line 1047: Format _reply_to and assign to reply_to (formatted list)
3. Line 1178: Check _reply_to instead of reply_to before setting header
The filtering logic (_reply_to = reply_to - {to_addr}) is correct and
intentional - it removes redundant Reply-To when it matches the recipient.
Result:
- When Reply-To differs from TO: Header is set with formatted addresses
- When Reply-To equals TO: Header is omitted (no redundancy)
|
@caronc yep, that rebase went wrong, thanks for catching it! |
Reply-To header was empty if reply_to was used.
Fixed by using
_reply_tofor checks andreply_tofor the formatted header value.Before (broken):
After (fixed):
Tested with real SMTP server, delivered to Gmail successfully.