touch trash.sh
chmod 755 trash.sh
vi trash.sh
CODE
#!/bin/sh
path=`echo /home/virtual/site*/fst/home/*/mail`
for x in $path;
do
echo "$x/$1"
cat /dev/null > $x/$1
done
path=`echo /home/virtual/site*/fst/home/*/mail`
for x in $path;
do
echo "$x/$1"
cat /dev/null > $x/$1
done
use script with:
./trash.sh Trash
This will do cat /dev/null >/home/virtual/siteXX/fst/home/USER/mail/Trash
You can give Sent as argument ( ./trash.sh Sent ).
This is usefull, when users use webmail, and after delete hes messages, they forget to empty trash, and then disk quota was reached.
regards.