delete messages from the command-line?

mikee mikee at mikee.ath.cx
Tue May 29 09:27:26 EDT 2007


On Thu, 24 May 2007, OBATA Akio might have said:

> On Thu, 24 May 2007 22:10:50 +0900, mikee <mikee at mikee.ath.cx> wrote:
> 
> >I use deliver to put messages directly into the inbox
> >or some folder inbox.folder. Is there a similiar way
> >to remove messages from a folder? I want to remove messages
> >when a folder has more than 1000 messages or the messages
> >are older than four days.
> 
> Cyrus IMAP Server have expire capability.
> 
> Access to the server with 'cyadmin', then type
> >mboxcfg inbox.folder expire 4

Does the command above create a setting where messages in user.inbox.folder
are only retained if the messages are less than four days old or is the
command above an immediate thing and must be set in contab(8) (or similiar)
to keep messages from getting too old?

Mike


More information about the Info-cyrus mailing list