It's not mine, but I found this site with a link to a python script that
looks quite useful...

http://www.ducea.com/2006/11/25/cleanup-maildir-folders-archive-delete-old-mails/

Adam

> Hi Guys,
>
> I'm looking to run a cron script on my server that removes mail older
> than x days from user's Spam and Trash folders each night (I know about
> the IMAP_EMPTYTRASH setting but some user's don't login for long periods
> of time so this can be ineffective).  Before I go and hack one myself I
> was wondering if anyone has such a script setup themselves that they'd
> like to share.  I realize it might be specific to your setup and need
> some customization on my end but at least it'd be a starting point.
> Thanks in advance,
>
> Jay
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/_______________________________________________
> Courier-imap mailing list
> [email protected]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
>



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to