Great Circle Associates Majordomo-Users
(October 2003)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Converting Past Archives for Web
From: Richard Welty <rwelty @ suespammers . org>
Date: Mon, 20 Oct 2003 06:44:17 -0400 (EDT)
To: majordomo-users @ greatcircle . com
In-reply-to: <3.0.5.32.20031019223858.01466ab0@10.0.0.15>
References: <3.0.5.32.20031019223858.01466ab0@10.0.0.15>
Reply-to: majordomo-users @ greatcircle . com

On Sun, 19 Oct 2003 22:38:58 -0500 "Jack L. Stone" <jacks@sage-american.com> wrote:

> I have installed MHonArc for the purpose of providing web access to the MJ
> lists archives. I've figured out how to add the daily messages, but havn't
> found a good reference on how to convert the files now all packed together
> in the regular monthly archives back into a form that can be converted
> using the "mbox" format for MHonArc.

use formail (depends on procmail). the following script converts a
directory full of digests to mhonarc archives. you'll need to remove the +1
param from formail; it skips the first part (digest table of contents).

#!/bin/sh
#
for i in *
do
    echo "processing message " $i
    formail +1 -ds < $i > /tmp/intermediate
    /usr/local/bin/mhonarc -add -outdir ${1} -rcfile ${1}/resource_file /tmp/intermediate
    rm /tmp/intermediate
done

-- 
Richard Welty
rwelty@suespammers.org                                 Averill Park Networking
rwelty@averillpark.net           Unix, Linux, IP Network Engineering, Security
rwelty@krusty-motorsports.com                                     518-573-7592


References:
Indexed By Date Previous: Converting Past Archives for Web
From: "Jack L. Stone" <jacks@sage-american.com>
Next: Re: Having a mail loop problem
From: "Charlie Smith" <SmithCW@ldschurch.org>
Indexed By Thread Previous: Converting Past Archives for Web
From: "Jack L. Stone" <jacks@sage-american.com>
Next: Is majordomo the right application?
From: "Sose Canadian" <sose@mohawk.ca>

Google
 
Search Internet Search www.greatcircle.com