aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2015-02-13 10:41:28 -0800
committerMark Sapiro <mark@msapiro.net>2015-02-13 10:41:28 -0800
commit5ba57761e56781bad331d7832a30a50c59acabaa (patch)
tree4334ab40732c9291e6e156bc91178a7c8efb4489 /Mailman
parentf90f0411be35a6c6c88c86932a956df4c64b8358 (diff)
downloadmailman2-5ba57761e56781bad331d7832a30a50c59acabaa.tar.gz
mailman2-5ba57761e56781bad331d7832a30a50c59acabaa.tar.xz
mailman2-5ba57761e56781bad331d7832a30a50c59acabaa.zip
Because of privacy concerns with the 2.2 backport adding real name to
list rosters, this is controlled by a new ROSTER_DISPLAY_REALNAME setting that defaults to No.
Diffstat (limited to 'Mailman')
-rwxr-xr-xMailman/Defaults.py.in4
-rw-r--r--Mailman/HTMLFormatter.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index fc64a1a4..068a7dab 100755
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -141,6 +141,10 @@ HTML_TO_PLAIN_TEXT_COMMAND = '/usr/bin/lynx -dump %(filename)s'
# character that doesn't match this class.
ACCEPTABLE_LISTNAME_CHARACTERS = '[-+_.=a-z0-9]'
+# Shall the user's real names be displayed along with their email addresses
+# in list rosters? Defaults to No to preserve prior behavior.
+ROSTER_DISPLAY_REALNAME = No
+
#####
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py
index df22e5f2..901e7e58 100644
--- a/Mailman/HTMLFormatter.py
+++ b/Mailman/HTMLFormatter.py
@@ -91,7 +91,7 @@ class HTMLFormatter:
else:
showing = person
realname = Utils.uncanonstr(self.getMemberName(person), lang)
- if realname:
+ if realname and mm_cfg.ROSTER_DISPLAY_REALNAME:
showing += " (%s)" % Utils.websafe(realname)
got = Link(url, showing)
if self.getDeliveryStatus(person) <> MemberAdaptor.ENABLED: