How to modify member information of mailman's maillist

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux
  • mailman

Issue

  • There are a large number of members in my mail list.
  • Is it possible to modify each member's attribute without using GUI?
  • Does mailman have a command line tool to edit member's configuration?

Resolution

  • withlist command is available to edit the mail list information.

[3.16. How do I assign a single password to all subscribers in a list?]
(https://wiki.list.org/DOC/How%20do%20I%20assign%20a%20single%20password%20to%20all%20subscribers%20in%20a%20list%3F)

Diagnostic Steps

Example

$ /usr/lib/mailman/bin/withlist -l testlist
>>> from Mailman import mm_cfg
>>> m.getMemberOption("test1@rhel7.example.com",mm_cfg.DontReceiveOwnPosts)
True
>>> m.setMemberOption("test1@rhel7.example.com",mm_cfg.DontReceiveOwnPosts,0)
>>> m.getMemberOption("test1@rhel7.example.com",mm_cfg.DontReceiveOwnPosts)
False
>>> m.Save()
>>> quit(

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments