Automatic archival and expiration of messages?

Ken Murchison ken at
Sun Feb 1 09:28:28 EST 2004

Mark London wrote:
> In order to keep INBOX to a reasonable size, I would like to set up an 
> automatic system that would automatically move old messages from INBOX 
> to another folder.  Any suggestions? Thanks. -  Mark

There isn't any Cyrus utility to do this (ipurge is the closest), so 
you're best bet is to write a Perl script that uses the following IMAP 

SELECT inbox
COPY <seq> <mbox>
STORE <seq> +flags \deleted

Of course, you'll have to check the Perl module and/or RFC 3501 for the 
correct syntax.

Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--

More information about the Info-cyrus mailing list