--- Mailman/Handlers/Hold.py 2008-06-23 10:43:21.000000000 -0700 +++ Mailman/Handlers/Hold.py 2010-02-22 10:18:56.812500000 -0800 @@ -172,7 +172,7 @@ # no return # # Is the message too big? - if mlist.max_message_size > 0: + if hasattr(mm_cfg, 'MAX_MESSAGE_SIZE'): bodylen = 0 for line in email.Iterators.body_line_iterator(msg): bodylen += len(line) @@ -181,9 +181,9 @@ bodylen += len(part.preamble) if part.epilogue: bodylen += len(part.epilogue) - if bodylen/1024.0 > mlist.max_message_size: - hold_for_approval(mlist, msg, msgdata, - MessageTooBig(bodylen, mlist.max_message_size)) + if bodylen/1024.0 > mm_cfg.MAX_MESSAGE_SIZE: + err = MessageTooBig(bodylen, mm_cfg.MAX_MESSAGE_SIZE) + raise Errors.RejectMessage, err.reason_notice() # no return # # Are we gatewaying to a moderated newsgroup and is this list the