use imf_codec::headers; fn main() { let header = r#"Date: Fri, 21 Nov 1997 10:01:10 -0600 From: Mary Smith Sender: imf@example.com Reply-To: "Mary Smith: Personal Account" To: John Doe Cc: imf2@example.com Bcc: (hidden) Subject: Re: Saying Hello Comments: A simple message Comments: Not that complicated Keywords: hello, world Keywords: salut, le, monde Message-ID: <3456@example.net> In-Reply-To: <1234@local.machine.example> References: <1234@local.machine.example> This is a reply to your hello. "#; println!("{:?}", headers::header_section(header)); }