Skip to main content

mixed_entity

Function mixed_entity 

Source
pub fn mixed_entity(
    body: &str,
    files: &[Attachment],
    original: Option<&[u8]>,
    flowed: bool,
) -> Result<String>
Expand description

The MIME entity (Content-Type header + body, CRLF endings) for a draft body with attachments: multipart/mixed with the text first, files base64-encoded, and optionally the forwarded original as message/rfc822 (mutt’s mime_forward). The caller puts it under the draft’s top-level headers, or inside a PGP layer.