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 #
characters?

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

Mailman/Handlers/PostLimit.py
Am I right about that?



Thanks in advance for any help,

Ed

On Sun, Jul 21, 2013 at 8:17 PM, Mark Sapiro <m...@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 <m...@msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
>
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to