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

How to use headerFrom to set? #40

Closed singpolyma closed 4 years ago

singpolyma commented 4 years ago
set MIME.headerFrom [x] $ MIME.createTextPlainMessage "hai"

Results in an unmodified message -- that is, the body hai is present, but the header is not set. Using a lower-level style:

set (MIME.headers . at (s"from")) (Just "b@b.com") $ MIME.createTextPlainMessage "hai"

works, but is obviously less desirable.

frasertweedale commented 4 years ago

@singpolyma it appears to be a bug.