From 605165452753a9972bca7e064113153212ce61ac Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 16 Feb 2020 17:16:05 +0000 Subject: Support additional notmuch saved queries Today I setup declarative gmail filters using some Google internal tooling. I'm now adding labels to messages from Critique, Sphinx, Ganpati, "The Daily Insider", messages sent directly to me, and more. These labels are applied server-side. On the notmuch, client-side, I'm support saved queries for these newly created gmail labels. --- emacs/.emacs.d/wpc/email.el | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'emacs/.emacs.d/wpc') diff --git a/emacs/.emacs.d/wpc/email.el b/emacs/.emacs.d/wpc/email.el index 254dc2161a..a7415af337 100644 --- a/emacs/.emacs.d/wpc/email.el +++ b/emacs/.emacs.d/wpc/email.el @@ -17,15 +17,16 @@ ;; Configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(setq notmuch-saved-searches '((:name "inbox" :query "tag:inbox" :key "i") - (:name "unread" :query "tag:unread" :key "u") - (:name "flagged" :query "tag:flagged" :key "f") - (:name "sent" :query "tag:sent" :key "t") - (:name "drafts" :query "tag:draft" :key "d") - (:name "all mail" :query "*" :key "A") - (:name "action" :query "tag:action" :key "a") - (:name "review" :query "tag:review" :key "r") - (:name "waiting" :query "tag:waiting" :key "w"))) +(setq notmuch-saved-searches + '((:name "inbox" :query "tag:inbox" :key "i") + (:name "direct" :query "tag:direct and tag:inbox" :key "d") + (:name "action" :query "tag:action" :key "a") + (:name "review" :query "tag:review" :key "r") + (:name "waiting" :query "tag:waiting" :key "w") + (:name "broadcast" :query "tag:/broadcast\/.+/" :key "b") + (:name "systems" :query "tag:/systems\/.+/" :key "s") + (:name "sent" :query "tag:sent" :key "t") + (:name "drafts" :query "tag:draft" :key "D"))) ;; Sort results from newest-to-oldest. (setq notmuch-search-oldest-first nil) -- cgit 1.4.1