mailgun-ruby: Reply-to header is being duplicated
Version 1.1.11 has a bug where two reply-to headers are sent to Mailgun, one is h:reply-to and the other is h:Reply-To.
This causes the email that is sent to have two reply-to headers, which when someone replies to that email in their email client, pre-populates the to field with two identical entries, causing two emails to be sent.
The bug seems to have been introduced in 265efffd51209b0170a3225bbe945b649643465a. I rolled back to 1.1.10 and saw only one reply-to header being sent.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 7
- Comments: 18 (9 by maintainers)
Sorry folks, #158 is merged and tagged! I appreciate all the feedback and testing you’ve all provided!
@brandonweiss I 100% agree, I think raising an exception on duplicates (even if we take case-insensitivity into account) is the correct thing to do. From my peek through RFC-822, Section 3.4.7 says that header names are case-insensitive. Ultimately, I would have expected
Mail::Headerto collapse headers where the names were equal, but¯\_(ツ)_/¯.Anyway, yes, I am a Megatokyo fan! Haven’t done a read-through of the series in ages though. Guess that means you’re a fan as well? 😄