May 242006
#!/bin/sh -x # Use ls2mail to convert a LISTSERV(R) list archive to a UNIX mbox # Then use Aid4Mail to convert the mbox to?whatever you wish. It # took under half an hour for me to convert a decade’s worth of around # 50 lists into a single Outlook .pst file. Quite handy. # SRCDIR is where the LISTSERV .LOG files are located SRCDIR=’/home/me/LISTSERV’ DSTDIR=’/home/me/other’ cd $SRCDIR for i in LISTONE LISTTWO LISTTHREE; do # concatenate archives sequentially. # if you have lists from the 80’s add a .LOG8* line… cat $SRCDIR/$i.LOG9* >> $DSTDIR/$i cat $SRCDIR/$i.LOG0* >> $DSTDIR/$i # my LISTSERV install ran on Windows. # this strips carriage returns (0×15) at the end of line. perl -i -p -e ’s/\r$//’ $DSTDIR/$i # now that a list’s archives are in one file, convert it to an mbox cat $DSTDIR/$i | ./ls2mail.pl > $DSTDIR/$i.mbox done # here you should end up with $DSTDIR/(LISTONE|LISTTWO|LISTTHREE).mbox # Again, just use Aid4Mail to convert it from there to whatever you wish. # http://homepages.tesco.net/J.deBoynePollard/FGA/mail-mbox-formats.html # http://hypermail-project.org/archive/99/12/1216.html # http://www.aid4mail.com/
Sorry, the comment form is closed at this time.