diff --git a/ikaaro/server.py b/ikaaro/server.py index eaeb43c2..b7228ed2 100755 --- a/ikaaro/server.py +++ b/ikaaro/server.py @@ -796,8 +796,8 @@ def get_names(): # 3. Send message try: - message = spool.open(name).read() - headers = HeaderParser().parse(message) + message = spool.open(name, mode="r", text=True).read() + headers = HeaderParser().parsestr(message) subject = headers['subject'] from_addr = headers['from'] to_addr = headers['to']