------------------------------------------------------------
revno: 1827
fixes bug: https://launchpad.net/bugs/1851442
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Fri 2019-11-08 13:51:55 -0800
message:
Fix possible UnicodeDecodeError in sending subscription confirmation.
modified:
Mailman/MailList.py
NEWS
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/MailList.py'
--- Mailman/MailList.py 2019-11-08 21:04:52 +0000
+++ Mailman/MailList.py 2019-11-08 21:51:55 +0000
@@ -969,8 +969,9 @@
cookie = self.pend_new(Pending.SUBSCRIPTION, userdesc)
# Send the user the confirmation mailback
if remote is None:
- by = remote = ''
+ oremote = by = remote = ''
else:
+ oremote = remote
by = ' ' + remote
remote = _(' from %(remote)s')
@@ -997,7 +998,7 @@
msg['Reply-To'] = self.GetRequestEmail(cookie)
# Is this confirmation a reply to an email subscribe from this
# address?
- if remote.lower().endswith(email.lower()):
+ if oremote.lower().endswith(email.lower()):
autosub = 'auto-replied'
else:
autosub = 'auto-generated'
=== modified file 'NEWS'
--- NEWS 2019-11-08 21:04:52 +0000
+++ NEWS 2019-11-08 21:51:55 +0000
@@ -74,6 +74,9 @@
- The paths.py module now extends sys.path with the result of
site.getsitepackages() if available. (LP: #1838866)
+ - A bug causing a UnicodeDecodeError in preparing to send the confirmation
+ request message to a new subscriber has been fixed. (LP: #1851442)
+
2.1.29 (24-Jul-2018)
Bug Fixes
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org