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

Feature request: ordered headers #249

Open
iredmail opened this issue May 16, 2022 · 1 comment
Open

Feature request: ordered headers #249

iredmail opened this issue May 16, 2022 · 1 comment

Comments

@iredmail
Copy link
Contributor

iredmail commented May 16, 2022

Dear @jhillyerd,

Mail headers stored in header attribute is unordered (the underlying type of *textproto.MIMEHeader is map[string][]string):

header *textproto.MIMEHeader // Header from original message

I wonder whether you're willing to accept PR to make it an ordered map instead. Since header is an internal attribute, i expect no breaking changes will be introduced.

Ordered headers is very useful when you just modified part of mail body and want to keep the order.

@jhillyerd
Copy link
Owner

This sounds good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants