aboutsummaryrefslogtreecommitdiff
path: root/email/dot-config/notmuch/default/hooks
diff options
context:
space:
mode:
authorMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-01-18 01:33:29 -0500
committerMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-01-18 01:33:29 -0500
commit4052357e021085bc1c761108446ee09a778ade15 (patch)
treee8664f34056a9f34538e1abb0b3eead15ecb4d70 /email/dot-config/notmuch/default/hooks
parent83113fff46023d6cde0c2d982978fe7f5a5cfce2 (diff)
big updates
Diffstat (limited to 'email/dot-config/notmuch/default/hooks')
-rwxr-xr-xemail/dot-config/notmuch/default/hooks/post-new18
1 files changed, 13 insertions, 5 deletions
diff --git a/email/dot-config/notmuch/default/hooks/post-new b/email/dot-config/notmuch/default/hooks/post-new
index 063888b..f03a5d1 100755
--- a/email/dot-config/notmuch/default/hooks/post-new
+++ b/email/dot-config/notmuch/default/hooks/post-new
@@ -1,10 +1,18 @@
#!/bin/sh
-# remove "unread" from "replied"
-notmuch tag -unread -new -- tag:replied
+# tag emails in the Deleted folder as deleted
+notmuch tag +deleted -unread -inbox -- folder:mit/Deleted
+
+# tag emails in the Deleted folder as deleted
+notmuch tag +archived -unread -inbox -- folder:mit/Archive
-# tag all "new" messages "inbox" and "unread"
-notmuch tag +inbox +unread -new -- '(tag:new and folder:mit/INBOX)'
+# tag emails in the Deleted folder as deleted
+notmuch tag +sent -unread -inbox -- folder:mit/Sent
+notmuch tag +sent -unread -inbox -- folder:m.r.karimi.j@gmail.com/Sent
+
+# remove "unread" from "replied"
+notmuch tag -unread -- tag:replied
# tag my replies as "sent"
-notmuch tag -new -unread +sent -- '(from:"moreka@mit.edu*" not to:"moreka@mit.edu*" not tag:archived)'
+notmuch tag -unread +sent -- '(from:"moreka@mit.edu*" not to:"moreka@mit.edu*" not to:"moreka@MIT.EDU*" not tag:archived)'
+notmuch tag -unread +sent -- '(from:"m.r.karimi.j@gmail.com*" not to:"m.r.karimi.j@gmail.com*" not tag:archived)'