Handle multipart types that aren't
This commit is contained in:
parent
b053ab454f
commit
45848a73ae
2
mbox2web
2
mbox2web
|
@ -93,7 +93,7 @@ def render_body(msg):
|
||||||
parts = msg.get_payload()
|
parts = msg.get_payload()
|
||||||
if type(parts) == str:
|
if type(parts) == str:
|
||||||
# mislabelled, assume text/plain
|
# mislabelled, assume text/plain
|
||||||
raise NotImplementedError()
|
return render_text_plain(msg)
|
||||||
partshtml = []
|
partshtml = []
|
||||||
for part in msg.get_payload():
|
for part in msg.get_payload():
|
||||||
partshtml.append(render_body(part))
|
partshtml.append(render_body(part))
|
||||||
|
|
Loading…
Reference in New Issue