about summary refs log tree commit diff stats
path: root/worker/maildir/worker.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-07 00:18:58 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-11 09:47:21 -0400
commitfefb08f83107d9ac0d11a93ece85f074585422fe (patch)
tree73cdef60b7ee6845fa66f616fc724e0be58d040a /worker/maildir/worker.go
parentee1d971554a1c2c803fedccbf231ba23500b7bbc (diff)
downloadaerc-fefb08f83107d9ac0d11a93ece85f074585422fe.tar.gz
maildir: remove read handling from FetchMessageBodyPart
Diffstat (limited to 'worker/maildir/worker.go')
-rw-r--r--worker/maildir/worker.go21
1 files changed, 0 insertions, 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
 }