deltachat::decrypt

Function try_decrypt

source
pub fn try_decrypt(
    mail: &ParsedMail<'_>,
    private_keyring: &[SignedSecretKey],
) -> Result<Option<Message>>
Expand description

Tries to decrypt a message, but only if it is structured as an Autocrypt message.

If successful and the message is encrypted, returns decrypted body.