Prentiss Riddle said:
Nancy McGough and Achim Bohnet touched on this subject a while back,
but neither posted a solution.
My solution requires some work/time I did not have up to know :-( The
solution (for me) would be to make the index stuff dymanic. I thought
- mhonarc option to update only .mhonarc.db (no HTML files
- add an hash to .mhonarc.db that contains
dirname/number # for mh messages
mboxname/offset # for mbox files
With some generalization to the index generation routines it should
then be easy to produce indexes on the fly) as you could already for
Does anyone have a script they'd be willing to share which automates
the doling out of MHonArc archives into separate sub-archives over time?
At a minimum, I'm thinking of a cron job which wakes up on the first
day of every Nth month and does more or less the following:
-- Creates a new subdirectory for the current period, entitled
-- Initializes the main and threaded indexes of the new
-- Adds a link in the top-level HTML file to the main and threaded
indexes of the new subdirectory.
-- Creates a symlink called "current" linking to the "YYYYMM"
subdirectory (so that new messages can always be added to
It looks like something of this sort must be in place for the archive
of the "mhonarc" mailing list:
I do something like that to manage the mhonarc list (triggered by procmail
for each mail):
if [ ! -d $archive ]; then
... # do whatever you want
mhonarc -rcfile mycustom -outdir $archive ...
mhonarc -outdir $archive ...
Has anyone got a script handy to automate it? Thanks.
-- Prentiss Riddle ("aprendiz de todo, maestro de nada")
-- RiceInfo Administrator, Rice University / http://is.rice.edu/~riddle
-- Home office: 2002-A Guadalupe St. #285, Austin, TX 78705 / 512-323-0708