Dear Mark, dear list, in Menu "Mass Operations / Mass Subscription" I have set the default value for checkbox "Invitation" in file </usr/lib/python3/dist-packages/postorius/forms/list_forms.py> (on Debian 12) as you had suggested: invitation = forms.BooleanField( label=_('Invitation'), initial=True, required=False, help_text=_( 'If checked, the other checkboxes are ignored and the users will ' 'be sent an invitation to join the list and will be subscribed ' 'upon acceptance thereof.' ), widget=forms.CheckboxInput(), ) However, administrators of mailing lists on our Mailman3 demo system report that the invitation is still sent, even if they have deactivated the sending of the invitation via the “Invitation” checkbox. What have I done wrong? Best regards, Markus Am 20.09.24 um 09:05 schrieb Markus Grandpré:
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.
_______________________________________________ Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@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/...
This message sent to markus.grandpre@uni-konstanz.de
-- Markus Ludwig Grandpré Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung IT-Dienste Forschung und Lehre, B803, Tel: ++49 7531 88 4342