summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-12-07 10:37:14 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-12-07 17:43:09 -0700
commit3240f48f78ecf1f557a10a6a2090553b441b39e1 (patch)
treea8f5e1d65b4794c6ad4c55bd297564b913e0ea01 /.config
parent56b9d113e8bfda7c8a1e99346d05da4c74847a48 (diff)
downloaddotfiles-3240f48f78ecf1f557a10a6a2090553b441b39e1.tar.gz
notmuch pre-new hook: die if movemymail dies, and some tidying
There is little point in testing whether we are online out in this script if we ignore a non-zero exit from movemymail anyway.
Diffstat (limited to '.config')
-rwxr-xr-x.config/notmuch/default/hooks/pre-new6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/notmuch/default/hooks/pre-new b/.config/notmuch/default/hooks/pre-new
index 2e5d58db..e9f9e1a2 100755
--- a/.config/notmuch/default/hooks/pre-new
+++ b/.config/notmuch/default/hooks/pre-new
@@ -1,6 +1,8 @@
#!/bin/sh
+set -e
+
offline || movemymail
-# ensure that notmuch is able to detect renames by archive-fmail-to-annex
-ionice -c 3 ~/src/dotfiles/scripts/mail/expand-annex-to-fmail
+# Ensure that notmuch detects renames made by archive-fmail-to-annex.
+exec ionice -c 3 ~/src/dotfiles/scripts/mail/expand-annex-to-fmail