summaryrefslogtreecommitdiff
path: root/.fmail
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-04-11 22:21:28 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-04-11 22:21:28 -0700
commit7c722a7f32d631b8c5eccb88bdbdc6932cdd21bc (patch)
tree008179e83310983dec61ebbf16bf07054f74b989 /.fmail
parent471f549ed749c2cabb2a65b02f014d6f4549314c (diff)
downloaddotfiles-7c722a7f32d631b8c5eccb88bdbdc6932cdd21bc.tar.gz
call expand-annex-mboxes before notmuch processing begins
Diffstat (limited to '.fmail')
-rwxr-xr-x.fmail/.notmuch/hooks/post-new4
-rwxr-xr-x.fmail/.notmuch/hooks/pre-new3
2 files changed, 3 insertions, 4 deletions
diff --git a/.fmail/.notmuch/hooks/post-new b/.fmail/.notmuch/hooks/post-new
index f5abcbe6..0c6f79e9 100755
--- a/.fmail/.notmuch/hooks/post-new
+++ b/.fmail/.notmuch/hooks/post-new
@@ -19,7 +19,3 @@ killed_threads=$(notmuch search --output=threads tag:killed)
if [ ! -z "$killed_threads" ]; then
notmuch tag -unread -- $killed_threads
fi
-
-# start a background process to expand-annex-mboxes; mail in these
-# will be processed on the next `notmuch new` run
-( nice ionice -c 3 expand-annex-mboxes >/dev/null 2>&1 || exit 0 ) &
diff --git a/.fmail/.notmuch/hooks/pre-new b/.fmail/.notmuch/hooks/pre-new
index 8f94205e..65baebec 100755
--- a/.fmail/.notmuch/hooks/pre-new
+++ b/.fmail/.notmuch/hooks/pre-new
@@ -18,3 +18,6 @@
# add tags to new messages in particular folders
movemail
+
+# ensure that notmuch is able to detect renames by my annexfmail script
+ionice -c 3 expand-annex-mboxes