rin/rin-clean
yakumo.izuru 1e25a0dba0 Hell's Traffic Accident
git-svn-id: file:///srv/svn/repo/rin/trunk@4 5f6c6692-7da8-c640-9b4f-fb22b0af4e5b
2025-04-21 03:00:20 +00:00

24 lines
424 B
Bash

#!/bin/sh
# $YakumoLabs$
# XXX: This command is destructive
if [ "$1" = "" ]; then
echo "No account specified"
echo ""
echo "usage: $0 account"
exit 1
else
echo "Do you really want to remove all mail for account: $1? [y/n]"
read answer
case $answer in
[y|Y])
echo "You asked for it!"
find "${HOME}/Mail/$1/cur" -type f -0 | xargs rm -f -v
;;
[n|N])
echo "Aborting operation"
exit 0
;;
esac
fi