On 3/6/19 1:32 AM, kk@eco.cept.org wrote:
I am trying to find a way to set some parameters on the lists from a shell script. One specific parameter - max_message_size is not presented through the REST interface apparantly, and i found a way to set this with mailman shell command. Continuing this path i seem not to be able to set any other parameters like this: m.archive_policy = 'never'
You can't set archive_policy to a string. it has to be set to an attribute of mailman.interfaces.archiver.ArchivePolicy
i.e.
from mailman.interfaces.archiver import ArchivePolicy m.archive_policy = ArchivePolicy.never
See <https://mailman.readthedocs.io/en/latest/src/mailman/handlers/docs/archives....>
m.subject_prefix = '' m.dmarc_mitigate_action = 'munge_from'
Likewise dmarc_mitigate_action is an attribute of mailman.interfaces.mailinglist.DMARCMitigateAction
See <https://mailman.readthedocs.io/en/latest/src/mailman/handlers/docs/dmarc-mit...>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan