[Mailman-Users] To restrict sending email messages per day

Mark Sapiro mark at msapiro.net
Sun Jul 21 06:35:41 CEST 2013


On 07/15/2013 08:18 PM, Stephen J. Turnbull wrote:
> 
> I'll think about writing a "PosterThrottle" handler to implement your
> requirements, but it will take a week or two.


Today was a slow day ;)

See <http://www.msapiro.net/scripts/PostLimit.py> (mirrored at
<http://fog.ccsf.cc.ca.us/~msapiro/scripts/PostLimit.py>)for a script
that limits the number of posts from a member to a list either per
calendar day or a configurable period of hours.

It could be made lots fancier with the limit and time period being list
attributes or mm_cfg variables instead of hard coded and options to hold
rather than reject, but it will work.

The post at
<http://mail.python.org/pipermail/mailman-users/2013-June/075342.html>
had a similar request plus a per list limit. A per list limit could
easily be added. It's the same thing except all post times are kept for
the list instead of separately by poster. The handler could be easily
modified to do both. Maybe on the next slow day ;)

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/mailman-users/attachments/20130720/0795b402/attachment.pgp>


More information about the Mailman-Users mailing list