summaryrefslogtreecommitdiffstats
path: root/ParseMail.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-03-01 12:06:04 +0100
committertv <tv@shackspace.de>2015-03-01 12:30:07 +0100
commit04929712f248dbbdf200693c0751dc925fb03c61 (patch)
tree242444c48e58564e3911e1bba4de9e26feb193ca /ParseMail.hs
parentc88f9ed5a738553185f878eada60998e7bea2cfa (diff)
test5: add date header
Diffstat (limited to 'ParseMail.hs')
-rw-r--r--ParseMail.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ParseMail.hs b/ParseMail.hs
index 7ce0674..c4db5fd 100644
--- a/ParseMail.hs
+++ b/ParseMail.hs
@@ -29,9 +29,9 @@ data Address = Mailbox M.Address | Group T.Text [M.Address]
-readMail :: FilePath -> IO M.Mail
-readMail p =
- fromMIMEValue . parseMIMEMessage <$> T.readFile p
+readMail :: T.Text -> M.Mail
+readMail =
+ fromMIMEValue . parseMIMEMessage
fromMIMEValue :: MIMEValue -> M.Mail