From bfac5b8210c52559a10b2d32aa05084c079fdc14 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 28 Aug 2018 12:37:58 -0700 Subject: Mark TODOs (anything sent to myself) unread --- mutt/notmuch-hook.sh | 6 +++--- muttrc | 1 - 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" -- cgit v1.2.3