pub fn parse(raw: &[u8]) -> Result<ParsedMessage, ParseError>Expand description
Parse raw RFC 5322 bytes into a ParsedMessage.
Returns Err(ParseError::EmptyInput) for empty input and
Err(ParseError::NoHeaders) when mail-parser cannot find any headers.
All other malformed input produces a best-effort ParsedMessage with
warnings populated.