[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: remove old trash from imap, server side

On 30/12/05, Adam James <ad@heliosphan.co.uk> wrote:
> On Thu, 2005-12-29 at 14:47 +0800, Chris Purves wrote:
> >
> > I am running courier IMAP using maildirs.  I would like to know what
> > is the best way for removing mail from the trash folder that are older
> > than six months.
> >
> > Is there any functionality built into courier or should I make a cron
> > job?  What are others doing?
> From '/etc/courier/imapd':
> #
> # The following setting is optional, and causes messages from the given
> # folder to be automatically deleted after the given number of days.
> # IMAP_EMPTYTRASH is a comma-separated list of folder:days.  The default
> # setting, below, purges 7 day old messages from the Trash folder.
> # Another useful setting would be:
> #
> # IMAP_EMPTYTRASH=Trash:7,Sent:30

That setting affects every user.  I want to do the same thing, but
have seperate settings for each user.  After talking to the courier
mailing list it looks like courier doesnt' have this functionality. 
It seems the only way is to write a script and run through cron.

Take care, eh.

Reply to: