Currently we can't index encrypted mails, so we can't search for text inside the encrypted mails. This is a pitty, cause with wie cant to push end-to-end encrypted mails, we need to give the user a possibility to search for encrypted mails like the unencrypted ones.
Two issues we need to solve first:
- while indexing mails, we need to decrypt them -> this will trigger the Keyentry dialog for the user a kind of random
- how to store the indexes for encrypted mails securly. My thought is, that we should store the indexes also encrypted with the same key they are encrypted for. So we do not leak information into another domain. Is Plasma Vaults a solution (@ivan)?
- for a propper indexing, we need to depend on mimetreeparser. Because maimetreeparser has already the logic how we need to parse the mail to get the "interesting content" and especially with encrypted mails, we should also understand the structure while indexing. And if we solve "T742 Add Memory Hole support", than we should also index the updated headers and not the dumb ones, that are accessible from outside. But therefor we would need to split mimetreeparser out of messagelib, otherwise we create a circular dependency.