Greetings again!
Is there a remote API I can use to manage a list? One of the lists I manage has 1800 or so users, the vast majority of which have never posted, and I need to remove them (preferably not one by one).
The list is meant to be actively used, so going forward I want to be able to unsubscribe anyone who hasn't posted in the last year.
Both of those would be much more nicely done with a python script on my computer if I had a means to communicate with the mm3 server remotely.
Any and all help appreciated!
-- ~Ethan~
On 8/4/21 10:44 AM, Ethan Furman wrote:
Greetings again!
Is there a remote API I can use to manage a list?
Mailman core's REST API is documented at <https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/r...>.
By default it listens only on localhost:8001 and requires authentication with user = restadmin and password = restpass but these are all settings in the webservice section of mailman.cfg. See <https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/config/schema.c...> for the settings and their defaults.
You could set
[webservice] hostname: 0.0.0.0 admin_pass: My_Secret
in mailman.cfg to have it listen for connects from anywhere and require a different password.
You'd also need to adjust some or all of the settings for
MAILMAN_REST_API_URL MAILMAN_REST_API_USER MAILMAN_REST_API_PASS
In your Django settings.
There is also <https://gitlab.com/mailman/lemme> however, that's only a skeleton and not useful as is.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Ethan Furman
-
Mark Sapiro