[][src]Function email_parser::parser::parse_message

pub fn parse_message(
    data: &[u8]
) -> Result<(Vec<(&[u8], &[u8])>, Option<&[u8]>), ()>

Parse a raw email into a vec of headers and a body. Keeps header values as they are in the mail (no unfolding).