Delete a single message from the database, including references in other tables.
This may be called in batches; the final events are emitted in delete_msgs_locally_done() then.
Delete messages on all devices and on IMAP.
Delete messages on all devices, on IMAP and optionally for all chat members.
Deleted messages are moved to the trash chat and scheduling for deletion on IMAP.
When deleting messages for others, all messages must be self-sent and in the same chat.
Do final events and jobs after batch deletion using calls to delete_msg_locally().
To avoid additional database queries, collecting data is up to the caller.
Estimates the number of messages that will be deleted
by the options delete_device_after
or delete_server_after
.
Given a list of Message-IDs, returns the most relevant message found in the database.
Get the raw mime-headers of the given message.
Raw headers are saved for large messages
that need a βShow full messageβ¦β
to see HTML part.
Returns contacts that sent read receipts and the time of reading.
Returns the number of messages in contact request chats.
The number of messages assigned to unblocked chats
Returns the 1st part of summary text (i.e. before the dash if any) for a valid DeltaChat vCard.
Marks requested messages as seen.
Returns text for storing in the msgs.txt_normalized
column (to make case-insensitive search
possible for non-ASCII messages).
Returns
MsgId and βsentβ timestamp of the most recent message with given
rfc724_mid
(Message-ID header) and bool
expr
result if such messages exists in the db.