set a new default for max_message_size
Hi MM Community,
I guess Mark can answer this question in a split second.
We want another default than 40kb for the max_message_size. I know you can change it with the mailman shell or with postorius. But we want to skip this part an set the default to 4000kb for instance.
I read about the max_message_size in this thread from 2020 https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
According to the answer of Mark you can change the "/usr/lib/python3/dist-packages/mailman/styles/base.py" - mlist.max_message_size. Now time went by, is there a possibility to use the mailman.cfg to set a new default?
Cheers and thanks in advance!
On 4/22/22 12:28, Paul Paulchen wrote:
According to the answer of Mark you can change the "/usr/lib/python3/dist-packages/mailman/styles/base.py" - mlist.max_message_size. Now time went by, is there a possibility to use the mailman.cfg to set a new default?
No. It still is not configurable except by patching or creating a new style, see https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/styles/docs...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Apr 22, 2022, at 13:09, Mark Sapiro <mark@msapiro.net> wrote:
On 4/22/22 12:28, Paul Paulchen wrote:
According to the answer of Mark you can change the "/usr/lib/python3/dist-packages/mailman/styles/base.py" - mlist.max_message_size. Now time went by, is there a possibility to use the mailman.cfg to set a new default?
No. It still is not configurable except by patching or creating a new style, see https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/styles/docs...
It is however possible to create new Styles using Mailman plugins, without having to patch Mailman.
We have an example style that demonstrates how to do that:
https://gitlab.com/mailman/example-mailman-plugin/-/blob/master/example_mail...
The repo’s README has more details on how to create and install the plugin.
There is more documentation about plugins in Mailman Core’s docs:
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/plugins/doc...
-- thanks, Abhilash Raj (maxking)
参加者 (3)
-
Abhilash Raj
-
Mark Sapiro
-
Paul Paulchen