summaryrefslogtreecommitdiff
path: root/.fmail
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-05-10 06:39:22 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-05-10 07:08:59 -0700
commit4015fdb7a2e0e839065c16bcaa92cad5183e00c8 (patch)
treef2321a48cd71d600d8ec7076d304c3f782fbfef1 /.fmail
parent3181d82a7c16874574397fda12672c1d24b58cc5 (diff)
downloaddotfiles-4015fdb7a2e0e839065c16bcaa92cad5183e00c8.tar.gz
simpler way to effect tag:spw::killed
Diffstat (limited to '.fmail')
-rwxr-xr-x.fmail/.notmuch/hooks/post-new5
1 files changed, 1 insertions, 4 deletions
diff --git a/.fmail/.notmuch/hooks/post-new b/.fmail/.notmuch/hooks/post-new
index e10c4824..89437063 100755
--- a/.fmail/.notmuch/hooks/post-new
+++ b/.fmail/.notmuch/hooks/post-new
@@ -19,7 +19,4 @@ notmuch tag +deleted -- folder:trash
# 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)
-if [ ! -z "$killed_threads" ]; then
- notmuch tag -unread -- $killed_threads
-fi
+notmuch tag -unread -- 'thread:{tag:spw::killed}'