Skip to main content

process_mime_body

Function process_mime_body 

Source
pub fn process_mime_body(
    headers: &[(String, String)],
    body_raw: &[u8],
) -> (String, Option<String>)
Expand description

Processes a MIME message body, returning decoded text and detected charset.

Handles multipart messages, inline images, attachments, and charset detection.

§Security

Only safe image MIME types are embedded inline; SVG is excluded due to script risks.