On 4/25/23 3:02 AM, Andrew Hodgson wrote:
Mark London wrote:
I added some email addresses manually to a mailing list and then removed them. But now I can't find how to totally remove them from mailman3. They show up in the Users list.
You may find this script useful: https://www.msapiro.net/scripts/clean_users.py
That script will only delete Django users and optionally the Mailman user corresponding to the deleted Django user. I think the OP wants to delete Mailman users that are not members of any lists even if there is no corresponding Django user. That script won't do that.
Mailman Users can be deleted from the Postorius Users view, but it's a
one at a time process, and there's no indication that the User has
memberships unless you first go to Manage
to check.
I will modify the script to enable deleting Mailman users with no memberships even if they aren't Django users and post here when it's done.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan