[Mailman-Developers] Sequence of steps?

Mark Sapiro mark at msapiro.net
Mon Aug 29 20:46:03 EDT 2016


On 08/29/2016 09:00 AM, Roy Harvey wrote:

> 3) Messages with elaborate formatting, but little text are often larger than 10KB, so they are held for review.  That means the test for size comes BEFORE the message is "cleaned up" and reduced to simple text.
> My suggestion is to change the sequence of steps, so that the size filter is applied AFTER the message has been converted to plain text.


Yes, I agree that this is a problem, but it is easily configurable.

Here's what I've had in mm_cfg.py to do this on my production site for a
long time

#
# Put MimeDel ahead of Hold so "too big" is based on content filtered
# message.
#
GLOBAL_PIPELINE.remove('MimeDel')
GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('Hold'), 'MimeDel')
#

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Developers mailing list