From 1b2d947644aba2efaedaa2ce4afa77291194fa56 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 13 May 2012 19:12:16 -0700 Subject: 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) --- Mailman/ListAdmin.py | 3 +++ NEWS | 5 +++++ 2 files changed, 8 insertions(+) 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) -- cgit v1.2.3