GaloisInc / mime

A Haskell MIME library
Other
12 stars 11 forks source link

Provide ByteString parser #3

Open singpolyma opened 12 years ago

singpolyma commented 12 years ago

If the content is uses only 7bit encodings and is embedded as ASCII, then getting it as a String is easy, but if it's using Content-Transfer-Encoding: 8bit then it is necessary to operate on ByteString until the Content-Type is known.

tysonzero commented 4 years ago

It seems like the primary underlying parser should be on ByteString for this reason. MIME seems to be about bytes and not simply about text. I wonder if this might also improve performance, as emailparse currently runs an order of magnitude faster.