------------------------------------------------------------
revno: 1220
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Sun 2012-05-13 19:11:08 -0700
message:
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)
modified:
Mailman/ListAdmin.py
NEWS
--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2
Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/ListAdmin.py'
--- Mailman/ListAdmin.py 2011-11-30 00:47:02 +0000
+++ Mailman/ListAdmin.py 2012-05-14 02:11:08 +0000
@@ -390,6 +390,7 @@
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 @@
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
=== modified file 'NEWS'
--- NEWS 2012-03-27 22:26:36 +0000
+++ NEWS 2012-05-14 02:11:08 +0000
@@ -142,6 +142,11 @@
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)
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org