21 Apr
2024
21 Apr
'24
6:15 p.m.
On 4/21/24 05:39, Danil Smirnov wrote:
What you can do is create a style in Python and make that the
default. In $SITE_PKGS/mailman/styles/default.py, append:
-------------------------------- cut here -------------------------------- from mailman.interfaces.archiver import ArchivePolicy
@public @implementer(IStyle) class ArchivesDefaultDisabledStyle(LegacyDefaultStyle):
"""The legacy default style with archiving disabled.""" name = 'archives-disabled' description = _('Ordinary discussion mailing list style,' ' with archiving disabled') def apply(self, mailing_list): super().apply(self, mailing_list)
The above line should be super().apply(mailing_list)
mlist.archive_policy = ArchivePolicy.never
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan