summaryrefslogtreecommitdiff
path: root/modules/maillist.py
diff options
context:
space:
mode:
authorviega1998-06-11 14:36:06 +0000
committerviega1998-06-11 14:36:06 +0000
commit7aa44b730acf90e653980dc1010e7ad585dcef2f (patch)
treed1b1671a9156bec9708a9fe35c93bf44c5eef2d7 /modules/maillist.py
parent40eea7f5744a54eac3834f98471e53236c005bec (diff)
downloadmailman-7aa44b730acf90e653980dc1010e7ad585dcef2f.tar.gz
mailman-7aa44b730acf90e653980dc1010e7ad585dcef2f.tar.zst
mailman-7aa44b730acf90e653980dc1010e7ad585dcef2f.zip
Diffstat (limited to 'modules/maillist.py')
-rw-r--r--modules/maillist.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/maillist.py b/modules/maillist.py
index 13ef9c720..a0e366e84 100644
--- a/modules/maillist.py
+++ b/modules/maillist.py
@@ -157,6 +157,7 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
self.reminders_to_admins = mm_cfg.DEFAULT_REMINDERS_TO_ADMINS
self.bounce_matching_headers = \
mm_cfg.DEFAULT_BOUNCE_MATCHING_HEADERS
+ self.anonymous_list = 0
self.real_name = '%s%s' % (string.upper(self._internal_name[0]),
self._internal_name[1:])
self.description = ''
@@ -460,6 +461,10 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
" by escaping or bracketing it."
"<p> See also the <em>forbidden_posters</em> option for"
" a related mechanism."),
+ ('anonymous_list', mm_cfg.Radio, ('No', 'Yes'), 0,
+ 'Hide the sender of a message, replacing it with the list '
+ 'address (Removes From, Sender and Reply-To fields)'),
+
]
config_info['nondigest'] = [
@@ -837,7 +842,10 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
elif not re.match("(re:? *)?" + re.escape(self.subject_prefix),
subj, re.I):
msg.SetHeader('Subject', '%s%s' % (prefix, subj))
-
+ if self.anonymous_list:
+ del msg['reply-to']
+ del msg['sender']
+ msg.SetHeader('From', self.GetAdminEmail())
if self.digestable:
self.SaveForDigest(msg)
if self.archive: