------------------------------------------------------------ revno: 1574 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Fri 2015-08-21 09:26:28 -0700 message: Implemented GLOBAL_BAN_LIST. modified: Mailman/Defaults.py.in Mailman/MailList.py NEWS
-- lp:mailman/2.1 https://code.launchpad.net/~mailman-coders/mailman/2.1 Your team Mailman Checkins is subscribed to branch lp:mailman/2.1. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Defaults.py.in' --- Mailman/Defaults.py.in 2015-03-27 21:12:16 +0000 +++ Mailman/Defaults.py.in 2015-08-21 16:26:28 +0000 @@ -131,6 +131,14 @@ # test. SUBSCRIBE_FORM_MIN_TIME = seconds(5) +# Installation wide ban list. This is a list, one entry per line, of email +# addresses and regexp patterns (beginning with ^) which are not allowed to +# subscribe to any lists in the installation. This supplements the individual +# list's ban_list. For example, to ban x...@aol.com and any @gmail.com address +# beginning with yyy, set +# GLOBAL_BAN_LIST = ['x...@aol.com', '^yyy.*@gmail.com'] +GLOBAL_BAN_LIST = [] + # Command that is used to convert text/html parts into plain text. This # should output results to standard output. %(filename)s will contain the # name of the temporary file that the program should operate on. === modified file 'Mailman/MailList.py' --- Mailman/MailList.py 2015-02-04 04:48:25 +0000 +++ Mailman/MailList.py 2015-08-21 16:26:28 +0000 @@ -1564,7 +1564,9 @@ """Returns matched entry in ban_list if email matches. Otherwise returns None. """ - return self.GetPattern(email, self.ban_list) + return (self.GetPattern(email, self.ban_list) or + self.GetPattern(email, mm_cfg.GLOBAL_BAN_LIST) + ) def HasAutoApprovedSender(self, sender): """Returns True and logs if sender matches address or pattern === modified file 'NEWS' --- NEWS 2015-08-18 21:58:02 +0000 +++ NEWS 2015-08-21 16:26:28 +0000 @@ -7,6 +7,12 @@ 2.1.21 (xx-xxx-xxxx) + New Features + + - There is now a mm_cfg.py setting GLOBAL_BAN_LIST which is like the + individual list's ban_list but applies globally to all subscribe + requests. See the description in Defaults.py for more details. + i18n - The Brazilian Portugese translation has been updated by Emerson Ribeiro
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org