diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-07-08 09:44:46 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-07-11 18:37:33 -0700 |
commit | 21ccea4c3cd489c0527dbdec8d06f076f163d216 (patch) | |
tree | 9ee42c094d6f7af40a6484be01322f3cb0ef65a8 /.config | |
parent | 5fca09e07ee80865ea7dbee8500ee9b53648929e (diff) | |
download | dotfiles-21ccea4c3cd489c0527dbdec8d06f076f163d216.tar.gz |
move notmuch db and hooks to new XDG locations
Diffstat (limited to '.config')
-rwxr-xr-x | .config/notmuch/default/hooks/post-new | 15 | ||||
-rwxr-xr-x | .config/notmuch/default/hooks/pre-new | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/.config/notmuch/default/hooks/post-new b/.config/notmuch/default/hooks/post-new new file mode 100755 index 00000000..1f908d41 --- /dev/null +++ b/.config/notmuch/default/hooks/post-new @@ -0,0 +1,15 @@ +#!/bin/sh + +# Fix copies of my own mail returned to folder:inbox by mailing lists. This +# is a workaround for a bug in notmuch; see <id:87ee1c7s7s.fsf@tethera.net>. +notmuch tag +unread -- folder:sent +notmuch tag -unread -- folder:sent + +# mark all drafts as drafts, and as read +notmuch tag -unread +draft -- folder:drafts + +# mark all spam as spam, and as read, for Gnus +notmuch tag -unread +spam -- folder:spam + +# mark all trash as trash, and as read, for Gnus +notmuch tag -unread +deleted -- folder:trash diff --git a/.config/notmuch/default/hooks/pre-new b/.config/notmuch/default/hooks/pre-new new file mode 100755 index 00000000..302651d8 --- /dev/null +++ b/.config/notmuch/default/hooks/pre-new @@ -0,0 +1,8 @@ +#!/bin/sh + +. $HOME/.shenv + +offline || movemymail + +# ensure that notmuch is able to detect renames by archive-fmail-to-annex +ionice -c 3 expand-annex-mboxes |