summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-08-28 12:37:58 -0700
committerBen Sima <ben@bsima.me>2018-08-28 12:37:58 -0700
commitbfac5b8210c52559a10b2d32aa05084c079fdc14 (patch)
tree0dc874ff8f44f3e881824959c14c909e7652726b
parent2ff6fd5b7f4f7a1e6333cee50c8f7159c205d1e7 (diff)
Mark TODOs (anything sent to myself) unread
-rwxr-xr-xmutt/notmuch-hook.sh6
-rw-r--r--muttrc1
2 files changed, 3 insertions, 4 deletions
diff --git a/mutt/notmuch-hook.sh b/mutt/notmuch-hook.sh
index bc4867d..5af81b5 100755
--- a/mutt/notmuch-hook.sh
+++ b/mutt/notmuch-hook.sh
@@ -6,10 +6,10 @@ notmuch new
notmuch tag +inbox +unread -new -- tag:new
# tag all messages from "me" as sent
-notmuch tag +sent -inbox -- from:ben@bsima.me
+notmuch tag +sent -inbox -unread -- from:ben@bsima.me
-# tag TODOs from myself
-notmuch tag +todo -inbox -- subject:TODO
+# tag TODOs from myself, always mark as unread so I'm forced to process them
+notmuch tag +todo -inbox +unread -- subject:TODO or from:ben@bsima.me and to:ben@bsima.me
# tag some newsletters, but don't show them in inbox
notmuch tag +newsletters -inbox -- \
diff --git a/muttrc b/muttrc
index 7cd0a89..e314dbe 100644
--- a/muttrc
+++ b/muttrc
@@ -75,7 +75,6 @@ set virtual_spoolfile=yes
set nm_default_uri = "notmuch:///home/ben/Mail"
virtual-mailboxes "inbox" "notmuch://?query=tag:inbox"
virtual-mailboxes "archive" "notmuch://?query=tag:archive"
-virtual-mailboxes "sent" "notmuch://?query=tag:sent"
virtual-mailboxes "jobs" "notmuch://?query=tag:jobs"
virtual-mailboxes "todo" "notmuch://?query=tag:todo"
virtual-mailboxes "newsletters" "notmuch://?query=tag:newsletters"