[Mailman-Users] max_message_size, how do I change behavior (reject, instead of hold for moderation) and/or notification message (when exceeded)
tanstaafl at libertytrek.org
Wed Feb 25 16:48:40 CET 2015
On 2/25/2015 10:21 AM, Mark Sapiro <mark at msapiro.net> wrote:
> It is possible you just modified the messages in the MessageTooBig class
> definition in Mailman/Handlers/Hold.py. The postheld.txt template is
> also involved in the notice to the user, but it is used for all held
> messages so it seems unlikely you changed that.
> You can reject the message rather than holding it, but that would
> require (further) modification to Mailman/Handlers/Hold.py.
Hmmm... ok, looks like I was mistaken, the notification is just the
standard one in Hold.py.
Here is the notification they get:
Your mail to 'List-Name' with the subject
Is being held until the list moderator can review it for approval.
The reason it is being held:
Message body is too big: 7908354 bytes with a limit of 256 KB
Either the message will get posted to the list, or you will receive
notification of the moderator's decision. If you would like to cancel
this posting, please visit the following URL:
But looking at the Handler, what I'd like for them to get is just the
last notification - see below: "Your message was too big; please trim it
to less than %(kb)d KB in size", but without the 'is being held until
the list moderator...' stuff...
It doesn't have to be rejected, I just want the sender to know that they
need to resend a smaller message.
Thanks for any suggestions...
More information about the Mailman-Users