From 5e6c2f602e17806a43121f82ceec50a254ebd317 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 27 Jan 2013 09:07:11 -0500 Subject: [PATCH] mail:notmuch:hooks:post-new: Keep some tags from the inbox For lists that I'd like to archive but don't generally read as they come in. --- src/mail/.notmuch/hooks/post-new | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mail/.notmuch/hooks/post-new b/src/mail/.notmuch/hooks/post-new index 85de15e..7997705 100755 --- a/src/mail/.notmuch/hooks/post-new +++ b/src/mail/.notmuch/hooks/post-new @@ -33,5 +33,8 @@ notmuch tag +journal -- tag:new and folder:journal # tag sysadmin stuff notmuch tag +admin -- tag:new and 'subject:report domain' +# remove new from things we don't want in the inbox +notmuch tag +unread -new -- tag:new and \( tag:gramps or tag:notmuch or tag:simulavr \) + # finally, retag all "new" messages "inbox" and "unread" notmuch tag +inbox +unread -new -- tag:new -- 2.26.2