MCPcopy Create free account
hub / github.com/clawshell/clawshell / extract_text_and_html_bodies

Function extract_text_and_html_bodies

src/email.rs:808–816  ·  view source on GitHub ↗
(
    headers: &BTreeMap<String, String>,
    body: &[u8],
)

Source from the content-addressed store, hash-verified

806}
807
808fn extract_text_and_html_bodies(
809 headers: &BTreeMap<String, String>,
810 body: &[u8],
811) -> (Option<String>, Option<String>) {
812 let mut text_body = None;
813 let mut html_body = None;
814 extract_bodies_from_entity(headers, body, &mut text_body, &mut html_body);
815 (text_body, html_body)
816}
817
818fn extract_bodies_from_entity(
819 headers: &BTreeMap<String, String>,

Calls 1