diff options
Diffstat (limited to 'email/dot-config/notmuch')
| -rw-r--r-- | email/dot-config/notmuch/default/config | 23 | ||||
| -rwxr-xr-x | email/dot-config/notmuch/default/hooks/post-new | 18 |
2 files changed, 14 insertions, 27 deletions
diff --git a/email/dot-config/notmuch/default/config b/email/dot-config/notmuch/default/config index eeacdcc..bfdbf65 100644 --- a/email/dot-config/notmuch/default/config +++ b/email/dot-config/notmuch/default/config @@ -6,33 +6,12 @@ name=Mohammad Reza Karimi primary_email=moreka@mit.edu [new] -tags=new +tags=inbox;unread; ignore=.mbsyncstate;.uidvalidity;.mbsyncstate.new;.mbsyncstate.lock [search] exclude_tags=deleted;spam -# Maildir compatibility configuration -# -# The following option is supported here: -# -# synchronize_flags Valid values are true and false. -# -# If true, then the following maildir flags (in message filenames) -# will be synchronized with the corresponding notmuch tags: -# -# Flag Tag -# ---- ------- -# D draft -# F flagged -# P passed -# R replied -# S unread (added when 'S' flag is not present) -# -# The "notmuch new" command will notice flag changes in filenames -# and update tags, while the "notmuch tag" and "notmuch restore" -# commands will notice tag changes and update flags in filenames - [maildir] synchronize_flags=true 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)' |
