Hi
testeur via Mailman-users writes:
I have installed mailman3 and i want to administrate it with rest api,
Do you really mean REST API, or do you mean CLI?
i tryied with curl to manage it, i can see if there is a pending message with :
curl --user restadmin:restpass http://localhost:8001/3.1/lists/ml@domain.tld/held/count|| python3 -m json.tool|
This is a lot easier using "mailman shell" if you want to use CLI, or a Python program using mailmanclient if you really want to use the REST API for some reason.
This is explained here: https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/model/docs/... but it's likely to be pretty rough going for you because it's really oriented to programmers studying to be Mailman developers, not for admins.
but� how to delete all held messages ? is it possible in one time ?
No, you need to fetch the list and then loop over the messages.
And how to select a specific message to discard /accept / defer ?
do i have to use a POST ?
This is all explained here: https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/p...
Steve