diff options
-rwxr-xr-x | .fmail/.notmuch/hooks/post-new | 13 | ||||
-rw-r--r-- | .notmuch-config | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/.fmail/.notmuch/hooks/post-new b/.fmail/.notmuch/hooks/post-new new file mode 100755 index 00000000..c09c81a1 --- /dev/null +++ b/.fmail/.notmuch/hooks/post-new @@ -0,0 +1,13 @@ +#!/bin/sh + +# mark all sent mail as read +notmuch tag -unread -- folder:sent + +# mark all drafts as drafts, and as read +notmuch tag -unread +draft -- folder:drafts + +# propagate the 'killed' tag to all messages in the killed message's thread +killed_threads=$(notmuch search --output=threads tag:killed) +if [ ! -z "$killed_threads" ]; then + notmuch tag +killed -- $killed_threads +fi diff --git a/.notmuch-config b/.notmuch-config index 878132f2..590c1857 100644 --- a/.notmuch-config +++ b/.notmuch-config @@ -61,7 +61,7 @@ ignore= # query will override that exclusion. # [search] -exclude_tags=deleted;spam; +exclude_tags=deleted;spam;killed; # Maildir compatibility configuration # |