orin_dance.gif

git-svn-id: file:///srv/svn/repo/rin/trunk@7 5f6c6692-7da8-c640-9b4f-fb22b0af4e5b
This commit is contained in:
yakumo.izuru 2025-04-21 11:52:09 +00:00
parent e2bfef6aab
commit af5b06b5fc
2 changed files with 14 additions and 6 deletions

View File

@ -1,8 +1,16 @@
#!/bin/sh
# $YakumoLabs$
echo "Checking if there is any mail..."
env fdm -a "$@" poll
if [ $? -ne 0 ]; then
echo "Sorry, I couldn't..."
if [ "$1" = "" ]; then
echo "No account specified"
echo ""
echo "usage: $0 account"
exit 1
else
echo "Checking if there is any mail..."
env fdm -a "$@" poll
if [ $? -ne 0 ]; then
echo "Sorry, I couldn't..."
exit 1
fi
fi

View File

@ -11,11 +11,11 @@ else
echo "Do you really want to remove all mail for account: $1? [y/n]"
read answer
case $answer in
[y | Y])
y | Y)
echo "You asked for it!"
find "${HOME}/Mail/$1/cur" -type f -0 | xargs rm -f -v
;;
[n | N])
n | N)
echo "Aborting operation"
exit 0
;;