purebred-mua / purebred-email

A fast email parsing library implemented in Haskell
https://hackage.haskell.org/package/purebred-email
GNU Affero General Public License v3.0
23 stars 4 forks source link

Provide an optic to retrieve a value setting the 'References' field #22

Closed romanofski closed 5 years ago

romanofski commented 5 years ago

RFC5322 - 3.6.4 specifies identification fields used when the user replies to a message. This patch adds a getter which might return a ByteString in the effect the rules defined in 3.6.4 return the necessary header values from the original message. The ByteString can be used to set the 'references' field value in the replied message header.

frasertweedale commented 5 years ago

I'll review this soon mate (probably on Monday).

romanofski commented 5 years ago

Updated :)