nsbin/delete-mails

4 lines
143 B
Text
Raw Normal View History

#!/bin/sh
notmuch search --output=files --format=text0 tag:spam or tag:deleted | xargs -0 --no-run-if-empty rm
notmuch new --quiet 2>/dev/null