diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-10 06:39:22 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-10 07:08:59 -0700 |
commit | 4015fdb7a2e0e839065c16bcaa92cad5183e00c8 (patch) | |
tree | f2321a48cd71d600d8ec7076d304c3f782fbfef1 /.fmail | |
parent | 3181d82a7c16874574397fda12672c1d24b58cc5 (diff) | |
download | dotfiles-4015fdb7a2e0e839065c16bcaa92cad5183e00c8.tar.gz |
simpler way to effect tag:spw::killed
Diffstat (limited to '.fmail')
-rwxr-xr-x | .fmail/.notmuch/hooks/post-new | 5 |
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}' |