From b03a73726d56ae4cf291ed8defec84dbc672f0c8 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 2 May 2020 17:46:00 +0200 Subject: lib/messageview: mark messages as read Currently at least the notmuch and maildir worker only set messages as read if a body part is fetched. The gpg abstraction however fetches the full message. We can simply set the readstate when we create the messageview, avoiding the issue. Once this is merged, we can cleanup both workers. --- lib/messageview.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/messageview.go b/lib/messageview.go index 3bf133aa..39708045 100644 --- a/lib/messageview.go +++ b/lib/messageview.go @@ -91,6 +91,7 @@ func NewMessageStoreView(messageInfo *models.MessageInfo, } else { cb(msv) } + store.Read([]uint32{messageInfo.Uid}, true, nil) } func (msv *MessageStoreView) MessageInfo() *models.MessageInfo { -- cgit