<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<p>I've been working the last two days on integrating MHonArc with Mailman.
As I didn't find a proper FAQ or HOWTO entry about that, I searched the
list, found some related items, but not explicit or complete enough to
have me running the thing in 1,2,3. So I had to investigate myself and
the good thing is, it works fine now. As this question seems to come back
again and again in the list (also recently), I decided to post the results
of my investigation. Maybe it will help you saving some time, then mine
will definitely have been worth it.
<br>I've got RedHat 6.2, Mailman 2.0.5, MHonArc-2.4.5-1, I'm using MHonArc
resource files (*.mrc) which I didn't write myself (I'm not a MHonArc specialist
so please don't ask) and my purpose was to replace standard&nbsp; pipermail
archives by mhonarc ones and this in an automated way. Here are the steps
you have to cover:
<p>- put the following variables into $prefix/Mailman/mm_cfg.py (remember
never modifying variables directly into Defaults.py):
<p><tt>PUBLIC_ARCHIVE_URL&nbsp; = '/mhonarchive'</tt>
<br><tt>PRIVATE_ARCHIVE_URL&nbsp; = '/mhonarchive'</tt>
<br><tt>PUBLIC_EXTERNAL_ARCHIVER = '/usr/bin/mhonarc -add -outdir /var/mhonarc/archives/%(listname)s
>> /tmp/out_external_archiver'</tt>
<br><tt>PRIVATE_EXTERNAL_ARCHIVER = '/usr/bin/mhonarc -add -outdir /var/mhonarc/archives/%(listname)s
>> /tmp/out_external_archiver'</tt>
<p>where <tt>'/mhonarchive' </tt>is actually the Alias (in httpd.conf)
pointing to the place where I've put my MHonArc archive and <tt>/var/mhonarc/archives/
</tt>is
this place. Note that the MHonArc command line is a very basic one, simply
adding new mail from a Mailman mailbox to the corresponding MHonArc archive,
you may decide to add whatever option you need, I only redirected the output
of the command to a temp file in order to trace it.
<p>- ensure that the following variable is correctly set into $prefix/Mailman/Defaults.py:
<p><tt>ARCHIVE_TO_MBOX = 2</tt>
<p>Indeed I cannot guarantee that other values will work, this was the
default one in my file and it archives successfully to Mailman mailbox.
I must add that built-in mailman html archiving doesn't work any more although
it should if I believe the documentation notes. But I don't care as my
goal is just to replace them by MHonArc archives.
<p>- assuming you already have non empty Mailman mailboxes under $prefix/archives/private/
(which was my case), initialize your MHonARc archives with following command:
<p><tt>mhonarc -mbox $prefix/archives/private/yourmaillist.mbox/yourmaillist.mbox
-outdir /var/mhonarc/archives/yourmaillist -rcfile /var/mhonarc/archives/yourmaillist/main.mrc</tt>
<p>This also assumes that you first created the directories where you want
to put your MHonArc archives and that you copied the MHonArc resource files
into it (main.mrc..). I issued the command with the mailman uid and also
had the archive directories owned by mailman uid as to avoid permission
problems.
<p>That should do it (it did for me anyway). I noticed that the e-mail/password
authentication for private archives doesn't work, but as I don't need it
for the moment I didn't investigate further ;-)
<p>I hope this helps.
<br>&nbsp;
<p>--
<br>Thierry Jacquemart, IT System Administrator, S1 Belgium
<br>Kleine Kloosterstraat 23, B-1932 Sint-Stevens Woluwe
<br>Phone: +32 2 200.4465 - Fax: +32 2 200.4224
<br>E-mail: thierry.jacquemart@s1.com
<br>Visit us at <A HREF="http://www.s1.com/">http://www.s1.com/</A>
<br>&nbsp;</html>