<<< Date Index >>>     <<< Thread Index >>>

Re: How do you guys archive your old email messages?



Byspel wrote:
> I'm looking into effective ways to archive my old emails...
> It would be nice to be able to concatenate the mbox and sent-mail
> folders as to end up with a threaded structure in the archives for
> both sent and received messages.
> 
> Just wondering, has anyone here come up with smart ways of doing 
> that?

I use maildir format folders almost exclusively.  Each message is in
its own file that way.  Then I use 'find' to find messages older than
a few months and move them to an archive folder.  Something like this:

  list_of_folders="MyMailDir MyLists MyBlah blah blah etc."
  find $list_of_folders -type f -mtime +120 -printf "mkdir -p ARCHIVE/%h ; mv 
-v %p ARCHIVE/%p\n" | sh

I run that by cron regularly.  This keeps my active folders to just
recent stuff.  I look into the archive if I want something older.

Bob