January 10th, 2005

fun with transferring mailman mailing lists

Our apcauce.org host doesn't have budget to host and be secretariat for APCAUCE anymore, so I'm working on moving the lists and website and domain to my server. Since the old site and new both use mailman, I just got the raw files for the lists and figured I could just plop them in place and then tweak a few things.

But of course, it's not that easy. If you have to change the list name or the domain name or the base url, it's a bit tricky.

So here's some tricks on how to do this on your own should you need to. First copy the config.pck for the list from the old site into the new mailman installation into lists/listname/config.pck. If you are changing the listname, this is the first place you need to use the new name. If you aren't changing any of the above stuff then you should be good to go and can load up the admin interface. You probably want to use the site password to login and then change the list password. If for some reason you don't have the site password, you can get the list password by running dumpdb on the config.pck file.

If you are changing too much stuff to make it easy, you'll want to use the config_list command to get a text copy of (most of) the config, manually edit it, then reload the changes into config.pck. Basically:

config_list -o config.txt listname

Edit config.txt:

1) If you changed the list name, change to the new name in the variable real_name
2) If you changed the host name, change to the new host name in the variable host_name
3) If you changed the host name or the base url, you will need to change that. But config_list doesn't output this part of the config so you'll have to add it manually such as:
web_page_url = 'http://site.com/mailman/'

You also might want to change the list owner and other stuff now if you find editing text files easier.

Then restore the new config to the actual list config:

config_list -i config.txt listname

If you set web_page_url it will complain about it but it will actually set it.

If you did it all ok then you should now be able to go to the admin interface and things will work.

You also want to restore the archives and regenerate the web archives (if you use this):

Copy from old site archives/private/listname.mbox/listname.mbox
If you are changing the list name remember to change it here too. Don't worry about copying the web archives, as it's best just to regenerate them.

Now generate the new web archives by running "arch listname"

Last task is to update the aliases file. Run genaliases and it'll dump out all the aliases entries for all your lists. Use grep to pull out just the list you transferred and then update your aliases file, usually /etc/aliases or /etc/mail/aliases and then run newaliases if applicable to your mailer.

That should be all there is to it.

brownies attempt 2

For those who are used to western style kitchens, you'd be surprised to know that Taiwanese kitchens rarely include an oven, other than the microwave or toaster variety. This makes it hard to do any baking. So a couple of weeks ago, Daiichi (泰一電氣) had a fairly good TECO (東元) electric oven on sale. By western standards it's still pretty tiny, but just big enough to do some real baking in. So the first thing I do is whip up a batch of brownies from scratch. Unfortunately the top came out slightly singed on the first batch. I figured it was because the oven is so small that the top heating element is too close. The oven has a switch to select whether to use the top heating element, bottom, or both, and I had use both the first time.

So last night we had a family dinner so I made brownies again. This time I was going to set it to use just the bottom heating element so the top wouldn't get overdone. Unfortunately I screwed up and instead set it to use only the top heating element. And when I cut into the 'finished' brownies I discovered that the bottom half was uncooked. To salvage things I cut away the unfinished bottom part, reformed it into the pan and recooked it, but it was a little uneven because of the recooking. So hopefully attempt 3 will go better.