Skip to main content

build_with

Function build_with 

Source
pub fn build_with(
    draft: &Draft,
    from: (&str, &str),
    tr: &Translator,
    date: i64,
    protection: Option<&mut Protection<'_>>,
    autocrypt: Option<&str>,
    original: Option<&[u8]>,
) -> Result<Outgoing, String>
Expand description

The message as it goes out, protected when asked: PGP/MIME (RFC 3156), multipart/signed for a signature alone, multipart/encrypted otherwise, the signature then inside. autocrypt is your Autocrypt header’s value. original: the message answered or forwarded as it reads (opened in memory when it came encrypted), quoted below the text, a forward’s attachments taken from it; none, nothing of it goes.