Hi,

I run a site where it is useful to have a small list of users
who should be able to email every list.  Rather than manually
adding them by hand each time I make a new list, it would be
nice to be able to define a value in mm_cfg.py that would get
set at create time.  The attached patch makes this a configurable
item and sets the default to an empty list (as it is now).

If you think this is useful functionality, feel free to include
this.  If not, I'll just throw it out there in case anyone else
has the same need and might find it useful.

This patch is against version 2.1.23.

-- 
Greg Veldman
IT Infrastructure Services, Purdue University
g...@purdue.edu | (765)-496-2456
--- Mailman/MailList.py.orig	2017-04-13 12:18:53.049633662 -0500
+++ Mailman/MailList.py	2017-04-13 12:19:16.384254607 -0500
@@ -405,7 +405,7 @@
             mm_cfg.DEFAULT_DMARC_WRAPPED_MESSAGE_TEXT)
         self.equivalent_domains = (
             mm_cfg.DEFAULT_EQUIVALENT_DOMAINS)
-        self.accept_these_nonmembers = []
+        self.accept_these_nonmembers = mm_cfg.DEFAULT_ACCEPT_THESE_NONMEMBERS
         self.hold_these_nonmembers = []
         self.reject_these_nonmembers = []
         self.discard_these_nonmembers = []
--- Mailman/Defaults.py.in.orig	2017-04-13 12:18:59.281799509 -0500
+++ Mailman/Defaults.py.in	2017-04-13 12:20:08.177632648 -0500
@@ -1493,6 +1493,9 @@
 DEFAULT_BOUNCE_NOTIFY_OWNER_ON_DISABLE = Yes
 DEFAULT_BOUNCE_NOTIFY_OWNER_ON_REMOVAL = Yes
 
+# Default list of nonmembers to accept posts from for newly-created lists
+DEFAULT_ACCEPT_THESE_NONMEMBERS = []
+
 
 
 #####
_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to