MHonArc
view release on metacpan or search on metacpan
doc/faq/indexpgs.html view on Meta::CPAN
resources when reading the otherindexes resource files. with one
<em>exception</em>: <a href="../resources/thread.html">THREAD</a> is shut-off. To avoid overriding the default
index files, I must explicitly redefine <a href="../resources/idxfname.html">IDXFNAME</a> (and <a href="../resources/idxprefix.html">IDXPREFIX</a>
if <a href="../resources/multipg.html">MULTIPG</a> is active). If I want different layouts for my
other indexes, I must explicitly define those, or they will
use what was ever set in top.mrc (or the applicable default resource setting(s)
when no explicit setting provided).
</p>
<table class="note" width="100%">
<tr valign="baseline">
<td><strong>NOTE:</strong></td>
<td width="100%"><p>
Otherindexes resource file only defines a <strong>single</strong>
index type: main or thread. If you specify the
<a href="../resources/thread.html">THREAD</a>, a thread index will be
created and all <a href="../resources/main.html">MAIN</a> related resources are ignored.
</p>
</td>
</tr>
</table>
<p> </p>
<table class="caution" width="100%">
<tr valign="baseline">
<td><strong style="color: red;">WARNING:</strong></td>
<td width="100%"><p>
Do <b>NOT</b> define <a href="../resources/otherindexes.html">OTHERINDEXES</a> in your otherindexes resource files.
Also, make sure there is no self references. If you do not heed
these warnings, you will cause an infinite loop, and/or
unpredictable results.
</p>
</td>
</tr>
</table>
<p>Make sure <a href="../resources/otherindexes.html">OTHERINDEXES</a> resource files are present for all
updates to an archive. Mhonarc only stores settings for the
default indexes, so the resource files are needed each time
for other indexes.
</p>
<p>What is left out of this example is the redefinition
of navigational based resources. Since I am adding
more indexes, I would have to redefine resources like
<a href="../resources/toplinks.html">TOPLINKS</a>,
<a href="../resources/botlinks.html">BOTLINKS</a>,
<a href="../resources/listbegin.html">LISTBEGIN</a>,
<a href="../resources/thead.html">THEAD</a>, etc, so there will be links
to the other indexes.
</p>
<!-- ??????????????????????????????????????????????????????????????? -->
<hr noshade size=1>
<table border=0>
<tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
<h3><b><a name="attachments">Can I include links to message attachments on index pages?</a></b></h3>
</td></tr></table>
<p>Not directly, but a (dirty) work-around maybe possible.
You can modify the
mhexternal.pl filter to write to a file (name based off the message
number) with some HTML markup that creates the HTML attachment list
(mhexternal.pl knows about content-types and other stuff, so it can
make a useful list). Note, since mhexternal.pl works on a single part
at a time, it needs to create the list via append operations to the
file. The implementation is similiar to how mhexternal.pl supports
placing attachments into a subdirectory. Make sure that mhexternal.pl
returns the file as part of the return value so it is automatically
deleted if the message is removed from the archive.
</p>
<p>Then, you define the <a href="../resources/litemplate.html">LITEMPLATE</a>
resource to use a server-side include
to include the file as part of the message listing. I did say
it was dirty, but it should work.
</p>
<!-- ===================================================================== -->
<hr>
<!--X-NavButtons-Start-->
<table width="100%"><tr><td align="left"><nobr>[<a href="archives.html">Prev</a>]</nobr></td><td align="center" width="100%">[<a href="faq.html">TOC</a>][<a href="../mhonarc.html">Manual</a>][<a href="http://www.mhonarc.org/">Home</a>]</td><td align=...
</p>
<!--X-NavButtons-End-->
<HR>
<address>
$Date: 2005/05/25 19:51:01 $ <br>
<img align="top" src="monicon.png" alt="">
<a href="http://www.mhonarc.org/"
><strong>MHonArc</strong></a><br>
Copyright © 1997-1999, <a href="http://www.earlhood.com/"
>Earl Hood</a>, <a href="mailto:mhonarc%40mhonarc.org"
>mhonarc<!--
-->@<!--
-->mhonarc.org</a><br>
</address>
</BODY>
</HTML>
( run in 0.348 second using v1.01-cache-2.11-cpan-524268b4103 )