24 lines
424 B
Bash
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
|