[Bug 1946272] [NEW] make find_member support --moderators option (patch supplied)
Public bug reported: We run many, many mailing lists via Mailman 2.1, because we are a Red Hat Enterprise Linux shop and Red Hat ships Mailman 2.1 for all current versions of RHEL. Whenever a user leaves our organization, we need the ability to identify all lists for which the user was a subscriber, owner, or moderator, and take appropriate action (e.g., remove the user as a subscriber, or transfer ownership of the list to another individual). The find_member program is helpful in searching lists, but as shipped it does not have the ability to search for target email addresses as list moderators. This is functionality we need, and we do not know any other way to obtain that information. So, we added a --moderators option to find_members. We've been using this patch locally literally for years. We would like Red Hat to accept this patch in their Mailman 2.1 packages for RHEL8, but Red Hat has a fairly strict policy of not patching software they package for RHEL unless upstream has accepted the patch. We don't care if this patch ever makes it into a Mailman 2.1.XX release, but would you please accept the patch, so that we can then ask Red Hat to include it in their Mailman 2.1 packages that they ship for RHEL8? Thank you for your consideration. ** Affects: mailman Importance: Undecided Status: New ** Patch added: "patch for find_member to take --moderators option" https://bugs.launchpad.net/bugs/1946272/+attachment/5531145/+files/mailman-2... -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1946272 Title: make find_member support --moderators option (patch supplied) To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1946272/+subscriptions
There is already bin/list_owners $ bin/list_owners -h List the owners of a mailing list, or all mailing lists. Usage: bin/list_owners [options] [listname ...] Options: -w / --with-listnames Group the owners by list names and include the list names in the output. Otherwise, the owners will be sorted and uniquified based on the email address. -m / --moderators Include the list moderators in the output. -h / --help Print this help message and exit. listname Print the owners of the specified lists. More than one can appear after the options. If there are no listnames provided, the owners of all the lists will be displayed. You can grep the result of `bin/list_owners -wm` for your user. I know this is not as convenient as your patch, and I'm sorry, but Mailman 2.1 has been declared end of life and no new features are being accepted. See https://mail.python.org/archives/list/mailman- announce@python.org/message/BLQ75U2RTMXKQDM4VUSZUQWSSQ2KE2R6/ -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1946272 Title: make find_member support --moderators option (patch supplied) To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1946272/+subscriptions
Thanks for the suggested work-arounds. The folks who process user account terminations aren't necessarily the most savvy when it comes to Unix command lines, which is why we prefer to patch find_members to act as a one-stop shop (so to speak), but I will reach out to those folks and ask if this is a reasonable thing to do. If Red Hat moves to Mailman 3 for RHEL9 (instead of dropping it entirely, as they are threatening to do), I may resubmit this patch for Mailman 3 (if this capability wasn't already added to find_member in Mailman 3). But since we have not touched Mailman 3 yet, I have no way to test the changes. Feel free to close. -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1946272 Title: make find_member support --moderators option (patch supplied) To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1946272/+subscriptions
You could always make a shell script in say bin/find_owner like #! /bin/bash if [ $# -ne 1 ]; then echo Usage: $0 pattern echo where pattern is a regular expression to match exit 1 fi /path/to/bin/list_owners -wm|grep -P "^[^\t]|$1" for your less savvy folks. And for MM 3, the `mailman findmember` command does what you want. $ bin/mailman findmember -h Usage: mailman findmember [OPTIONS] PATTERN Display all memberships for a user or users with address matching a pattern. Options: -r, --role [all|owner|moderator|nonmember|member|administrator] Display only memberships with the given role. If not given, 'all' role, i.e. all roles, is the default. -h, --help Show this message and exit. ** Changed in: mailman Importance: Undecided => Wishlist ** Changed in: mailman Status: New => Won't Fix -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1946272 Title: make find_member support --moderators option (patch supplied) To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1946272/+subscriptions
participants (2)
-
James Ralston
-
Mark Sapiro