summaryrefslogtreecommitdiff
path: root/Mailman/ListAdmin.py
diff options
context:
space:
mode:
authorbwarsaw2001-05-31 16:02:12 +0000
committerbwarsaw2001-05-31 16:02:12 +0000
commit0add6fdfa9852390980a7fdd9ba54e1689ff9b00 (patch)
treed52b13abdd6125a5b381f47f314966da3e1461a3 /Mailman/ListAdmin.py
parent89fda99010b59053752c5cf965ea7a04fa876c15 (diff)
downloadmailman-0add6fdfa9852390980a7fdd9ba54e1689ff9b00.tar.gz
mailman-0add6fdfa9852390980a7fdd9ba54e1689ff9b00.tar.zst
mailman-0add6fdfa9852390980a7fdd9ba54e1689ff9b00.zip
Diffstat (limited to 'Mailman/ListAdmin.py')
-rw-r--r--Mailman/ListAdmin.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index 1f47497a2..159fd9073 100644
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -317,25 +317,21 @@ class ListAdmin:
(self.real_name, addr))
# possibly notify the administrator in default list language
if self.admin_immed_notify:
- # This message must be in list's preferred language
- # FIXME
- os.environ['LANG'] = self.preferred_language
realname = self.real_name
subject = _(
'New subscription request to list %(realname)s from %(addr)s')
- # other messages to come, will be in user preferred language
- # FIXME
- os.environ['LANG'] = lang
text = Utils.maketext(
'subauth.txt',
{'username' : addr,
'listname' : self.real_name,
'hostname' : self.host_name,
'admindb_url': self.GetScriptURL('admindb', absolute=1),
- }, mlist=self)
- adminaddr = self.GetAdminEmail()
- msg = Message.UserNotification(adminaddr, adminaddr, subject, text)
- msg.send(self)
+ }, mlist=self, lang=lang)
+ # This message should appear to come from the <list>-owner so as
+ # to avoid any useless bounce processing.
+ owneraddr = self.GetOwnerEmail()
+ msg = Message.UserNotification(owneraddr, owneraddr, subject, text)
+ msg.send(self, **{'tomoderators': 1})
def __handlesubscription(self, record, value, comment):
stime, addr, password, digest, lang = record