Skip to main content

Module mimeparser

Module mimeparser 

Source
Expand description

ยงMIME message parsing module.

Structsยง

DeliveryReport ๐Ÿ”’
Delivery Status Notification (RFC 3464, RFC 6533)
GossipedKey
Public key extracted from Autocrypt-Gossip header with associated information.
MimeMessage ๐Ÿ”’
A parsed MIME message.
Part
Parsed MIME part.
Report ๐Ÿ”’
Message Disposition Notification (RFC 8098)

Enumsยง

AvatarAction ๐Ÿ”’
PreMessageMode ๐Ÿ”’
SystemMessage
System message type.

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_protected ๐Ÿ”’
Returns whether the outer header value must be ignored if the message contains a signed (and optionally encrypted) part. This is independent from the modern Header Protection defined in https://www.rfc-editor.org/rfc/rfc9788.html.
parse_gossip_headers ๐Ÿ”’
Parses Autocrypt-Gossip headers from the email, saves the keys into the public_keys table, and returns them in a HashMap<address, public key>.
parse_message_id ๐Ÿ”’
parse_message_ids ๐Ÿ”’
remove_header ๐Ÿ”’
rm_legacy_display_elements ๐Ÿ”’