aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/ListAdmin.py
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2012-05-13 19:12:16 -0700
committerMark Sapiro <msapiro@value.net>2012-05-13 19:12:16 -0700
commit1b2d947644aba2efaedaa2ce4afa77291194fa56 (patch)
tree051234804f516a63679ff17d31a046f7b798008c /Mailman/ListAdmin.py
parentfd2bc66e56e733b20a99d637ad7bc8ec7bc73b3a (diff)
downloadmailman2-1b2d947644aba2efaedaa2ce4afa77291194fa56.tar.gz
mailman2-1b2d947644aba2efaedaa2ce4afa77291194fa56.tar.xz
mailman2-1b2d947644aba2efaedaa2ce4afa77291194fa56.zip
Fixed a bug that could send an admin notice of a held subscription with
the subject in the user's preferred language instead of the list's preferred language and possibly not properly RFC 2047 encoded. (LP: #998949)
Diffstat (limited to 'Mailman/ListAdmin.py')
-rwxr-xr-xMailman/ListAdmin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index 4a188057..af579331 100755
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -390,6 +390,7 @@ class ListAdmin:
self.internal_name(), addr)
# Possibly notify the administrator in default list language
if self.admin_immed_notify:
+ i18n.set_language(self.preferred_language)
realname = self.real_name
subject = _(
'New subscription request to list %(realname)s from %(addr)s')
@@ -406,6 +407,8 @@ class ListAdmin:
msg = Message.UserNotification(owneraddr, owneraddr, subject, text,
self.preferred_language)
msg.send(self, **{'tomoderators': 1})
+ # Restore the user's preferred language.
+ i18n.set_language(lang)
def __handlesubscription(self, record, value, comment):
stime, addr, fullname, password, digest, lang = record