aboutsummaryrefslogtreecommitdiff
path: root/email/dot-config/notmuch/default/hooks
diff options
context:
space:
mode:
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)'