From 20231d809b57c3050fb1cd812ea4c6e66cdaf6fb Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sat, 28 May 2022 00:48:52 +1000 Subject: time and map updates --- src/F2Md/Export.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/F2Md/Export.hs') diff --git a/src/F2Md/Export.hs b/src/F2Md/Export.hs index 284ab22..83da783 100644 --- a/src/F2Md/Export.hs +++ b/src/F2Md/Export.hs @@ -14,8 +14,8 @@ import System.FilePath formatMessage :: Message -> Text -formatMessage (Message from subject date messageId body) = - "MIME-Version: 1.0\n" <> "Date: " <> date <> "\nSubject: " <> subject <> +formatMessage (Message from subject date messageId body _) = + "MIME-Version: 1.0\n" <> "Date: " <> (T.pack $ show date) <> "\nSubject: " <> subject <> "\nFrom: " <> from <> "\nMessage-ID: " <> messageId <> "\nContent-Type: text/html" <> "\n\n" <> body -- cgit v1.2.3