You can customize hypermail generated pages to suit your local web site
needs as well as the needs of the list.
Hypermail generates three types of files:
HTML index pages,
HTML message pages,
MIME enclosure attactment files.
The attachment files are a copy of the attachment the user included and
are not altered.
This version of hypermail allows you to
customize both index and message pages separately as described below.
In the examples below, the following terms are used.
label - the label passed in via the
command line or specified in the list configuration file.
indextype - depends on the type of index being
presented. It could be By Author, By Date, By Subject, or By
Thread.
mailto-address - the MAILTO
value compiled into hypermail, specified in the environment with the
HM_MAILTO variable, or specified in the
hm_mailto variable in the list specific
configuration file.
subject-of-message - the contents of the message's
RFC 822 Subject:
header.
HMURL - Used to contain a link to the Hypermail
Development Center. Defined in hypermail.h.
PROGNAME - contains the name of the executable.
Defined in hypermail.h.
VERSION - contains the version of the software that
generated the page this appears on. Defined in src/hypermail.h.
There is no need to customize hypermail pages unless you have a specific
need. There are two different default page layouts provided with hypermail,
the Table Menu Display and the Standard Display.
If you are not using the HTML template files described
below then Hypermail generates headers and footers that look similar
to the following. Note that you can substitute a <BODY> statement by
either defining BODY in options.h or by using the
hm_body variable in a list specific configuration file.
The table menu display generates pages that have a menu bar at the top
and the bottom of the page that looks something like the following. If
you have enabled the "About" and "Other Archives" links are displayed if
you have enabled them in options.h, the environment variables or in the
list configuration file. A example page:
This archive was generated by hypermail 2.0x
on Thu Jun 04 1998 - 10:05:34 CDT
If you do not want to use the table display then make sure that
USETABLE is not defined in options.h and the
hm_usetable is not enabled in the list configuration file.
When you do so you will get the standard look and feel of the hypermail
you have grown acustomed to.
Also note that New Message allows you to provide a means
for someone to post a message to the list. This feature is currently only
availabe on the Table Menu Display. It can be enabled or disabled by defining
HMAIL in options.h or by setting the hm_hmail
variable in the list specific configuration file.
You can customize your page headers and footers by specifying HTML template
files. Hypermail reads template files and uses those in generating the header
and footer sections of the index and message pages. Template files contain
the actual HTML that you want used when generating the pages. Template files
may also contain "Substitution Cookies".
If you wish to use environment variables, make sure they are exported and
correctly available for hypermail to use. How to do this is dependent on
the type of shell in use. See the appropriate man pages if you need more
information.
HM_IHTMLHEADERFILE - the location of the INDEX header template.
HM_IHTMLFOOTERFILE - the location of the INDEX footer template.
HM_MHTMLHEADERFILE - the location of the MESSAGE header template.
HM_MHTMLFOOTERFILE - the location of the MESSAGE footer template.
It is acceptable to have a single configuration file listed in more than
one entry. Suppose you want to have a common footer for all pages and
separate headers. The following example shows that.
The above example informs hypermail to use the template files listed for
the Index header and the Message header and footer. The hypermail default
page footer would be used on the index pages.
NOTE: While it is not necessary to provide absolute paths,
it is a good idea to.
are normally included on each of the message pages. If this
is not what you want you can disable them by using the
SHOW_MESSAGE_LINKS
define in options.h or the hm_show_msg_links
in the list's configuration file.
Additionally, if you want to list all replies to a message
such as the following,
It is possible to have images that are sent in email automatically
displayed when the message is presented. To do this you need to set
the hm_inline_types in the list configuration file.
For example, if you listed
hm_inline_types = image/gif image/jpeg
then both GIF files and JPEG files would be displayed as part of the
message. Types that are not "in-lined" are linked as a simple attachment
requiring the user to click on it to have it displayed.
You may wish to have the pages generated use a different HTML file
suffix other than the default ".html". To do this you need
to either set the default define HTMLSUFFIX in options.h,
set the environment variable HM_HTMLSUFFIX or set it in
the list's configuration file by using the hm_htmlsuffix
variable.
Note:
Do not include a "." in the suffix; If you do
you will end up with filenames that look like. "..html"