On 02/25/2015 05:38 AM, Tanstaafl wrote:
> 
> I have some lists that have a max_size set, and when someone sends an
> email that exceeds this size, it gets held for moderation, and the
> sender gets a notification of this, but it is a custom one that I wrote
> myself.
> 
> Now, I'd like to change this behavior - I want to REJECT these messages
> - but can't for the life of me figure out how to do this, or at the very
> least , change the notification text to inform them that their message
> will be discarded, as opposed to 'eventually dealt with'...


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.

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to