feat: add support for multiple Reply-To addresses #288
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello @jhillyerd and enmime maintainers,
I've been working on a feature enhancement for the enmime library to add support for multiple reply-to addresses, as described in RFC 5322, section 3.6.2. I believe this functionality will improve the flexibility of the library and provide users with the ability to correctly handle multiple reply-to addresses as per the email specification.
Here is a brief overview of the changes I've made in this commit:
MailBuilder
struct to store multiple reply-to addresses.Build
function to correctly write multiple reply-to addresses.GetReplyTo
function to return the first email in the list for backward compatibility, and added a newGetReplyToAddrs
function to return a slice copy of all addresses.ReplyTo
function to support backward compatibility by handling single email addresses while using the new reply-to address list, and added a newReplyToAddrs
function to support setting the whole reply-to list.Thank you for your time and consideration. I'm looking forward to your feedback and the opportunity to contribute to this project.