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 memb开发者_如何转开发ership types.
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
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.
There is a couple of bolt on API plugins and packages implemented in PHP. PHP Mailman Interface
精彩评论