diff options
| author | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-04 21:28:36 -0500 |
|---|---|---|
| committer | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-04 21:28:36 -0500 |
| commit | 06d1242317f7159ccf3014f0a1480e7c56236ebb (patch) | |
| tree | 89863b3287ae2c7cc88cd532220f18c38e8d8657 /email/dot-config/notmuch/default/hooks/post-new | |
| parent | 5a41da5881a11ba3fdc3890c342aa3b7eb53e0cf (diff) | |
add all sorts of things
Diffstat (limited to 'email/dot-config/notmuch/default/hooks/post-new')
| -rwxr-xr-x | email/dot-config/notmuch/default/hooks/post-new | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/email/dot-config/notmuch/default/hooks/post-new b/email/dot-config/notmuch/default/hooks/post-new new file mode 100755 index 0000000..063888b --- /dev/null +++ b/email/dot-config/notmuch/default/hooks/post-new @@ -0,0 +1,10 @@ +#!/bin/sh + +# remove "unread" from "replied" +notmuch tag -unread -new -- tag:replied + +# tag all "new" messages "inbox" and "unread" +notmuch tag +inbox +unread -new -- '(tag:new and folder:mit/INBOX)' + +# tag my replies as "sent" +notmuch tag -new -unread +sent -- '(from:"moreka@mit.edu*" not to:"moreka@mit.edu*" not tag:archived)' |
