------------------------------------------------------------ revno: 1240 committer: Mark Sapiro <msap...@value.net> branch nick: 2.2 timestamp: Sun 2013-03-10 20:29:45 -0700 message: Setting digest_size_threshhold to zero now means no digests will be sent based on size instead of a digest being sent with every post. modified: Mailman/Gui/Digest.py Mailman/Handlers/ToDigest.py NEWS
-- lp:mailman/2.2 https://code.launchpad.net/~mailman-coders/mailman/2.2 Your team Mailman Checkins is subscribed to branch lp:mailman/2.2. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/Gui/Digest.py' --- Mailman/Gui/Digest.py 2005-08-27 01:40:17 +0000 +++ Mailman/Gui/Digest.py 2013-03-11 03:29:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2013 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -56,8 +56,8 @@ _('When receiving digests, which format is default?')), ('digest_size_threshhold', mm_cfg.Number, 3, 0, - _('How big in Kb should a digest be before it gets sent out?')), - # Should offer a 'set to 0' for no size threshhold. + _('How big in Kb should a digest be before it gets sent out?' + ' 0 implies no maximum size.')), ('digest_send_periodic', mm_cfg.Radio, (_('No'), _('Yes')), 1, _('Should a digest be dispatched daily when the size threshold ' === modified file 'Mailman/Handlers/ToDigest.py' --- Mailman/Handlers/ToDigest.py 2011-11-11 20:54:05 +0000 +++ Mailman/Handlers/ToDigest.py 2013-03-11 03:29:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2011 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2013 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -86,7 +86,8 @@ # whether the size threshold has been reached. mboxfp.flush() size = os.path.getsize(mboxfile) - if size / 1024.0 >= mlist.digest_size_threshhold: + if (mlist.digest_size_threshhold > 0 and + size / 1024.0 >= mlist.digest_size_threshhold): # This is a bit of a kludge to get the mbox file moved to the digest # queue directory. try: === modified file 'NEWS' --- NEWS 2013-03-03 22:33:04 +0000 +++ NEWS 2013-03-11 03:29:45 +0000 @@ -53,6 +53,10 @@ New Features + - Setting digest_size_threshhold to zero now means no digests will be + sent based on size instead of a digest being sent with every post. + (LP: 558274) + - There is a new mm_cfg.py setting SUBSCRIBE_FORM_SECRET which will put a dynamically generated, hidden hash in the listinfo subscribe form and check it upon submission. Setting this will prevent automated processes
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org