From 201f094f84aacfa46d2283f99127b392a07a11bb Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Fri, 18 Jun 2021 17:54:57 +0200 Subject: [PATCH] notmuch: Specify `unread' in Emacs config instead of via tags. --- .cache/mail/.notmuch/hooks/post-new | 2 -- .emacs.d/lisp/init-notmuch.el | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100755 .cache/mail/.notmuch/hooks/post-new diff --git a/.cache/mail/.notmuch/hooks/post-new b/.cache/mail/.notmuch/hooks/post-new deleted file mode 100755 index 34cbc0fa..00000000 --- a/.cache/mail/.notmuch/hooks/post-new +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -notmuch tag +nyxt -- tag:unread and \(to:nyxt@noreply.github.com or from:noreply@discourse.atlas.engineer\) diff --git a/.emacs.d/lisp/init-notmuch.el b/.emacs.d/lisp/init-notmuch.el index 0c6e0379..0112ec63 100644 --- a/.emacs.d/lisp/init-notmuch.el +++ b/.emacs.d/lisp/init-notmuch.el @@ -14,7 +14,7 @@ (setq notmuch-saved-searches `((:name "inbox" :query "tag:inbox and date:1w.." :key ,(kbd "i")) - (:name "unread" :query "tag:unread and -tag:nyxt" :key ,(kbd "u")) + (:name "unread" :query "tag:unread and -(to:nyxt@noreply.github.com or from:noreply@discourse.atlas.engineer)":key ,(kbd "u")) (:name "unread-all" :query "tag:unread" :key ,(kbd "U")) (:name "flagged" :query "tag:flagged" :key ,(kbd "f")) (:name "sent" :query "tag:sent and date:1w.." :key ,(kbd "t"))