On 6/23/25 08:03, Markus Grandpré wrote:
Dear list,
currently, when I create a new mailing list with MM3 the value for
"Archive policy" is always set to "Public archives". I'd like to change
the default value for "Archive policy" to "Do not archive this list".
How can I do this? In Debian 12 I find in
</usr/lib/python3/dist-packages/postorius/forms/list_forms.py>:
...
but have no idea how to change the settings here. Your help is very
appreciated.
Are you creating the list in Postorius. If so, you have a choice for
list style. Currently those choices are:
```
Announce only mailing list style.
Ordinary discussion mailing list style.
Discussion mailing list style with private archives.
```
There is currently no style for a list without archives, but you can
implement one. See the thread at
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/Q6QVDWCY3MXPGWEIDWZ277SS3FPJCUVT/
for hints on how to do this with a plugin.
Alternatively, you can do it with a patch like:
```
--- a/src/mailman/styles/default.py
+++ b/src/mailman/styles/default.py
@@ -18,6 +18,7 @@
"""Application of list styles to new and existing lists."""
from mailman.core.i18n import _
+from mailman.interfaces.archiver import ArchivePolicy
from mailman.interfaces.styles import IStyle
from mailman.styles.base import (
Announcement,
@@ -91,3 +92,25 @@ class PrivateDefaultStyle(
Private.apply(self, mailing_list)
Discussion.apply(self, mailing_list)
Moderation.apply(self, mailing_list)
+
+
+@public
+@implementer(IStyle)
+class PublicNoArchiveStyle(
+
+ Identity, BasicOperation, Bounces, Public, Discussion, Moderation):
+
+ """The legacy default style with no archives."""
+
+ name = 'legacy-default-no-archive'
+ description = _('Ordinary discussion mailing list style with no
archive.')
+
+ def apply(self, mailing_list):
+ """See `IStyle`."""
+ Identity.apply(self, mailing_list)
+ BasicOperation.apply(self, mailing_list)
+ Bounces.apply(self, mailing_list)
+ Public.apply(self, mailing_list)
+ Discussion.apply(self, mailing_list)
+ Moderation.apply(self, mailing_list)
+ mailing_list.archive_policy = ArchivePolicy.never
```
If you are creating lists from the command line `mailman create`, there
is a --style-name option to specify the style.
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
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/CKSZK6ZVDIW562PT6XNLS33ER2OKY7YV/
This message sent to arch...@mail-archive.com