On Thu, Aug 03, 2000 at 09:15:07PM -0400, Michael T. Babcock wrote:

> I'm looking for an easy way to archive old messages in a Maildir (by
> compressing them, like the gzip patch does, perhaps) for users who don't
> believe in deleting old mail (especially their sent mail folder).
> Incidentally, its an IMAP system, with several Maildirs (courier-imap).
> 
> eg:
> scan folders, find messages older than 3 months and
> 1) (maybe) move to different folder with (3 month ago's) date attached
> 2) compress messages

find /Maildir/ -mtime 90 -print |xargs mv /somewhere/else
tar czvf mail.tgz /somewhere/else

-- 
Ben Beuchler                                         [EMAIL PROTECTED]
MAILER-DAEMON                                         (612) 321-9290 x101
Bitstream Underground                                   www.bitstream.net

Reply via email to