I am trying to migrate a legacy mailing list to a new web forum software and was wondering if mailman has an export option or an API to get all lists, owners, members and membership types.
3 Answers
probably too late, but the list_members LISTNAME command (executed from a shell) will give you all the members of a list.
list_admins LISTNAME will give you the owners What do you mean by membership type? list_members does have an option to filter on digest vs non-digest members. I don't think there's a way to get the moderation flag without writing a script for use with withlist

- 6,291
- 2
- 16
- 3
This is really late as well, but I've been using this script for a while to get a mailing list's subscribers.
Like it says in the script, it uses the web interface to get all the members, which is quite handy since I don't have access to mailman's command line tools (shared hosting).
As it is right now, it'll only give you the members, but you can probably extend it to suit your needs.

- 623
- 7
- 13
-
I've tried the script (from the same location) and it returns 'Invalid password'. The password works in a browser. Mailman 2.1.14, python 2.6/2.7. Any ideas? – koniu Feb 03 '12 at 02:11
-
2I tried out that script and I was also getting "Invalid password" till I changed the ``member_url`` and ``options_url`` on (lines 284, 285 respectively) to use https instead of http (my mailman is served up via https). Hope that helps. – Anshuman Bhaduri Feb 04 '12 at 01:41
-
spot on. In the meantime I was very impatient and made my own script. – koniu Feb 04 '12 at 05:43
There is a couple of bolt on API plugins and packages implemented in PHP. PHP Mailman Interface

- 2,877
- 1
- 14
- 20