diff options
Diffstat (limited to '.fmail')
-rwxr-xr-x | .fmail/.notmuch/hooks/post-new | 5 |
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 |