[Mailman-Users] MHonArc question

Joseph Gray jgray at lcdfnm.org
Mon Jul 3 20:07:12 CEST 2000


Ok, two people have asked so far. Here is how I have MHonArc setup.

To start, edit your "mm_cfg.py" file to define the external archiver (yes, both lines are the same command). I got the "mkdir" idea
from someone else's posting. It didn't work w/o it:

PUBLIC_EXTERNAL_ARCHIVER = """
mkdir -p /home/mailman/archives/private/%(listname)s;/usr/local/bin/mhonarc -add
-outdir /home/mailman/archives/private/%(listname)s -idxfname index.html
-nosaveresources -rcfile /home/mailman/mhonarc.mrc
"""
PRIVATE_EXTERNAL_ARCHIVER = """
mkdir -p /home/mailman/archives/private/%(listname)s;/usr/local/bin/mhonarc -add
-outdir /home/mailman/archives/private/%(listname)s -idxfname index.html
-nosaveresources -rcfile /home/mailman/mhonarc.mrc
"""

You will note from the above that "-rcfile" defines the location of the MHonArc resource file. Here is mine:

<!-- MHonArc Resource File -->
<!-- mhonarc.mrc 28 Jun 2000 Joe Gray -->

<!-- Set umask -->
<UMASK>
022
</UMASK>

<!-- Break index into multiple pages with 20 messages per page. -->
<MULTIPG>

<IDXSIZE>
20
</IDXSIZE>

<!-- Since MULTIPG is on, add more navigation links to Main index page.
<ListBegin>
<ul>
<li><a href="$TIDXFNAME$">Thread Index</a></li>
</ul>
<table width="100%" border=0 cols=2 cellpadding=0 cellspacing=0>
<tbody>
<tr align="center">
<th colspan=4>Page $PAGENUM$ of $NUMOFPAGES$
<tr>
<td align="left">$PGLINK(PREV)$
<td align="right">[<a href="$PG(FIRST)$">First Page</a>]
<td align="left">[<a href="$PG(LAST)$">Last Page</a>]
<td align="right">$PGLINK(NEXT)$
</tbody>
</table>
<hr>
<ul>
</ListBegin>

<!-- Since MULTIPG is on, add more navigation links to Threaded index page.
<THead>
<ul>
<li><a href="$IDXFNAME$">Date Index</a></li>
</ul>
<table width="100%" border=0 cols=2 cellpadding=0 cellspacing=0>
<tbody>
<tr align="center">
<th colspan=4>Page $PAGENUM$ of $NUMOFPAGES$
<tr>
<td align="left">$PGLINK(TPREV)$
<td align="right">[<a href="$PG(TFIRST)$">First Page</a>]
<td align="left">[<a href="$PG(TLAST)$">Last Page</a>]
<td align="right">$PGLINK(TNEXT)$
</tbody>
</table>
<hr>
<ul>
</THead>

<!--	Specify date sorting.-->
<Sort>

<!-- Show only these fields in the message header. -->
<FieldOrder>
to
from
date
reply-to
</FieldOrder>

<!--	Change main index title to reflect date sorting. -->
<TITLE>
Mailing List Archive (by Date)
</TITLE>

<!--	Change threaded index title to reflect threading. -->
<TTITLE>
Mailing List Archive (Threaded)
</TTITLE>

<!--	Change format of Date Index listing. -->
<LiTemplate>
<LI><STRONG>$SUBJECT$</STRONG>,
<EM>$YYYYMMDD$, $FROMNAME$</EM>
</LI>
</LiTemplate>

<!--	Force plain text messages to wordwrap. -->
<MIMEargs>
text/plain;maxwidth=80
</MIMEargs>

For an explaination of these settings, read the MHonArc documentation on Resources. They are explained fairly well. You just have to
figure out which ones you want to change. Note that I could have put the "idxfname" and "nosaveresources" options in the resource
file instead of in the command line. Most resources are this way.





More information about the Mailman-Users mailing list