Module mimeparser

Source
Expand description

ยงMIME message parsing module.

Structsยง

DeliveryReport ๐Ÿ”’
Delivery Status Notification (RFC 3464, RFC 6533)
MimeMessage ๐Ÿ”’
A parsed MIME message.
Part
Parsed MIME part.
Report ๐Ÿ”’
Message Disposition Notification (RFC 8098)

Enumsยง

AvatarAction ๐Ÿ”’
SystemMessage
System message type.

Constantsยง

MIME_AC_SETUP_FILE ๐Ÿ”’

Functionsยง

get_all_addresses_from_header ๐Ÿ”’
Extracts all addresses from the header named header.
get_attachment_filename ๐Ÿ”’
Tries to get attachment filename.
get_from ๐Ÿ”’
Returned addresses are normalized and lowercased.
get_list_post ๐Ÿ”’
Returned addresses are normalized and lowercased.
get_mime_type ๐Ÿ”’
Returns the mimetype and viewtype for a parsed mail.
get_recipients ๐Ÿ”’
Returned addresses are normalized and lowercased.
handle_mdn ๐Ÿ”’
handle_ndn ๐Ÿ”’
Marks a message as failed after an ndn (non-delivery-notification) arrived. Where appropriate, also adds an info message telling the user which of the recipients of a group message failed.
is_attachment_disposition ๐Ÿ”’
is_hidden ๐Ÿ”’
Returns if the header is hidden and must be ignored in the IMF section.
is_known ๐Ÿ”’
Returns true if the header overwrites outer header when it comes from protected headers.
parse_message_id ๐Ÿ”’
parse_message_ids ๐Ÿ”’
remove_header ๐Ÿ”’
update_gossip_peerstates ๐Ÿ”’
Parses Autocrypt-Gossip headers from the email and applies them to peerstates. Params: from: The address which sent the message currently being parsed