summaryrefslogtreecommitdiffstats
path: root/Notmuch/Message.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-01-02 00:48:25 +0100
committertv <tv@shackspace.de>2015-01-02 00:48:25 +0100
commit11d3bf814d5eef82de34e2b987de3fb6293b59d2 (patch)
treead7a8666f49784ddc9e4f3cd19db1a9384a2a38e /Notmuch/Message.hs
parent5d556b147a593f1b8c8127883055ad07ee347af9 (diff)
remove messageDateRel
Diffstat (limited to 'Notmuch/Message.hs')
-rw-r--r--Notmuch/Message.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Notmuch/Message.hs b/Notmuch/Message.hs
index 63fe004..cc87801 100644
--- a/Notmuch/Message.hs
+++ b/Notmuch/Message.hs
@@ -68,7 +68,6 @@ instance FromJSON MessagePart where
data Message = Message {
messageId :: MessageID
- , messageDateRel :: T.Text
, messageTime :: UTCTime
, messageHeaders :: MessageHeaders
, messageBody :: [MessagePart]
@@ -86,7 +85,6 @@ instance Eq Message where
instance FromJSON Message where
parseJSON (Object v) = Message <$> v .: "id"
- <*> v .: "date_relative"
<*> (posixSecondsToUTCTime . fromInteger <$> v .: "timestamp")
<*> (M.mapKeys CI.mk <$> v .: "headers")
<*> v .: "body"
@@ -94,7 +92,7 @@ instance FromJSON Message where
<*> v .: "match"
<*> v .: "tags"
<*> v .: "filename"
- parseJSON (Array _) = return $ Message (MessageID "") "" defTime M.empty [] True False [] ""
+ parseJSON (Array _) = return $ Message (MessageID "") defTime M.empty [] True False [] ""
where defTime = UTCTime (ModifiedJulianDay 0) (fromInteger 0)
parseJSON x = fail $ "Error parsing message: " ++ show x