Hypermail OpenFAQ

How can I split the archives into months ?

Contributors:

I have a fat archive that I'd like to split up by month, like I see so many others doing. Is there a description somewhere of a procedure to follow, or will I just have to think it through?

If you are using version 2.1.0 or later and either have gdbm or don't do incremental updates, see the folder_by_date option. The simple way to use this is to add these to your .hmrc:

folder_by_date="%y%m"
usegdbm = 1

and regenerate your archive from its mbox file.

An older alternative is a set of scripts in a directory named archive/ that has tools to do just what you want to do.

If you want index files split by month but don't need to split the archive into multiple directories, try adding "monthly_index=1" in your config file (usually ~/.hmrc) (available in version 2.1). A summary.html file will provide links to all the monthly indices. This is probably appropriate for archives with a few thousand messages, but for larger archives I recommend splitting into multiple directories.

There's a script at http://users.netrus.net/troc/perl.html called mms (monthly mail splitter) which has also been reported useful.



Previous | Next | Table of Contents
Last Update: Wed Apr 23 11:28:24 2003