1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00

feat: package much-secripts and dns-sledgehammer

This commit is contained in:
2020-11-02 21:43:38 +01:00
parent d7807ba1b9
commit de296c4e62
4 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#! /bin/sh
set -efu
if ! notmuch search --exclude=false tag:deleted | tac | grep .; then
echo 'No killed mail.'
exit 1
fi
printf 'want do rm these mail? [y/N] '
read REPLY
case "$REPLY" in
y|Y) :;; # continue
*)
echo 'abort.'
exit 2
;;
esac
notmuch search --output=files --exclude=false tag:deleted | xargs -l rm -v
notmuch new