notmuch: Limit notmuch-saved-searches to some weeks

master
Pierre Neidhardt 2019-03-19 13:54:17 +01:00
parent 92964e44a0
commit 93d4e33315
1 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,14 @@
'(("mail@ambrevar.xyz" . "mail/Sent +sent -inbox -unread")
("pierre@atlas.engineer" . "atlas/Sent +sent -inbox -unread")))
(setq notmuch-saved-searches
`((:name "inbox" :query "tag:inbox and date:1w.." :key ,(kbd "i"))
(:name "unread" :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"))
(:name "drafts" :query "tag:draft" :key ,(kbd "d"))
(:name "all mail" :query "date:2w.." :key ,(kbd "a"))))
(defun notmuch-change-sender ()
(interactive)
(unless (derived-mode-p 'message-mode)