diff options
author | Mark Sapiro <msapiro@value.net> | 2010-12-04 13:19:49 -0800 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2010-12-04 13:19:49 -0800 |
commit | db33278a21b08a9f0f19963d133b5f0b878b3a1a (patch) | |
tree | 3a5c1311969ab328aad361a75808bd11e25d36a7 /Mailman/MailList.py | |
parent | 9483387a23b7dc01f33d95efcbc80e78e4b7479b (diff) | |
download | mailman2-db33278a21b08a9f0f19963d133b5f0b878b3a1a.tar.gz mailman2-db33278a21b08a9f0f19963d133b5f0b878b3a1a.tar.xz mailman2-db33278a21b08a9f0f19963d133b5f0b878b3a1a.zip |
- Fixed a problem where an emailed command in the Subject: header with a
non-ascii l10n of an 'Re:' prefix is ignored. Bug #685261.
- Fixed a problem with approving a post by email when the body of the
approval mail is base64 encoded. Bug #677115.
Diffstat (limited to '')
-rw-r--r-- | Mailman/MailList.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 45ce6f09..a7efd986 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1258,7 +1258,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, except IndexError: subpart = None if subpart: - s = StringIO(subpart.get_payload()) + s = StringIO(subpart.get_payload(decode=True)) while True: line = s.readline() if not line: @@ -1267,8 +1267,8 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, continue i = line.find(':') if i > 0: - if (line[:i].lower() == 'approve' or - line[:i].lower() == 'approved'): + if (line[:i].strip().lower() == 'approve' or + line[:i].strip().lower() == 'approved'): # then approved = line[i+1:].strip() break |