mirror of
https://github.com/craigerl/aprsd.git
synced 2025-06-24 21:15:18 -04: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"
|
from_addr = "noaddr"
|
||||||
LOG.debug("Got a message from '{}'".format(from_addr))
|
LOG.debug("Got a message from '{}'".format(from_addr))
|
||||||
m = server.fetch([msgid], ['RFC822'])
|
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():
|
if msg.is_multipart():
|
||||||
text = ""
|
text = ""
|
||||||
html = None
|
html = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user