From 6ae9a6a9aac6e91ac013e2a1f794e243e363afcc Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 13 Jun 2023 13:52:34 +0200 Subject: [PATCH] rework parse example --- src/parse.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/parse.rs b/src/parse.rs index fca6397..71795a8 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -1,13 +1,18 @@ use imf_codec::headers; fn main() { - let header = r#"Date: Fri, 21 Nov 1997 09:55:06 -0600 -Subject: Hello - World -From: + 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 +Subject: Re: Saying Hello +Message-ID: <3456@example.net> +In-Reply-To: <1234@local.machine.example> +References: <1234@local.machine.example> -Hello world +This is a reply to your hello. "#; println!("{:?}", headers::header_section(header));