summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-07 00:18:57 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-11 09:47:19 -0400
commitee1d971554a1c2c803fedccbf231ba23500b7bbc (patch)
treeed1bfcf95f4fe4b045651481bae293c1c84ffda2 /worker
parentd8533e897a73046fa8619c86631660eea87d2b90 (diff)
downloadaerc-ee1d971554a1c2c803fedccbf231ba23500b7bbc.tar.gz
notmuch: remove read handling from FetchMessageBodyPart
Diffstat (limited to 'worker')
-rw-r--r--worker/notmuch/worker.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go
index 9443f66..9929648 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
 }