Archiving mailbox

Jason DiCioccio geniusj at gmail.com
Wed Nov 3 13:12:41 EST 2004


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 <mailings at good-it.com> 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  j.barelds at good-it.com
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imaprotate.rb
Type: application/octet-stream
Size: 1632 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20041103/28c9087f/imaprotate.obj


More information about the Info-cyrus mailing list