
On 2025-09-29 13:05:27 -0000 (-0000), Christian Schneider wrote: [...]
- list creation via command-line script with two/three parameters like: ./create-list --listname myfirst.list@lists.example.org --admin-email admin-user@example.org [--admin-name "Peter Rabbit"]
The create-list script itself should be a bash- or perl-script (I am not very familiar with python - SORRY ;-) ) I would like the scripts to trigger some curl-calls on the mailman server (from outside the mailman shell and even from outside the virtual environment) [...]
We're creating lists using Ansible to make calls to Mailman's REST API, but it should be trivial to translate this example to any scripting language of your choice:
https://opendev.org/opendev/system-config/src/commit/79fc523/playbooks/roles...
Hopefully that gets you on the right track, but if you do decide to delve into Python you'll have a lot more flexibility since the existing Mailman CLI is essentially a Python module.
Note that "activating" a venv is typically not necessary (I never do it), you just have to make sure to type the full path to executables in the bin directory of the venv when running them, or add that directory to PATH in your shell environment.
Jeremy Stanley