Skip to main content

split_mime_bytes

Function split_mime_bytes 

Source
pub fn split_mime_bytes(
    parent: Exchange,
    bytes: Bytes,
    config: MimeSplitConfig,
) -> Pin<Box<dyn Stream<Item = Result<Exchange, CamelError>> + Send>>
Expand description

Split a MIME message’s attachment parts into a stream of Exchanges.

Emits one fragment per attachment reported by mail-parser, in document order. Text and HTML body parts, multipart containers, and nested message/rfc822 descendants are not emitted.