1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-09-20 12:16:38 -04:00

found another .decode that didn't include errors='ignore'

This commit is contained in:
Craig Lamparter 2020-12-08 17:07:23 -08:00
parent 90fcb9973b
commit f69f9a2027

View File

@ -153,7 +153,7 @@ def parse_email(msgid, data, server):
from_addr = "noaddr"
LOG.debug("Got a message from '{}'".format(from_addr))
m = server.fetch([msgid], ['RFC822'])
msg = email.message_from_string(m[msgid][b'RFC822'].decode())
msg = email.message_from_string(m[msgid][b'RFC822'].decode(errors='ignore'))
if msg.is_multipart():
text = ""
html = None