
On 8/5/25 10:20, Wikinaut wrote:
Dear Stephen,
this was nice but is not working for me.
I edited a file with name set_user_prefs (without .py) (to preset up user preference in the whole system):
It needs a .py extension.
I went to my (venv) and typed (in /opt/mailman)
$/opt/mailman: mailman withlist -r /opt/mailman/set_members_prefs or short mailman withlist -r set_members_prefs
and got ... ModuleNotFoundError: No module named '/opt/mailman/set_members_prefs'
Perhaps you know, what I did wrong, and can help with a working solution. I guess, it can help many users, too.
The file needs a .py extension and it needs to be in a directory containing an __init__.py file. If /opt/mailman/ is not such a directory, it is better to put your script in Mailman's bin directory, e.g. /opt/mailman/venv/bin/set_members_prefs.py
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan