summaryrefslogtreecommitdiff
path: root/.fmail
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-05-03 07:40:14 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-05-03 07:57:22 -0700
commit0e17d1979594bf6bc4d2e6b146558620e102419a (patch)
tree401ae7ec3ec70c0b4f3351b069ae9011bf1539b7 /.fmail
parent702aa5dd1a550022085f732ac90af9b92087f33e (diff)
downloaddotfiles-0e17d1979594bf6bc4d2e6b146558620e102419a.tar.gz
killed->spw::killed
Diffstat (limited to '.fmail')
-rwxr-xr-x.fmail/.notmuch/hooks/post-new5
1 files changed, 3 insertions, 2 deletions
diff --git a/.fmail/.notmuch/hooks/post-new b/.fmail/.notmuch/hooks/post-new
index 6d34a18c..63e817b2 100755
--- a/.fmail/.notmuch/hooks/post-new
+++ b/.fmail/.notmuch/hooks/post-new
@@ -17,8 +17,9 @@ notmuch tag +spam -- folder:spam
# mark all trash as trash
notmuch tag +deleted -- folder:trash
-# propagate the 'killed' tag to all messages in the killed message's thread
-killed_threads=$(notmuch search --output=threads tag:killed)
+# mark messages as read in threads I've killed. don't propagate the
+# spw::killed tag itself
+killed_threads=$(notmuch search --output=threads -- tag:spw::killed and tag:unread)
if [ ! -z "$killed_threads" ]; then
notmuch tag -unread -- $killed_threads
fi