From fefb08f83107d9ac0d11a93ece85f074585422fe Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Thu, 7 May 2020 00:18:58 +0200 Subject: [PATCH] maildir: remove read handling from FetchMessageBodyPart --- worker/maildir/worker.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go index 34d73f8..dbdb925 100644 --- a/worker/maildir/worker.go +++ b/worker/maildir/worker.go @@ -392,27 +392,6 @@ func (w *Worker) handleFetchMessageBodyPart( }, }, nil) - // mark message as read - if err := m.MarkRead(true); err != nil { - w.worker.Logger.Printf("could not mark message as read: %v", err) - return err - } - - // send updated flags to ui - info, err := m.MessageInfo() - if err != nil { - w.worker.Logger.Printf("could not fetch message info: %v", err) - return err - } - w.worker.PostMessage(&types.MessageInfo{ - Message: types.RespondTo(msg), - Info: info, - }, nil) - - w.worker.PostMessage(&types.DirectoryInfo{ - Info: w.getDirectoryInfo(w.selectedName), - }, nil) - return nil }