mailarchive
mailarchive copied to clipboard
Message display fails for text_html message
owner:[email protected]
type_defect
| by [email protected]
See: https://mailarchive.ietf.org/arch/msg/manycouches/jod_GNssqhzsyQcuWTIjjQYufzA/
Issue migrated from trac:3428 at 2022-03-03 15:58:57 +0000
@[email protected] commented
Scroll to bottom to see: --- Begin Message --- << invalid HTML >> --- End Message ---
This appears to be an issue with handling a message/rfc822 part, where the content is an XML document with encoding='UTF-8'.
A ValueError is thrown here: https://trac.ietf.org/trac/ietfdb/browser/mailarch/trunk/backend/mlarchive/archive/generator.py#L273
ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
If the payload is passed to clean without first going through _get_decoded_payload() no error is thrown.
@[email protected] changed _comment0 which not transferred by tractive