summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmutt/notmuch-hook.sh3
-rw-r--r--muttrc1
2 files changed, 4 insertions, 0 deletions
diff --git a/mutt/notmuch-hook.sh b/mutt/notmuch-hook.sh
index 6c152c4..42b22cf 100755
--- a/mutt/notmuch-hook.sh
+++ b/mutt/notmuch-hook.sh
@@ -29,3 +29,6 @@ notmuch tag +jobs -inbox -- \
from:stackoverflow.com or \
from:stackoverflow.email or \
subject:job
+
+# tag github emails
+notmuch tag +github -inbox -- from:github.com
diff --git a/muttrc b/muttrc
index a969ed1..7cd0a89 100644
--- a/muttrc
+++ b/muttrc
@@ -79,6 +79,7 @@ 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"
+virtual-mailboxes "github" "notmuch://?query=tag:github"
macro index,pager S "<vfolder-from-query>" "search mailbox"
macro index,pager A "<modify-labels>+archive -unread -inbox\n" "archive message"