Skip to main content

Module mime

Module mime 

Source

Structs§

ContentDisposition
Parsed MIME Content-Disposition header with disposition type and parameters.
ContentType
Parsed MIME Content-Type header with type, subtype, and parameters.
MimeInfo
Combined MIME content-type and transfer-encoding information for a message part.

Functions§

decode_base64
Decodes base64-encoded data, ignoring whitespace.
decode_body
Decodes a MIME message body using its content-type and transfer-encoding.
decode_quoted_printable
Decodes quoted-printable encoded data, handling soft line breaks and _ as space.
decode_uuencode
Decodes uuencoded data, returning None if no valid uuencode block is found.
parse_mime_info
Extracts MIME info (content-type and transfer-encoding) from parsed headers.
process_mime_body
Processes a MIME message body, returning decoded text and detected charset.
unflow_text
RFC 3676: Unwrap format=flowed text Lines ending with a space (SP) are joined with the following line. Lines beginning with “– “ are signature separators (never flowed).