From 5f56a873d60a29fef72020e8e1e8ebab8b2e970f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 10 Jul 2018 13:58:53 -0700 Subject: Add jobs virtual mailbox --- mutt/notmuch-hook.sh | 8 ++++++++ muttrc | 1 + 2 files changed, 9 insertions(+) diff --git a/mutt/notmuch-hook.sh b/mutt/notmuch-hook.sh index 436f8e1..3b3580d 100755 --- a/mutt/notmuch-hook.sh +++ b/mutt/notmuch-hook.sh @@ -16,3 +16,11 @@ notmuch tag +newsletters -new -inbox -- \ # tag logwatch emails & remove from inbox notmuch tag +logwatch -new -inbox -- subject:'Logwatch*' + +# tag job-related emails +notmuch tag +jobs -inbox -- \ + from:alist.co or \ + from:angel.co or \ + from:stackoverflow.com or \ + from:stackoverflow.email or \ + subject:job diff --git a/muttrc b/muttrc index 304a51f..94c7cb5 100644 --- a/muttrc +++ b/muttrc @@ -76,6 +76,7 @@ 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" macro index S "" "search mailbox" macro index,pager A "+archive -unread -inbox\n" "archive message" -- cgit v1.2.3