[m-dev.] diff: use new version of hypermail

Peter Ross petdr at cs.mu.OZ.AU
Sun Dec 19 13:49:49 AEDT 1999


Hi,


===================================================================


Estimated hours taken: 1

Update the mailing list archive utils to use the new version of
hypermail.

w3/mailing-lists/archive2html.sh:
w3/mailing-lists/hypermail.config:
    Use a config file rather than setting environment variables.


Index: mailing-lists/archive2html.sh
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/archive2html.sh,v
retrieving revision 1.6
diff -u -r1.6 archive2html.sh
--- mailing-lists/archive2html.sh	1999/03/25 03:52:51	1.6
+++ mailing-lists/archive2html.sh	1999/12/19 02:46:34
@@ -5,22 +5,6 @@
 #
 usage="archive2html.sh -y <year> -m <month> -f <filename> -d <directory>"
 
-    # Shows the messages inside <pre> </pre> tags so we don't lose
-    # formatting.
-export HM_SHOWHTML=0
-
-    # How many thread levels all the replies should be indented.
-export HM_THRDLEVELS=10
-
-    # Header/Footer files for the index pages
-    # Well at least the man page says that it should be the file,
-    # but for some reason it must be the contents of the file.
-export HM_IHTMLHEADERFILE="`cat msglist_header.inc`"
-export HM_IHTMLFOOTERFILE="`cat msglist_footer.inc`"
-
-    # Header/Footer files for the message pages
-export HM_MHTMLHEADERFILE="`cat msg_header.inc`"
-export HM_MHTMLFOOTERFILE="`cat msg_footer.inc`"
 
 while getopts ad:f:m:uy: flag ; do
     case $flag in
@@ -65,4 +49,4 @@
 
 set -x
 
