summaryrefslogtreecommitdiffstats
path: root/Notmuch/Message.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-01-31 14:49:25 +0100
committertv <tv@shackspace.de>2015-01-31 15:13:00 +0100
commit39e76d0c83515a98f84f06b1c3b430d1e67cd1cd (patch)
tree928ddf6f729fe18c9e78858c340056c86dd855eb /Notmuch/Message.hs
parentc2c06d1d436df298cc60e3af37684de056eb2fc9 (diff)
Notmuch: "id:" and "thread:" are part of ID
Diffstat (limited to 'Notmuch/Message.hs')
-rw-r--r--Notmuch/Message.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Notmuch/Message.hs b/Notmuch/Message.hs
index d458c5f..29ca5ec 100644
--- a/Notmuch/Message.hs
+++ b/Notmuch/Message.hs
@@ -90,7 +90,7 @@ instance Eq Message where
instance FromJSON Message where
- parseJSON (Object v) = Message <$> v .: "id"
+ parseJSON (Object v) = Message <$> (MessageID . ("id:"<>) <$> v .: "id")
<*> (posixSecondsToUTCTime . fromInteger <$> v .: "timestamp")
<*> (M.mapKeys CI.mk <$> v .: "headers")
<*> v .: "body"