[New-bugs-announce] [issue42054] email message get_content throws KeyError for content main types font and model
Mark Sapiro
report at bugs.python.org
Fri Oct 16 15:24:02 EDT 2020
New submission from Mark Sapiro <mark at msapiro.net>:
With Policy = email.policy.default, there are handlers for get_content() only for content types 'text', 'audio', 'image', 'video', 'application', 'message/rfc822', 'message/external-body' and 'message'. While these are the only main types listed in RFC 6838, RFC 8081 adds 'font' and RFC 2077 defines 'model' there are several registered 'font' and 'model' types at https://www.iana.org/assignments/media-types/media-types.xhtml
It would be good if get_content() returned content, even if only raw bytes, for those types.
----------
messages: 378738
nosy: msapiro
priority: normal
severity: normal
status: open
title: email message get_content throws KeyError for content main types font and model
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42054>
_______________________________________
More information about the New-bugs-announce
mailing list