pub fn parse_msg_id(value: &[u8]) -> Result<MsgId<'_>, ParseError>Expand description
Parses a msg-id (RFC 5322 section 3.6.4): dot-atom-text on both
sides of @, or a no-fold-literal ([...]) on the right.
§Errors
ErrorKind::InvalidAddrSpec; ErrorKind::InvalidUtf8.
§Examples
let id = parse_net::mail::parse_msg_id(b"<1234.5678@mail.example.com>")?;
assert_eq!((id.left, id.right), (&b"1234.5678"[..], &b"mail.example.com"[..]));