3.53. Additional web administration tools

Much of Mailman can be administered through the command-line tools (see 4.09 Summary of the mailman bin commands), however the web interface also provides access to some information and functions of the tools.

By writing a script to call the web interface, actions can be submitted and information can be parsed.

Using PHP

Mailman can also be administered using PHP or any other scripting languages by using the appropriate URL and passing it to an fopen wrapper function (such as file_get_contents) or using a third party library such as CURL.

For example:

In this example, the list of lists should be returned as HTML and put into $content as a string. You can then parse the list to display or use how you desire.

Other available functions via the web interface:

List lists:

List a member:



Set digest (you have to first subscribe them using URL above, then set digest):

To include real names in a subscribe, see How can I Mass Subscribe a list with real names. Also, if <email-address> in the Subscribe example above has spaces or other specials such as "John Q. Public" <jqp@example.com> you will need to urlencode() it.

In recent Mailman versions, <email-address> in the last example above must be encoded with '%40' instead of '@'. Also, if <email-address>_realname is not specified, the user's real name will be cleared and any of the <email-address>_[mod, hide, nomail, ack, notmetoo, nodupes, digest, plain] flags which are not explicitly set will be cleared.

Also see

MailmanWiki: DOC/Additional web administration tools (last edited 2016-05-19 02:30:09 by msapiro)