diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-01-13 11:39:38 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-01-13 11:39:38 +0000 |
commit | c81464bc1f415f0867ee67a45bb09bf63479e295 (patch) | |
tree | 4c16a4e288e635ce160643e1bef616e224459a9a | |
parent | cd95e326963e750405c7ff94681c0edc11c4f207 (diff) | |
download | dotfiles-c81464bc1f415f0867ee67a45bb09bf63479e295.tar.gz dotfiles-c81464bc1f415f0867ee67a45bb09bf63479e295.tar.bz2 dotfiles-c81464bc1f415f0867ee67a45bb09bf63479e295.zip |
(Mail|Emacs)~notmuch settings
+a few more tags to make organizing stuff easier
+recent searches to notmuch-hello
~path to database is now relative
-rw-r--r-- | Emacs/.config/emacs/config.org | 2 | ||||
-rwxr-xr-x | Mail/.local/share/mail/.notmuch/hooks/post-new | 19 | ||||
-rw-r--r-- | Mail/.notmuch-config | 4 |
3 files changed, 22 insertions, 3 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 15045ea..c8c7c54 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1368,7 +1368,7 @@ integrate it into my workflow just a bit better. :custom (notmuch-show-logo nil) (notmuch-search-oldest-first nil) - (notmuch-hello-sections '(notmuch-hello-insert-saved-searches notmuch-hello-insert-alltags)) + (notmuch-hello-sections '(notmuch-hello-insert-saved-searches notmuch-hello-insert-alltags notmuch-hello-insert-recent-searches)) (notmuch-archive-tags '("-inbox" "-unread" "+archive")) (mail-signature +mail/signature) (mail-default-directory +mail/local-dir) diff --git a/Mail/.local/share/mail/.notmuch/hooks/post-new b/Mail/.local/share/mail/.notmuch/hooks/post-new new file mode 100755 index 0000000..0573651 --- /dev/null +++ b/Mail/.local/share/mail/.notmuch/hooks/post-new @@ -0,0 +1,19 @@ +#!/bin/sh + +# unread;inbox;warwick;banks;receipts;spotify +notmuch tag +inbox +unread -new -- tag:new + +notmuch tag -new -unread +inbox +sent -- '(from:"aryadev@aryadevchavali.com*" not to:"*@aryadevchavali.com.com*" not tag:list)' +notmuch tag -inbox +list 'from:"rss@aryadevchavali.com"' + +notmuch tag -inbox +warwick from:'*@warwick.ac.uk*' + +notmuch tag -inbox +receipts from:'*@paypal.co.uk*' \ + from:'*@namcheap.com*' from:'*@digitalocean.com*' \ + from:'*@spotify.com*' from:'*@nationalexpress.com*' + +notmuch tag -inbox +jobs from:'*@jobs*' from:'*@indeed.com*' + +notmuch tag -inbox +bank from:'*@*hsbc*' from:'*@*lloydsbank*' + +notmuch tag +flagged from:'expiry@letsencrypt.org' diff --git a/Mail/.notmuch-config b/Mail/.notmuch-config index 22fdc54..f0bd4e4 100644 --- a/Mail/.notmuch-config +++ b/Mail/.notmuch-config @@ -12,7 +12,7 @@ # [database] -path=/home/dx/.local/share/mail +path=.local/share/mail # User configuration # @@ -50,7 +50,7 @@ primary_email=aryadev@aryadevchavali.com # [new] -tags=unread;inbox; +tags=new ignore= # Search configuration |