summaryrefslogtreecommitdiffstats
path: root/ParseMail.hs
diff options
context:
space:
mode:
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