reason for breaching max_message_size is "N/A"
Hi.
Today I learned to things: The default max_message_size is 40kB. Messages larger than that are blocked (expected) with the reason "N/A" (not expected). The reason would be helpful to me as admin.
Also: Is there any way to set a server default for this as it is a bit of a hassle to change it from the command line for each new list. I can of course find where in the code to change but that seems the wrong way to me.
Cheers // David
On May 01, 2017, at 08:05 PM, David Krantz wrote:
Today I learned to things: The default max_message_size is 40kB. Messages larger than that are blocked (expected) with the reason "N/A" (not expected). The reason would be helpful to me as admin.
This would actually be a fairly easy fix. The MaximumSize rule in mailman/rules/max_size.py really just needs to set the msgdata's 'moderation_reason' key to whatever we want the text to read.
Also: Is there any way to set a server default for this as it is a bit of a hassle to change it from the command line for each new list. I can of course find where in the code to change but that seems the wrong way to me.
There's no server default, but the way to do it would be to create a style based on the legacy-default style which overrides the setting of mlist.max_message_size. There should be a way of doing this as a plugin site wide, without hacking the code, but I don't have the time to write up the details of that atm.
-Barry
participants (2)
-
Barry Warsaw
-
David Krantz