rework parse example
This commit is contained in:
parent
dc4cfaf7e7
commit
6ae9a6a9aa
1 changed files with 10 additions and 5 deletions
15
src/parse.rs
15
src/parse.rs
|
@ -1,13 +1,18 @@
|
||||||
use imf_codec::headers;
|
use imf_codec::headers;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let header = r#"Date: Fri, 21 Nov 1997 09:55:06 -0600
|
let header = r#"Date: Fri, 21 Nov 1997 10:01:10 -0600
|
||||||
Subject: Hello
|
From: Mary Smith
|
||||||
World
|
<mary@example.net>
|
||||||
From: <quentin@example.com>
|
|
||||||
Sender: imf@example.com
|
Sender: imf@example.com
|
||||||
|
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>
|
||||||
|
|
||||||
Hello world
|
This is a reply to your hello.
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
println!("{:?}", headers::header_section(header));
|
println!("{:?}", headers::header_section(header));
|
||||||
|
|
Loading…
Reference in a new issue