mail.py
changeset 11012 739943455c9d
parent 10702 f94c812c3669
--- a/mail.py	Mon Dec 21 15:46:36 2015 +0100
+++ b/mail.py	Mon Dec 21 15:52:41 2015 +0100
@@ -69,7 +69,7 @@
     try:
         values, qualif = msgid.split('@')
         padding = len(values) % 4
-        values = b64decode(str(values + '='*padding), '.-')
+        values = b64decode(str(values + '='*padding), '.-').decode('ascii')
         values = dict(v.split('=') for v in values.split('&'))
         fromappid, host = qualif.split('.', 1)
     except Exception: