Skip to content

Commit

Permalink
Fix HeaderParser parse bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
M3te0r committed May 5, 2022
1 parent 93cac2a commit 6571d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ikaaro/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def get_names():
# 3. Send message
try:
message = spool.open(name).read()
headers = HeaderParser().parsestr(message)
headers = HeaderParser().parse(message)
subject = headers['subject']
from_addr = headers['from']
to_addr = headers['to']
Expand Down

0 comments on commit 6571d06

Please sign in to comment.