-hypermail -x -m $filename -a "../../mailing-lists.html" -l "$file $month $year"
+hypermail -c ../hypermail.config -x -m $filename -a "../../mailing-lists.html" -l "$file $month $year"
Index: mailing-lists/hypermail.config
===================================================================
RCS file: hypermail.config
diff -N hypermail.config
--- /dev/null	Wed May 28 10:49:58 1997
+++ hypermail.config	Sun Dec 19 13:45:28 1999
@@ -0,0 +1,213 @@
+#################################################################
+# This is an automatically generated config file done by
+# Hypermail 2b25 patchlevel 0 - Sun Dec 19 13:20:59 1999
+
+# A two-letter string specifying the language to use!
+# For example 'en' for English
+#language = en
+
+# Use this to specify the html file suffix to be used
+# when Hypermail generates the html files. This is depen-
+# dent on local needs. Do not put a '.' in the value. It
+# would result in "file..html", probably not what you want.
+#htmlsuffix = html
+
+# This is the mailbox to read messages in from. Set this with 
+# a value of NONE to read from standard input.
+#mbox = NONE
+
+# This will create a link in the archived index pages
+# labeled 'Other mail archives' to the specified URL. Set
+# this to NONE to omit such a link.
+#archives = 
+
+# This will create a link in the archived index pages
+# labeled 'About this archive' to the specified URL. Set
+# this to NONE to omit such a link.
+#about = 
+
+# Define this as the label to put in archives.
+#label = 
+
+# This is the directory that Hypermail will look for when
+# creating  and updating archives. If defined as NONE the
+# directory will have the same name as the input mailbox.
+#dir = 
+
+# This specifies the default index that  users can view when
+# entering the archive. Valid types are date, thread, author,
+# and subject.
+#defaultindex = thread
+
+# Set this to On to make Hypermail overwrite existing archives.
+#overwrite = On
+
+# Define to On to make text/html parts to get inlined with the mails.
+# If set to Off, HTML-parts will be stored as separate files.
+#inlinehtml = On
+
+# Set this to On to append the input to existing archive.
+#increment = Off
+
+# Set this to On to specify there is only one message in the input.
+#readone = Off
+
+# Setting this variable to On will reverse-sort the article
+# entries in the date and thread index files by the
+# date they were received. That is, the most recent messages
+# will appear at the top of the index rather than the other
+# way around.
+#reverse = Off
+
+# Set this to 1 or 2 to always show a progress report  as
+# Hypermail works. With a setting of 1, hypermail
+# overwrites the progress information relating to attachment
+# creation. With a setting of 2, attachment creation information
+# is listed individually with the number of the message the
+# attachments relate to. This is written to stdout.
+#progress = 0
+
+# Set this to On to show the article header lines in the archived HTML
+# files.  These lines typically include the To:, From:, and Subject:
+# information found in most email messages.
+#showheaders = Off
+
+# Set this to On to show the articles in a proportionally-spaced
+# font rather than a fixed-width (monospace) font.
+#showhtml = On
+
+# Set this to On to place <br> tags at the end of article lines.
+# Otherwise, all non-quoted article lines will word wrap. This
+# only takes effect if hm_showhtml is enabled.
+#showbr = On
+
+# Set this to On to place horizontal rules before and after articles.
+#showhr = On
+
+# Set this to On to show all replies to a message as links
+# in article files.
+#showreplies = On
+
+# Set this to On to put the individual message links at the top
+# of the individual message pages. Set this to Off to produce pages
+# without the Next, Previous, Reply, In-Reply-To, etc. links.
+#show_msg_links = On
+
+# Setting this variable to On will tell Hypermail to generate
+# an index menu at the top and bottom of each page in a table
+# format. Set to Off if you want the standard Hypermail page look
+# and feel
+#usetable = Off
+
+# Setting this variable to On will tell Hypermail to generate
+# message index Subject/Author/Date listings using a nice table
+# format. Set to Off if you want the original Hypermail index look.
+#indextable = Off
+
+# Set this to On to italicize quoted lines.
+#iquotes = On
+
+# Set this to On to display article received dates with
+# days before months instead of months before days.
+#eurodate = Off
+
+# Set this to Off to accept messages with a Message-ID matching
+# that of a message already  in this archive.
+# By default such messages are discarded.
+#discard_dup_msgids = On
+
+# Set this to Off to accept messages without a Message-ID header.
+# By default such messages are discarded.
+#require_msgids = On
+
+# Set this to On to store the content type of a MIME attachment in a metadata file.#usemeta = Off
+
+# Set this to On to use hypermail's internal locking mechanism.#uselock = On
+
+# This specifies the number of thread levels to outline
+# in the thread index.
+#thrdlevels = 4
+
+# This is an octal number  representing  the  permissions
+# that new directories are set to when they are created.
+#dirmode = 755
+
+# This is an octal number representing the file permissions
+# that new files are set to when they are created.
+#filemode = 644
+
+# This specifies the mail command to use when  converting
+# email  addresses to links. The variables $TO, $SUBJECT,
+# and $ID can be used in constructing the command string.
+#mailcommand = 
+
+# The address of the contact point that is put in the HTML header
+# line <LINK REV=made HREF=mailto:MAILTO>. Setting this to NONE
+# disables <LINK...> header generation.
+#mailto = 
+
+# Set this to the list's submission address.
+#hmail = 
+
+# Set this to the domainname you want added to a mail address
+# appearing in the RFC822 field which lack a hostname.
+#domainaddr = 
+
+# This is the <BODY> line to use when generating the HTML pages.
+#body = <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
+
+# This is a list of MIME types that you want hypermail to treat
+# exactly as if they were text/plain.
+#text_types = 
+
+# This is the list of MIME types that you want <img> tags to as
+# opposed to simply <a href> to from the message.
+#inline_types = 
+
+# When mails using multipart/mixed types are scanned, this list of
+# MIME types defines which part you want presented in the result.
+#prefered_types = 
+
+# This is the list of MIME attachment types that  you  do
+# not want to do anything with.
+#ignore_types = 
+
+# This is the list of headers to be displayed if 'showheaders'
+# is set to On). They can be listed comma or space separated
+# all on a single line.
+#show_headers = 
+
+# Define path as the path to a template  file  containing
+# valid  HTML  formatting  statements  that  you  wish to
+# included at the top of every index page.
+ihtmlheaderfile = ../msglist_header.inc
+
+# Define path as the path to a template  file  containing
+# valid  HTML  formatting  statements  that  you  wish to
+# included at the bottom of every index  page.
+ihtmlfooterfile = ../msglist_footer.inc
+
+# Define path as the path to a template  file  containing
+# valid  HTML  formatting statements that you wish to use
+# at the top of every message page.
+mhtmlheaderfile = ../msg_header.inc
+
+# Define path as the path to a template  file  containing
+# valid HTML formatting statements you wish to use at the
+# bottom of every message page.
+#mhtmlfooterfile = ../msg_footer.inc
+
+# Specify number of seconds to wait for a lock before we
+# override it! .
+#locktime = 3600
+
+# Format (see strftime(3)) for displaying dates.
+#dateformat = 
+
+# Format of the attachment links.
+# %p for the full path to the attachment
+# %f for the file name part only
+# %d for the directory name only
+# %n for the message number
+# %c for the content type string
+#attachmentlink = 

----
Peter Ross
PhD Student University of Melbourne
http://www.cs.mu.oz.au/~petdr/
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list