aboutsummaryrefslogtreecommitdiffstats
path: root/notmuch/.config
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch/.config')
-rwxr-xr-xnotmuch/.config/notmuch/default/hooks/pre-new4
1 files changed, 4 insertions, 0 deletions
diff --git a/notmuch/.config/notmuch/default/hooks/pre-new b/notmuch/.config/notmuch/default/hooks/pre-new
new file mode 100755
index 0000000..eb7730a
--- /dev/null
+++ b/notmuch/.config/notmuch/default/hooks/pre-new
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+notmuch search --output=files tag:deleted | tr '\n' '\0' | xargs -0 -L 1 rm -v
+mbsync -a