Skip to main content

build_draft

Function build_draft 

Source
pub fn build_draft(
    account: &Account,
    draft: &Draft,
    tr: &Translator,
    card: Option<&CardAccess<'_>>,
) -> Result<Outgoing, BuildError>
Expand description

The message a draft makes, protected as it asks: signed with your key (here, its passphrase from the keyring; on your security key, through card), encrypted to every recipient’s key and to yours, your key handed to whom you write by an Autocrypt header. Nothing goes on the network.