Autodelete of old mails

Craig Ringer craig at postnewspapers.com.au
Tue Dec 30 02:14:07 EST 2003


Ramprasad A Padmanabhan wrote:
> I want to maintain my cyrus-imap server in such a way that all mails
> older than 30 days will be deleted for all users
>  I have written a client code using perl Mail::IMAPClient. 
> But I was wondering if it was possible at the cyrus level.
> the "popexpiretime:"  in imapd.conf  parameter is something like this ,
> But I dont think I can use it to actually delete older mails

What about using the `ipurge` command? I nuke my users' trash mailboxes 
after 14 days with a simple command in the EVENTS section of cyrus.conf:

   purgetrash    cmd="ipurge -d 14 -f user.%.Trash" at=0200

and it works well.

Craig Ringer





More information about the Info-cyrus mailing list