Module deltachat::receive_imf
source Β· Expand description
Internet Message Format reception pipeline.
Structs§
- This is the struct that is returned after receiving one email (aka MIME message).
Enums§
- VerifiedEncryption π
Statics§
- LIST_ID_REGEX π
Functions§
- Looks up contact IDs from the database given the list of recipients.
- add_parts πCreates a
ReceivedMsg
from given parts which might consist of multiple messages (if there are multiple attachments). Every entry inmime_parser.parts
produces a new row in themsgs
table. - apply_group_changes πApply group member list, name, avatar and protection status changes from the MIME message.
- Set ListId param on the contact and ListPost param the chat. Only called for incoming messages since outgoing messages never have a List-Post header, anyway.
- create_adhoc_group πCreates ad-hoc group and returns chat ID on success.
- create_group πThis function tries to extract the group-id from the message and create a new group chat with this ID. If there is no group-id and there are more than two members, a new ad hoc group is created.
- Create or lookup a mailing list chat.
- Converts βFromβ field to contact id.
- get_parent_message πReturns the last message referenced from References: header found in the database.
- get_previous_message πReturns the last message referenced from
References
header if it is in the database. - Checks whether the message is allowed to appear in a protected chat.
- insert_tombstone πInserts a tombstone into
msgs
table to prevent downloading the same message in the future. - If this method returns true, the message shall be assigned to the 1:1 chat with the sender. If it returns false, it shall be assigned to the parent chat.
- lookup_chat_by_reply π
- Emulates reception of a message from the network.
- Emulates reception of a message from βINBOXβ.
- receive_imf_inner πReceive a message and add it to the database.
- save_locations πSaves attached locations to the database.
- update_verified_keys πMoves secondary verified key to primary verified key if the message is signed with a secondary verified key. Removes secondary verified key if the message is signed with primary key.