
Wikinaut writes:
When I use "mailman create --style-name MYSTYLE LISTNAME", I suppose MYSTYLE must be defined before, as this cannot be read from a file.
When I use the code from https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/styles/docs... before, wil the new style be defined permanently? Or only in that shell, not permanently?
It only is defined for the life of that shell. That's why Mark suggests creating a plugin. See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/plugins/doc... https://gitlab.com/mailman/example-mailman-plugin # this implements a style
I this case I kindly ask developers for small script configureList.py which can be saved and invoked as a file.
You just copy the commands you invoke in "mailman shell" to a file, prefix them with "def function_with_the_same_name_as_the_file(mlist)", fix the indentation :-), and invoke it with "mailman withlist -r name_of_function -l name_of_list". I forget if the withlist script file has a .py extension or not, obviously the function doesn't.
There's actually no difference between "mailman withlist" and "mailman shell", "shell" is a trivial subclass of "withlist". Nothing except the name of the command is different.
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan