mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-18 06:11:49 -05:00
found another .decode that didn't include errors='ignore'
This commit is contained in:
parent
90fcb9973b
commit
f69f9a2027
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user