Re: [Mailman-Users] Check message size before moderation status?

2019-12-05 Thread Mark Sapiro
On 12/5/19 8:57 AM, David Gibbs via Mailman-Users wrote:
> Folks:
> 
> I want to adjust my MM install so that it will check the message size
> before a subscribers moderation status.
> 
> Would this be the appropriate change to mm_cfg.py?
> 
> GLOBAL_PIPELINE.remove('Moderate')
> GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('Emergency'), 'Moderate')


That would move Moderate after Hold, MimeDel and Scrubber. I.e., member
moderation and non-member actions would be deferred until after
miscellaneous holds, content filtering and non-digest scrubbing. If
that's what you want, the above would do it. However, what you stated in
words was you want 'too big' before moderation. I would do that with

GLOBAL_PIPELINE.remove('Hold')
GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('Moderate'), 'Hold')

which would put the miscellaneous holds before moderation and non-member
checks.

As an aside, I find this to be useful:

#
# 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 The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
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


[Mailman-Users] Check message size before moderation status?

2019-12-05 Thread David Gibbs via Mailman-Users
Folks:

I want to adjust my MM install so that it will check the message size
before a subscribers moderation status.

Would this be the appropriate change to mm_cfg.py?

GLOBAL_PIPELINE.remove('Moderate')
GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('Emergency'), 'Moderate')

Thanks!

david
-- 
IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding in the American Diabetes Association's Tour de Cure to
raise money for diabetes research, education, advocacy, and awareness.
You can make a tax-deductible donation to my ride by visiting
https://mideml.diabetessucks.net.

You can see where my donations come from by visiting my interactive
donation map ... https://mideml.diabetessucks.net/map (it's a geeky
thing).

I may have diabetes, but diabetes doesn't have me!
--
Mailman-Users mailing list Mailman-Users@python.org
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