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

Export parsers for parsing address and mailbox lists #31

Closed romanofski closed 5 years ago

romanofski commented 5 years ago

These parsers will be valuable add-ons to use when roundtripping mails in purebred.

romanofski commented 5 years ago

Nothing wild. I looked into if there were problems with the parsing, but it was a mistake on my side. They simply return an empty list if endOfInput is reached without a successful parse. I'll use the more assertive error from our TagOps parser in purebred.

romanofski commented 5 years ago

Ah before I forget: there are currently no unit tests for these functions, although the ByteString variant of mailboxList is covered in the header tests.