Skip to content

Commit

Permalink
Fix HeaderParser parse bytes again
Browse files Browse the repository at this point in the history
  • Loading branch information
M3te0r committed May 5, 2022
1 parent 6571d06 commit fe6dfe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ikaaro/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit fe6dfe0

Please sign in to comment.