RE: [hypermail] Question concerning .hm2index with date indexing on

From: Bailey, Glenn R <glenn.r.bailey_at_intel.com_at_hypermail-project.org>
Date: Thu, 26 Jul 2001 10:27:14 -0700
Message-ID: <CCB7FD45DD52D411AC6600A0C95D746B0477BB07_at_fmsmsx54.fm.intel.com>


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_at_rahul.net [mailto:pcm_at_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_at_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
Received on Thu 26 Jul 2001 07:32:31 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT