From ee1d971554a1c2c803fedccbf231ba23500b7bbc Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Thu, 7 May 2020 00:18:57 +0200 Subject: notmuch: remove read handling from FetchMessageBodyPart --- worker/notmuch/worker.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'worker/notmuch') diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index 9443f666..9929648d 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -335,19 +335,6 @@ func (w *worker) handleFetchMessageBodyPart( }, }, nil) - if err := m.MarkRead(true); err != nil { - w.w.Logger.Printf("could not mark message as read: %v", err) - return err - } - - // send updated flags to ui - if err = w.emitMessageInfo(m, msg); err != nil { - w.w.Logger.Printf(err.Error()) - } - if err = w.emitDirectoryInfo(w.currentQueryName); err != nil { - w.w.Logger.Printf(err.Error()) - } - w.done(msg) return nil } -- cgit