Module html

Source
Expand description

ยงGet message as HTML.

Use Message.has_html() to check if the UI shall render a corresponding button and MsgId.get_html() to get the full message.

Even when the original mime-message is not HTML, MsgId.get_html() will return HTML - this allows nice quoting, handling linebreaks properly etc.

Structsยง

HtmlMsgParser ๐Ÿ”’
HtmlMsgParser converts a mime-message to HTML.

Enumsยง

MimeMultipartType ๐Ÿ”’
Type defining a rough mime-type. This is mainly useful on iterating to decide whether a mime-part has subtypes.

Functionsยง

get_mime_multipart_type ๐Ÿ”’
Function takes a content type from a ParsedMail structure and checks and returns the rough mime-type.
mimepart_to_data_url ๐Ÿ”’
Convert a mime part to a data: url as defined in RFC 2397.