aboutsummaryrefslogtreecommitdiffstats
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
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)
-rwxr-xr-xMailman/ListAdmin.py3
-rw-r--r--NEWS5
2 files changed, 8 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
diff --git a/NEWS b/NEWS
index e4dcc5bb..3ddb680a 100644
--- a/NEWS
+++ b/NEWS
@@ -98,6 +98,11 @@ Here is a history of user visible changes to Mailman.
Bug Fixes and other patches
+ - 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)
+
- Fixed a possible CPU bound loop in OutgoingRunner if the attempt to
Connect to the SMTP server throws a socket.error. (LP: #966531)