mhonarc-users

Re: modify href to messages??

2001-08-15 12:25:54
On August 14, 2001 at 22:28, "Doug Garaux" wrote:

Is there a way to have mhonarc create the links in it's files
(maillist.html and threads.html) to a path (ie
href=emailarchive/msg0000.html) ???

You can set the resources associated with index page layout to
get the types of links you want.  For example, the following
resource changes the messaging listing to reflect the href path
structure you need:

<LiTemplate>
<li><strong><a href="emailarchive/$MSG$">$SUBJECTNA$</a></strong>
<ul><li><em>From</em>: $FROM$</li></ul>
</li>
</LiTemplate>

Modifying the thread index is a little more work since there
are multiple resources based on where a message is located in
a thread.  Example:

<TTopBegin>
<li><strong><a href="emailarchive/$MSG$">$SUBJECTNA$</a></strong>,
<em>$FROMNAME$</em>
</TTopBegin>

<TLiTxt>
<li><strong><a href="emailarchive/$MSG$">$SUBJECTNA$</a></strong>,
<em>$FROMNAME$</em>
</TLiTxt>

<TSingleTxt>
<li><strong><a href="emailarchive/$MSG$">$SUBJECTNA$</a></strong>,
<em>$FROMNAME$</em>
</TSingleTxt>

Note, if you need this kind of linking for multiple archives, you
may want to replace the literal "emailarchive" with a custom
resource variable, and then define the variable via a command-line
option before processing the archive.  For example, the LITEMPLATE
resource would look like:

<LiTemplate>
<li><strong><a href="$ARCHIVE-NAME$/$MSG$">$SUBJECTNA$</a></strong>
<ul><li><em>From</em>: $FROM$</li></ul>
</li>
</LiTemplate>

On the command-line you would have:

    mhonarc -definevar 'ARCHIVE-NAME=emailarchive' ...

This way you can use the same resource file for multiple archives.

--ewh

<Prev in Thread] Current Thread [Next in Thread>