[Mailman-Users] Has anyone imported SmartList archives into Pipermail?

Phydeaux reb at taco.com
Fri Dec 15 16:16:46 CET 2000


At 09:59 PM 12/13/2000 -0500, Phydeaux wrote:
>Hi!
>
>I'm in the process of switching from SmartList to Mailman and I have a
>*boatload* of archives that I'd like to convert so they can be perused
>via Pipermail. I'm sure this has been done before so I figured I'd ask
>before reinventing the wheel.
>
>Failing a direct solution, what exactly does Pipermail use to construct
>the archives? I have all the individual messages I want archived.
>
>Suggestions cheerfully accepted! I'm using Mailman 2.0 by the way...

Well, after receiving no replies I reinvented the wheel (not too hard in
this case).  I figured I'd post the answer for anyone else to use, and so
it would be in the archives.

The SmartList archive feature numbers all of its stored messages. This
program simply cycles through each of these and appends them to one
big file. Once this is run, a simple "arch <listname> <mboxfilename>"
command will create the archive.

#!/usr/local/bin/perl
#
open (OUT, ">out.mbox") || die ("Error opening OUT $!\n");
#
foreach $i (1..2590) {
   open (IN, $i) || die ("Can't open infile $i  $!\n");
   print OUT <IN>;
   print OUT "\n";
   close (IN);
  print "$i ";
}
close(OUT);
print "\nDone!\n";
#
# END

I hope this helps someone...

reb





More information about the Mailman-Users mailing list