diff options
Diffstat (limited to 'worker')
-rw-r--r-- | worker/maildir/worker.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go index 34d73f81..dbdb9252 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 } |