summaryrefslogtreecommitdiffhomepage
path: root/bin/notmuch-delete.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/notmuch-delete.sh')
-rwxr-xr-xbin/notmuch-delete.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/notmuch-delete.sh b/bin/notmuch-delete.sh
new file mode 100755
index 0000000..fc230a5
--- /dev/null
+++ b/bin/notmuch-delete.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+# [[file:../mail.org::*delete shell script][delete shell script:1]]
+echo "Deleting $(notmuch count tag:deleted) files"
+notmuch search --output=files --format=text0 tag:deleted | xargs -r0 rm
+notmuch new 2>&1
+# delete shell script:1 ends here