#!/bin/bash
## List users mail space usage
cd /home
clear
echo
echo -e "\033[1m\tUser Mail Size\033[0m"
echo -e "\033[1m\t------------------------\033[0m"
for user in `ls`
do
mdir="/home/$user/Maildir/"
if test -d $mdir; then
echo -ne "\t"
echo -ne "$user \t "|awk '{printf "%15-s", $1}'
du -sh $mdir |awk '{print $1}'
fi
done
echo
echo