maildir: remove read handling from FetchMessageBodyPart

This commit is contained in:
Reto Brunner 2020-05-07 00:18:58 +02:00 committed by Drew DeVault
parent ee1d971554
commit fefb08f831
1 changed files with 0 additions and 21 deletions

View File

@ -392,27 +392,6 @@ func (w *Worker) handleFetchMessageBodyPart(
}, },
}, nil) }, 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 return nil
} }