]> git.neil.brown.name Git - edlib.git/commitdiff
notmuch: ensure reply and similar clear unread and new
authorNeilBrown <neil@brown.name>
Fri, 26 May 2023 04:11:33 +0000 (14:11 +1000)
committerNeilBrown <neil@brown.name>
Fri, 26 May 2023 22:18:43 +0000 (08:18 +1000)
Now that "new" is being cleared less aggressively, make sure we clear it
when we reply to a message.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
python/module-notmuch.py

index 485f2ecc23ec15db66ebaf610022dfc569d27432..fb27b4ce371e6faef27e6d5ba51710ac764b6125 100644 (file)
@@ -56,7 +56,7 @@ Current priorities
 Bugs to be fixed
 ----------------
 
-- [ ] notmuch: "reply" should clear unread/new flags.
+- [X] notmuch: "reply" should clear unread/new flags.
 - [X] transparent images appear in email with horiz lines
 - [ ] Replying to w3m/html mail results in unsightly markup in reply
 - [ ] converting email parts with external code should be async
index a06f0e3a2a216cbb43cacc8be893540837f2a074..26239a7feaef7036cb6b9aa73ce8865cc9779f88 100644 (file)
@@ -2195,7 +2195,7 @@ class notmuch_master_view(edlib.Pane):
             hdr_mode = "reply"
             tag = "replied"
         v = make_composition(self.list_pane, focus,
-                             tag="tag +%s id:%s" % (tag, self.message_pane['message-id']))
+                             tag="tag +%s -new -unread id:%s" % (tag, self.message_pane['message-id']))
         if v:
             v.call("compose-email:copy-headers", self.message_pane, hdr_mode)
             if quote_mode == "inline":