Closed tomjaguarpaw closed 1 year ago
Thanks @tomjaguarpaw for the suggestion. bodyOfMIMEMessage
exists (with a more general type) as Data.IMF.body
. I'll contemplate the name and whether it's better to have as the big type MIME
, MIMEMessage
or perhaps both. But I'm happy to adopt this idea.
bodyOfMIMEMessage exists (with a more general type) as Data.IMF.body
Ah, I didn't see it because I only looked in MIME
(although now I've seen it I realise I've used it before).
Ah, and I see it is exported from MIME
but it is not in the docs because it is part of a module re-export.
Closing as the ask seems to be already satisfied.
It seems like these optics would be useful to add. The
parseErrors
one was particularly useful for tracking down the error in https://github.com/purebred-mua/purebred-email/issues/70. I don't see any way of getting hold of the errors otherwise!If you think they would be useful addition then I can make a PR. Suggestions for the best names would be welcome.