[hypermail] splitting archives by month, etc

From: Peter C. McCluskey <pcm_at_rahul.net_at_hypermail-project.org>
Date: Sat, 17 Mar 2001 20:20:38 -0800 (PST)
Message-Id: <20010318042038.82A771D96_at_foxtrot.rahul.net>

 I'm dissatisfied with scripts that accomplish this by calling hypermail with different directories and the like, in part because they screw up the links between related messages that end up in different directories.

 Here's an outline of how I propose to integrate the splitting into the main hypermail program. Please comment.

 Add 2 new options tentatively called folder_by_date and msgsperfolder.

 folder_by_date would append a subdirectory name to set_dir when generating filenames. The directory name would be created by calling strftime with a user-specified format string (such as "%y%m") and the date field info from struct emailinfo.

 msgsperfolder would work by, instead of generating a filename with

something like: "%.4d.%s", msgnum, set_htmlsuffix
 using: "%d/%.4d.%s", msgnum/set_msgsperfolder, msgnum % set_msgsperfolder, ...
   or:  "%d/%.4d.%s", msgnum/set_msgsperfolder, msgnum, ...
 (I'm not sure yet how I want to choose between these 2 possibilities; probably yet another config switch - not sure which should be the default.)

 Top level index pages:
  One new file, similar to the summary.html produced by the monthly_index option that I added recently. Its name should probably default to index.html.   thread, subject, date, and author.html files that cover the messages in all folders for this list should be available, but probably disabled by default.
  Index pages within folders would work the same as in the single directory case, indexing messages within the folder, but with added links to the top level index pages and to the index pages of the next and previous folders. [For threads that span multiple folders, should there be an option to show the entire thread in the thread.html of each folder which has some of its messages?]

 For sites that want to have a fixed url that points to whatever folder is most recent, add an option to have hypermail maintain a symlink to it, e.g.   latest_folder=latest
in .hmrc would create a symlink named "latest".

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 Sun 18 Mar 2001 06:26:45 AM GMT

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