Skip to main content

rebuild_carrier

Function rebuild_carrier 

pub fn rebuild_carrier(
    role: &str,
    content: &str,
    parts: &CarrierParts,
    attachments: &[RenderedMarker],
) -> String
Expand description

Rebuild a carrier’s content with a new attachment list, taking the body from parts — the only text a caller may have rewritten — and keeping every other envelope field of content untouched.