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§
- Verified
Encryption π
Statics§
- LIST_
ID_ πREGEX
Functions§
- Looks up contact IDs from the database given the list of recipients.
- add_
parts πCreates aReceivedMsg
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 fromReferences
header if it is in the database. - Checks whether the message is allowed to appear in a protected chat.
- insert_
tombstone πInserts a tombstone intomsgs
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.