I wrote the following ruby script a while back that should do what you want to do. It rotates based on time, and can be run from a cron job each night or something. It reads from a file called 'mblist' which is in the following format:
Mailbox:Days e.g. Shared Folders.list.bugtraq:30 This would rotate bugtraq email into an archive folder after 30 days. The archive folders are done as such: ARCHIVEPREFIX.MAILBOXNAME.Mon-Year e.g. Shared Folders.list.archive.Shared Folders.list.bugtraq.Sep-2004 Anyway, I have attached the script to this message. It should require nothing more than a base ruby 1.8 install (maybe even 1.6). Be sure to edit the top of the script to set your username, password, etc. Regards, -JD- On Wed, 3 Nov 2004 19:39:32 +0200, Johan Barelds <[EMAIL PROTECTED]> wrote: > Hi all, > > Just started with Cyrus and it works fine. > I have a mailbox for collecting spam. > I would like to archive mail after a certain period or size. > Does someone know if there are any utils to do this job? > Thanks already! > > -- > Kind Regards / Met vriendelijke groet, > > Johan Barelds, > Good-IT! > Strijplaan 320 > 2285 HZ Rijswijk(ZH) > Email [EMAIL PROTECTED] > Tel. +31(0)70-3965230 > Fax. +31(0)70-3965271 > Mob. +31(0)6-54253750 > No spam tag : "worstebroodjes zijn best lekker" > --- > Cyrus Home Page: http://asg.web.cmu.edu/cyrus > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html >
imaprotate.rb
Description: Binary data