jordan-wright / email

Robust and flexible email library for Go
MIT License
2.61k stars 324 forks source link

Incorrect encoding for utf-8 characters in reply-to addresses #147

Open tarmo-randma opened 2 years ago

tarmo-randma commented 2 years ago

Most e-mail headers got proper character encoding handling with PR #132. Unfortunately that change missed that the reply-to header was not treated as an address but as a regular header. As a result it did not get the same kind of handling as the from, to, cc and bcc headers.

As a result reply-to addresses get currently incorrectly encoded if they contain utf-8 characters.

tarmo-randma commented 2 years ago

I have submitted PR #148 to fix this issue