On 04/05/13 16:23, Postmaster wrote:
Hello all,
How do I clean up the inbox? I have a department account which is
getting about 2000-4000 legitimate emails.
The problem is that if the account is not checked for a few days,
there is a huge number of e-mails.
How do I automate an automatic deletion of all email in the inbox
older than say 1 or 2 days please?
Any help is appreciated.
you can use this script (with modification off course)
[root@svr-m3 scripts]# cat maintain-userfolder.sh
#!/bin/bash
# buat maintain isi folder quarantine simscan
# yg ada di /var/qmail/quarantine
# user folder
USER=/home/vpopmail/domains/rpxholding.com/username/Maildir/cur
AGE=2 # days
AGE_MINS=$[ $AGE * 60 * 24 ]
find $USER/* -cmin +$AGE_MINS -exec rm -f {} \;
#/bin/rm -f $QUARANTINE/*
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]