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)