[Mailman-Users] About PostLimit.py again ( was :To restrict sending email messages per day)
eminmn at sysmatrix.net
Thu Aug 8 17:54:39 CEST 2013
Thanks for these pythons routines, Mark. Since I don't know much about the
language, I need some clarification on the part of the code between triple
quote marks (""") and also between the lines that have ----------- cut
-----. Are these constructs some kind of ad hoc python syntax extensions
for commenting out or do they need to be made invisible with prepended #
I would especially like to know whether it's possible to substitute
worldtime (gmt) in the places where localtime is referenced. This posting
throttling functionality is needed to make a mailman list correspond as
closely as possible to the functionality once offered by LISTSERV. Is the
part of the code between the cut marks only to be used if the globals M, L,
and PERIOD are to be set with list attributes via the extend.py file? Could
someone comment the code relating to the global PERIOD and localetime. For
my purposes PERIOD could be hardcoded to 24 hours and based on gmt. It
looks like the code at http://www.msapiro.net/scripts/PostLimit.py can't be
inserted as is into
Am I right about that?
Thanks in advance for any help,
On Sun, Jul 21, 2013 at 8:17 PM, Mark Sapiro <mark at msapiro.net> wrote:
> Mark Sapiro wrote:
> > 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.
> I have enhanced the script at the above locations to support a per
> member limit and/or a per list limit. I have also made it take
> parameters from list attributes if set there and provided a sample
> extend.py to enable it and set parameters for a list.
> Additionally, I have created a FAQ at <http://wiki.list.org/x/V4Hz> with
> this information.
> 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-Users