RE: Question concerning .hm2index with date indexing on

---------

From: Bailey, Glenn R (glenn.r.bailey@intel.com)
Date: Thu Jul 26 2001 - 12:27:14 CDT


Hi!

My experience is, with folder-by-date, is the index is removed
prior to attempting to update/create new messages in the subdirectories,
and if the update fails, the index file is not recreated. Even after
the permissions are fixed and tested, if the .hm2index file does not
exist, the next message coming in triggers an error that says something like
"You must have gdbm option turned on or the archive is empty in order
to use folder-by-date" indicating to me that hypermail checks for
.hm2index when folder-by-date is enabled and incremental update option to
hypermail is used.

What I wonder is, could hypermail, upon detection of the existance
of the .hm2index file, and prior to removing it, just copy it off
to a backup name like .hm2index.prev. If there is no .hm2index present,
then go ahead and send a error message. Then I can come back and recover
the index by hand, without having to collect all the mail and use the
mbox method to reconstruct the index. This change would not require
a lot of code nor very much fancy manuvering or searching, but would make
it MUCH simpler to recover the archive to a usable state.

Glenn Bailey

-----Original Message-----
From: pcm@rahul.net [mailto:pcm@rahul.net]
Sent: Thursday, July 26, 2001 8:44 AM
To: Scott Rose
Cc: Hypermail list
Subject: Re: [hypermail] Question concerning .hm2index with date
indexing on

 srose@direct.ca (Scott Rose) writes:
>To test, may I propose that you try removing the .hm2index from an
>archive that hasn't had the permissions mangled, then prove to yourself
>that it's recreated without complaint when the next mail message
>arrives?

 That doesn't happen with the folder_by_date option (an option which didn't
exist when you wrote the gdbm code), because I decided it was impractical
to do the usual search for existing html files when such a wide variety
of subdirectory names are possible.

----------------------------------------------------------------------------

--
Peter McCluskey          | Fed up with democracy's problems? Examine
Futarchy:
http://www.rahul.net/pcm | http://hanson.gmu.edu/futarchy.pdf or .ps

---------

This archive was generated by hypermail 2.1.5.