summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-07-10 13:58:53 -0700
committerBen Sima <ben@bsima.me>2018-07-10 13:58:53 -0700
commit5f56a873d60a29fef72020e8e1e8ebab8b2e970f (patch)
tree13c002627f83a1dbd58d536ec9efbc92c6e1707e
parent486a7d2e64d3872088b7d61b9cd679f667b4d56b (diff)
Add jobs virtual mailbox
-rwxr-xr-xmutt/notmuch-hook.sh8
-rw-r--r--muttrc1
2 files changed, 9 insertions, 0 deletions
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 "<vfolder-from-query>" "search mailbox"
macro index,pager A "<modify-labels>+archive -unread -inbox\n" "archive message"