actions/PostMessage.py | raw changeset files shortlog |
1.1 --- a/actions/PostMessage.py Fri Jun 14 01:26:44 2013 +0200 1.2 +++ b/actions/PostMessage.py Fri Jun 14 01:27:02 2013 +0200 1.3 @@ -70,7 +70,8 @@ 1.4 mimetype = part.get_content_type() 1.5 encoding = part.get_content_charset() 1.6 if mimetype == "text/moin": 1.7 - body.append(part.get_payload()) 1.8 + payload = part.get_payload(decode=True) 1.9 + body.append(encoding and unicode(payload, encoding) or payload) 1.10 if replace: 1.11 break 1.12