Joel Merrick ha scritto:
On Tue, 2005-02-08 at 15:55 +0100, Bastian Balthazar Bux wrote:
Joel Merrick ha scritto:
Hi guys,
I've built up a LARGE (>140Mb) IMAP mailbox over the past few months and
was wondering if there's a way to archive this mail, but still have it
available to view (via https or something)
Thoughts?
# find . -mtime +120 -exec tar -rvf mail_archive.tar {} \; -exec rm {} \;
# bzip2 mail_archive.tar
this should add to mail_archive.tar.bz2 and remove all the files last
modified more than 120 days ago
alternatives to -mtime are
-atime
-ctime
That looks great, you always gotta love one-liners :)
I'm ideally looking for something that will archive the mail for online
use. Looking at it, it should be fairly trivial to implement something,
but is there anything out there that can do this already?
I don't think so but you can something more tricky, move them to a
compressed file system and then setup a secondary imap server that look
read only to that system.
mail messages normally have a good compression ratio.
good luck, francesco
--
[email protected] mailing list