On Tue, May 02, 2000 at 04:02:39PM +0300, Mulindwa Eric wrote:

> Is there any script I can Use to free up disk space i.e deleting someold
> mails of clients.Am using qmail.

that's a simple find job of you are using maildirs:
(
        for i in `awk -v FS=: '{print $1}' /etc/passwd` ; do    
                x=`eval echo ~$i/Maildir`
                if test -d $x ; then
                        find $x -type f -mtime +180 -print0
                fi
        done
) |xargs -0 --no-run-if-empty rm

but a complicated amount of magic if you are using mbox (you'll learn
why mbox is bad if you go down that road).

Regards, Uwe

Reply via email to