[Mailman-Users] Changing list name - any scripts or utilities?

Heather J. Lubinsky heather at pcgal.com
Thu Mar 6 22:03:23 CET 2003


Thanks!!! The perl script works!
I am just learning perl and all of this stuff so I didn't have a clue how to
do a script to change something in the files.
You have now cut my job down from over 1 hour a list to about 10 minutes a
list.

Thank you!

Heather


From: Todd
Subject: Re: [Mailman-Users] Changing list name - any scripts or utilities?
Date: Wed, 05 Mar 2003 14:06:28 -0800



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Heather J. Lubinsky wrote:
> The only thing it doesn't seem to change is the "more info on this list"
> link

I just tried this and it worked fine for me.  I'll detail the steps I took
and perhaps you'll notice something you have done differently that would
account for the different behavior you're getting.

$ ~mailman/bin/newlist newname [EMAIL PROTECTED] password
$ cd ~mailman/archives/private
$ cp oldname.mbox/oldname.mbox newname.mbox/newname.mbox
$ ~mailman/bin/arch newname

I then checked the list archive page and the link appears to be correct.

> Anyone have any ideas how to change the "more info on this list" link
other
> than edited EVERY html archive file?

Even this wouldn't be a big deal.  You could use a quick perl command to do
this:

$ cd ~mailman/archives/private/newname
$ perl -pi -e 's|listinfo/oldname|listinfo/newname|g' `find . -name
'*.html'`

I don't know though if you do this whether or not subsequent archives will
get created right or not.  Something like the method above would be better.

Of course, it would be handy to wrap all of this into a quick script to
rename a list.  Surely someone else has already done this.  Anyone have a
pointer to the archives where this might have already been answered? :)

- --
Todd              OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
============================================================================
Relying on government to protect your privacy is like asking a peeping tom
to install your window blinds.
    -- John Barlow, co-founder of EFF




More information about the Mailman-Users mailing list