#!/bin/sh
# rmoldmail Ver1.1 : Script to remove old mails in Maildir of a user.
# Written by T.Nonogaki Stray-Penguin
#
PATH="/bin:/usr/bin:$PATH"
ME=$(basename $0)
## Customizeable variables.
# If you are utilizing virtual mail users using qmail-vida or some,
# consider these.
#
# If set to 1, virtual user Maildir detection is ALWAYS enabled.
# However, you may leave this being 0 and specify -V on each call to
# enable this function.
VMAIL=0
# Directory origin where virtual mail user directories reside.
# Dont put trailing slash.
VMDIR=/home/popusers
function show_help() {
cat <&2
exit 1
fi
find ${DIR}/ -type f -mtime +$DAYS -exec rm -f '{}' ';' &>/dev/null
exit $?