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/styles.html > 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/docs/intro.html 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 _______________________________________________ Mailman-users mailing list -- [email protected] To unsubscribe send an email to [email protected] https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/[email protected]/message/3CV2EVXFWOGS3UGCL5YQQEBSKOZJ3QU6/ This message sent to [email protected]
