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

headerDate when header not present, and parsing invalid header #47

Closed singpolyma closed 4 years ago

singpolyma commented 4 years ago

Fixes #46 so that Date header can be added when not already present (with test).

Fixes #16 so that invalid Date header results in Nothing and not bottom (with test).

Allow a slightly more lax version of dates for parsing.