jordan-wright / email

Robust and flexible email library for Go
MIT License
2.65k stars 321 forks source link

ReplyTo is not populated when calling NewEmailFromReader #116

Closed maximelebastard closed 3 years ago

maximelebastard commented 4 years ago

Hi,

I'm using the lib to parse an eml file. This email has a Reply-To header set to Reply-To: "mag.b@wanadoo.fr" <mag.b@wanadoo.fr>

However, the lib puts that header into the Headers list but not into the ReplyTo attribute. In the source of the NewEmailFromReader func, I can see you're populating the headers "Subject", "To", "Cc", "Bcc", "From" but not the ReplyTo header.

Is it intended ? Should we do a Pull Request for that feature ?

Thank you