2023-06-08 19:55:07 +00:00
|
|
|
use imf_codec::headers;
|
2023-06-08 12:58:20 +00:00
|
|
|
|
|
|
|
fn main() {
|
2023-06-13 11:52:34 +00:00
|
|
|
let header = r#"Date: Fri, 21 Nov 1997 10:01:10 -0600
|
|
|
|
From: Mary Smith
|
|
|
|
<mary@example.net>
|
2023-06-13 11:42:50 +00:00
|
|
|
Sender: imf@example.com
|
2023-06-13 11:52:34 +00:00
|
|
|
Reply-To: "Mary Smith: Personal Account" <smith@home.example>
|
|
|
|
To: John Doe <jdoe@machine.example>
|
|
|
|
Subject: Re: Saying Hello
|
|
|
|
Message-ID: <3456@example.net>
|
|
|
|
In-Reply-To: <1234@local.machine.example>
|
|
|
|
References: <1234@local.machine.example>
|
2023-06-13 11:42:50 +00:00
|
|
|
|
2023-06-13 11:52:34 +00:00
|
|
|
This is a reply to your hello.
|
2023-06-13 11:42:50 +00:00
|
|
|
"#;
|
|
|
|
|
2023-06-08 19:43:32 +00:00
|
|
|
println!("{:?}", headers::header_section(header));
|
2023-06-08 12:58:20 +00:00
|
|
|
}
|