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:
|
|