From 584595232c0e1962d4e4300a297e95a21d745b70 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 16 May 2017 17:56:30 +0200 Subject: [PATCH] one last exciting unicode fix --- screenless/bureau/mailroom/mailroom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/mailroom/mailroom.py b/screenless/bureau/mailroom/mailroom.py index bdc8f31..5724200 100644 --- a/screenless/bureau/mailroom/mailroom.py +++ b/screenless/bureau/mailroom/mailroom.py @@ -303,7 +303,7 @@ class MailRoom(Bureau): for msgid, data in resp.items(): #msg = self._make_msg_object(msgid, data) msg = Message() - shortcode = self._imap2shortcode(msgid).decode("utf-8") + shortcode = self._imap2shortcode(msgid) envelope = data[b"ENVELOPE"] msg.msgid = str(msgid)