a script that periodically removes deleted messages, is very feasable and
easy to write as a daily cron job:

for k in `ls /home`; do
    if [ -d $k/Mail ]; then
        find $k/Mail -type f | egrep '2,[A-Z]+?T' | xargs echo rm
    fi
done

For the sake of completeness, here is a slightly better version of the above script:


for k in `ls /home`; do
    if [ -d /home/$k/Mail ]; then
        find /home/$k/Mail -type f -name *2,[A-Z]*T -exec rm '{}' \;
    fi
done

The initial script is missing "/home" in two places, and fails on folders which have white space in their names.


- Mike





Reply via email to