1.1 --- a/actions/FetchMessages.py Fri Jun 14 01:26:44 2013 +0200
1.2 +++ b/actions/FetchMessages.py Fri Jun 14 01:27:02 2013 +0200
1.3 @@ -39,7 +39,7 @@
1.4
1.5 # Obtain commands from the payload, returning a collection of messages.
1.6
1.7 - commands = content.get_payload()
1.8 + commands = content.get_payload(decode=True)
1.9
1.10 # Build a container for the responses.
1.11
2.1 --- a/actions/PostMessage.py Fri Jun 14 01:26:44 2013 +0200
2.2 +++ b/actions/PostMessage.py Fri Jun 14 01:27:02 2013 +0200
2.3 @@ -70,7 +70,8 @@
2.4 mimetype = part.get_content_type()
2.5 encoding = part.get_content_charset()
2.6 if mimetype == "text/moin":
2.7 - body.append(part.get_payload())
2.8 + payload = part.get_payload(decode=True)
2.9 + body.append(encoding and unicode(payload, encoding) or payload)
2.10 if replace:
2.11 break
2.12