[CentOS] Maildir Cleanup

Wed Jan 31 12:26:23 UTC 2007
Peter (CentOS-list) <centos at ourvirtualhome.com>

Well as you want to delete you don't need to worry about ownership of
the Maildir. 
Create a script that starts the script for each Maildir you have on your
system. Run the script from a crontab or from the cron.monthly
You need a list of the Maildir directories. Depending on your setup you
can create it on the fly or keep track of the Maildir places ina file
and read the file for usage with the script.

If you need more help just send an email, private is fine.


On Wed, 2007-01-31 at 01:08 +0000, Jun Salen wrote:
> Hi all,
> I found an article (with python script) on how to
> clean up Maildir folder
> for  old email messages from
> http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/
>  . As I understand, this will be run by each user
> after login. How can I make this runs at least once a
> month and
> delete all users message with age more than one month
> for example using crontab? I am using Postfix,
> MailScanner, SpamAssassin, Courier IMAP/POP3, ClamAV
> and CentOS4.4 as mail server. If you need further
> input, please just let me know. Thanks in advance for
> help. Thanks. 
> junji
> linux registered user #253162
> Send instant messages to your online friends http://uk.messenger.yahoo.com 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos