In my lists there are no big changes. I just need to add one or two persons a year as choir members doesn't change too much.
I try to find out the parameters of the mailmanclient.Client
I guess the URL is the REST root url from the output of the mailman info
command
I tried to add the admin username and the password with which I log into the postorius page. Or the rest admin is a different one?
In [2]: mmc = mailmanclient.Client( ...: "http://localhost:8001/3.1/", ...: "admin", ...: "somepassword", ...: )
In [3]: mmc.get_list('korus')
But that gives me this error
/usr/lib/python3/dist-packages/mailmanclient/client.py in get_list(self, fqdn_listname)
354 :rtype: :class:MailingList
355 """
--> 356 response, content = self._connection.call(
357 'lists/{0}'.format(fqdn_listname))
358 return MailingList(self._connection, content['self_link'], content)
/usr/lib/python3/dist-packages/mailmanclient/restbase/connection.py in call(self, path, data, method) 125 error_msg = response.text 126 --> 127 raise HTTPError(url, response.status_code, 128 error_msg, response, None) 129 if len(response.content) == 0:
HTTPError: HTTP Error 401: REST API authorization failed