Thank you very much for your answer.

Best regards,
Markus

Am 19.09.24 um 22:03 schrieb Mark Sapiro:
On 9/19/24 05:46, Markus Grandpré wrote:
Dear list,

I would like to activate the invitation setting for all lists as default. In Mailman 2.1 I have done this in the file </etc/mailman/ mm_cfg.py>:


       DEFAULT_SUBSCRIBE_OR_INVITE = Yes


How can I do this in Mailman 3?

There is a draft merge request at https://gitlab.com/mailman/ postorius/-/merge_requests/930 which implements a framework for setting Postorius defaults and creates a setting to set the default for pre- verified on the mass subscription page. Once merged, this can easily be extended to provide a default for Invitation.

In the mean time, you can only do this by patching src/postorius/forms/ list_forms.py like
```
--- a/src/postorius/forms/list_forms.py
+++ b/src/postorius/forms/list_forms.py
@@ -1283,7 +1283,7 @@ class ListMassSubscription(forms.Form):

      invitation = forms.BooleanField(
          label=_('Invitation'),
-        initial=False,
+        initial=True,
          required=False,
          help_text=_(
             'If checked, the other checkboxes are ignored and the users will '
```
Can I also transfer other default values like:

...
DEFAULT_SERVER_LANGUAGE = 'en'
DEFAULT_SEND_REMINDERS = 1
DEFAULT_SUBSCRIBE_OR_INVITE = Yes
DEFAULT_PRIVATE_ROSTER = 2
DEFAULT_ARCHIVE = Off
DEFAULT_ARCHIVE_PRIVATE = 1
...

from the very same configuration file to Mailman 3? Is there a documentation of the default values for lists in Mailman 3?

This is done by creating a list style with the desired defaults. See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/styles/ docs/styles.html for documentation of styles and see https://gitlab.com/ mailman/example-mailman-plugin for an example of creating a plugin in Mailman core to make a persistent style.

There is no specific doc for the list settings. You need to look at https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/styles/ base.py for the various settings and https://gitlab.com/mailman/ mailman/-/blob/master/src/mailman/styles/default.py to see which default classes are applied for various styles.


--
Markus Ludwig Grandpré
Universität Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abteilung IT-Dienste Forschung und Lehre,
B803, Tel: ++49 7531 88 4342

Attachment: smime.p7s
Description: Kryptografische S/MIME-Signatur

_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/EHBQHSMZ6DCJC5TWZNA2CHAVGSUOEZ4O/

This message sent to arch...@mail-archive.com

Reply via email to