pub(crate) async fn get_by_rfc724_mids(
context: &Context,
mids: &[String],
) -> Result<Option<Message>>Expand description
Given a list of Message-IDs, returns the most relevant message found in the database.
Relevance here is (download_state == Done, index), where index is an index of Message-ID in
mids. This means Message-IDs should be ordered from the least late to the latest one (like in
the References header).
Only messages that are not in the trash chat are considered.