mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 00:01:49 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da4a9d9a47 | ||
|
|
c3b36dd0d6 | ||
|
|
2f380451f5 | ||
|
|
1a2ac1d027 | ||
|
|
beb21b3d03 | ||
|
|
c77f3e2cb4 | ||
|
|
94522f1179 | ||
|
|
6749649e8c | ||
|
|
63a4620407 | ||
|
|
ccdee2332e | ||
|
|
35754eeaa8 | ||
|
|
4a6ec957d2 | ||
|
|
b48e2d711b | ||
|
|
d4c75e74a6 | ||
|
|
f7281e09cf | ||
|
|
46a8db9a54 | ||
|
|
a0448c31e9 | ||
|
|
41de06fd4e | ||
|
|
7792452a88 | ||
|
|
fdf7075e37 | ||
|
|
bbb2979e4b | ||
|
|
c29fcdc8bf | ||
|
|
715fbbab46 | ||
|
|
09ae0216ca | ||
|
|
d88bc20336 | ||
|
|
3f99761706 | ||
|
|
ac87792052 | ||
|
|
3ebe77098a | ||
|
|
ba750b4dee | ||
|
|
de82b6ea34 | ||
|
|
6ddbedae48 | ||
|
|
bd78d654c2 |
@@ -1,3 +1,41 @@
|
||||
mail-parser 0.4.5
|
||||
================================
|
||||
- DateTime to UNIX timestamp conversion.
|
||||
- Ord, PartialOrd support for DateTime (#13).
|
||||
- Fixed Message::parse() panic on duplicate Content-Type headers (#14).
|
||||
|
||||
mail-parser 0.4.4
|
||||
================================
|
||||
- Support for multi-line headers.
|
||||
- Text and HTML message body preview.
|
||||
- Improved support for raw headers.
|
||||
|
||||
mail-parser 0.4.3
|
||||
================================
|
||||
- Mbox file parsing support (issue #11) conforming to the [QMail specification](http://qmail.org/qmail-manual-html/man5/mbox.html).
|
||||
- Support for bincode serialize/deserialize.
|
||||
|
||||
mail-parser 0.4.2
|
||||
================================
|
||||
- Added `Message::get_thread_name()` to obtain the base subject of a message as defined in [RFC 5957 - Internet Message Access Protocol - SORT and THREAD Extensions (Section 2.1)](https://datatracker.ietf.org/doc/html/rfc5256#section-2.1).
|
||||
- Added `MimeHeader::get_attachment_name` for simplified access to a MIME attachment file name.
|
||||
|
||||
mail-parser 0.4.1
|
||||
================================
|
||||
- Lazy parsing of nested e-mail messages.
|
||||
- Support for base64/quoted-printable nested messages.
|
||||
|
||||
mail-parser 0.4.0
|
||||
================================
|
||||
- Lazy conversion to/from HTML an plain text parts.
|
||||
- Improved API.
|
||||
- Parts are now generics.
|
||||
|
||||
mail-parser 0.3.1
|
||||
================================
|
||||
- Support for non-standard headers.
|
||||
- Raw message offsets are stored in the message object.
|
||||
- Message body structure is now stored in the message object.
|
||||
|
||||
mail-parser 0.3
|
||||
================================
|
||||
|
||||
Generated
+93
-15
@@ -8,12 +8,34 @@ version = "1.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
|
||||
|
||||
[[package]]
|
||||
name = "bincode"
|
||||
version = "1.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cfg-if"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "chrono"
|
||||
version = "0.4.19"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"num-integer",
|
||||
"num-traits",
|
||||
"time",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dtoa"
|
||||
version = "0.4.8"
|
||||
@@ -51,6 +73,12 @@ version = "0.4.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.120"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ad5c14e80759d0939d013e6ca49930e59fc53dd8e5009132f76240c179380c09"
|
||||
|
||||
[[package]]
|
||||
name = "linked-hash-map"
|
||||
version = "0.5.4"
|
||||
@@ -59,15 +87,35 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
|
||||
|
||||
[[package]]
|
||||
name = "mail-parser"
|
||||
version = "0.3.0"
|
||||
version = "0.4.5"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"chrono",
|
||||
"encoding_rs",
|
||||
"serde",
|
||||
"serde_bytes",
|
||||
"serde_json",
|
||||
"serde_yaml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-integer"
|
||||
version = "0.1.44"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-traits"
|
||||
version = "0.2.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.30"
|
||||
@@ -94,27 +142,18 @@ checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.130"
|
||||
version = "1.0.136"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913"
|
||||
checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_bytes"
|
||||
version = "0.11.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "16ae07dd2f88a366f15bd0632ba725227018c69a1c8550a927324f8eb8368bb9"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.130"
|
||||
version = "1.0.136"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b"
|
||||
checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@@ -155,12 +194,51 @@ dependencies = [
|
||||
"unicode-xid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "time"
|
||||
version = "0.1.44"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"wasi",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unicode-xid"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
|
||||
|
||||
[[package]]
|
||||
name = "wasi"
|
||||
version = "0.10.0+wasi-snapshot-preview1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
|
||||
|
||||
[[package]]
|
||||
name = "winapi"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
||||
dependencies = [
|
||||
"winapi-i686-pc-windows-gnu",
|
||||
"winapi-x86_64-pc-windows-gnu",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winapi-i686-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
||||
|
||||
[[package]]
|
||||
name = "winapi-x86_64-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
||||
|
||||
[[package]]
|
||||
name = "yaml-rust"
|
||||
version = "0.4.5"
|
||||
|
||||
+4
-3
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "mail-parser"
|
||||
description = "Fast and robust e-mail parsing library for Rust"
|
||||
version = "0.3.0"
|
||||
version = "0.4.5"
|
||||
edition = "2018"
|
||||
authors = [ "Stalwart Labs <hello@stalw.art>"]
|
||||
license = "Apache-2.0 OR MIT"
|
||||
@@ -14,16 +14,17 @@ readme = "README.md"
|
||||
[dependencies]
|
||||
encoding_rs = {version="0.8", optional=true}
|
||||
serde = { version = "1.0", features = ["derive"], optional=true}
|
||||
serde_bytes = { version = "0.11", optional=true}
|
||||
|
||||
[dev-dependencies]
|
||||
serde_yaml = "0.8"
|
||||
serde_json = "1.0"
|
||||
bincode = "1.3.3"
|
||||
chrono = "0.4"
|
||||
|
||||
[features]
|
||||
default = ["serde_support", "full_encoding"]
|
||||
full_encoding = ["encoding_rs"]
|
||||
serde_support = ["serde", "serde_bytes"]
|
||||
serde_support = ["serde"]
|
||||
|
||||
[profile.bench]
|
||||
debug = true
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
[](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml)
|
||||
[](https://docs.rs/mail-parser)
|
||||
[](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
[](https://twitter.com/stalwartlabs)
|
||||
|
||||
_mail-parser_ is an **e-mail parsing library** written in Rust that fully conforms to the Internet Message Format standard (_RFC 5322_), the
|
||||
Multipurpose Internet Mail Extensions (MIME; _RFC 2045 - 2049_) as well as many other [internet messaging RFCs](#conformed-rfcs).
|
||||
@@ -29,82 +28,78 @@ Performance and memory safety were two important factors while designing _mail-p
|
||||
- **Fast parsing** of message header fields, character set names and HTML entities using [perfect hashing](https://en.wikipedia.org/wiki/Perfect_hash_function).
|
||||
- Written in **100% safe** Rust with no external dependencies.
|
||||
- Every function in the library has been [fuzzed](#testing-fuzzing--benchmarking) and
|
||||
meticulously [tested with MIRI](#testing-fuzzing--benchmarking).
|
||||
- Thoroughly **battle-tested** with millions of real-world e-mail messages dating from 1995 until today.
|
||||
thoroughly [tested with MIRI](#testing-fuzzing--benchmarking).
|
||||
- **Battle-tested** with millions of real-world e-mail messages dating from 1995 until today.
|
||||
|
||||
## Usage Example
|
||||
|
||||
```rust
|
||||
let input = concat!(
|
||||
"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)\n",
|
||||
"To: \"Colleagues\": \"James Smythe\" <james@vandelay.com>; Friends:\n",
|
||||
" jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;\n",
|
||||
"Date: Sat, 20 Nov 2021 14:22:01 -0800\n",
|
||||
"Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=\n",
|
||||
"Content-Type: multipart/mixed; boundary=\"festivus\";\n\n",
|
||||
"--festivus\n",
|
||||
"Content-Type: text/html; charset=\"us-ascii\"\n",
|
||||
"Content-Transfer-Encoding: base64\n\n",
|
||||
"PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle\n",
|
||||
"HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm\n",
|
||||
"cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8\n",
|
||||
"gJiN4MjYzQTs8L3A+PC9odG1sPg==\n",
|
||||
"--festivus\n",
|
||||
"Content-Type: message/rfc822\n\n",
|
||||
"From: \"Cosmo Kramer\" <kramer@kramerica.com>\n",
|
||||
"Subject: Exporting my book about coffee tables\n",
|
||||
"Content-Type: multipart/mixed; boundary=\"giddyup\";\n\n",
|
||||
"--giddyup\n",
|
||||
"Content-Type: text/plain; charset=\"utf-16\"\n",
|
||||
"Content-Transfer-Encoding: quoted-printable\n\n",
|
||||
"=FF=FE=0C!5=D8\"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8\"=DD =005=D8\"=\n",
|
||||
"=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =\n",
|
||||
"=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8\"=\n",
|
||||
"=DD5=D8=1E=DD5=D80=DD5=D8\"=DD!=00\n",
|
||||
"--giddyup\n",
|
||||
"Content-Type: image/gif; name*1=\"about \"; name*0=\"Book \";\n",
|
||||
" name*2*=utf-8''%e2%98%95 tables.gif\n",
|
||||
"Content-Transfer-Encoding: Base64\n",
|
||||
"Content-Disposition: attachment\n\n",
|
||||
"R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\n",
|
||||
"--giddyup--\n",
|
||||
"--festivus--\n",
|
||||
)
|
||||
.as_bytes();
|
||||
let input = br#"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)
|
||||
To: "Colleagues": "James Smythe" <james@vandelay.com>; Friends:
|
||||
jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;
|
||||
Date: Sat, 20 Nov 2021 14:22:01 -0800
|
||||
Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=
|
||||
Content-Type: multipart/mixed; boundary="festivus";
|
||||
|
||||
--festivus
|
||||
Content-Type: text/html; charset="us-ascii"
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle
|
||||
HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm
|
||||
cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8
|
||||
gJiN4MjYzQTs8L3A+PC9odG1sPg==
|
||||
--festivus
|
||||
Content-Type: message/rfc822
|
||||
|
||||
From: "Cosmo Kramer" <kramer@kramerica.com>
|
||||
Subject: Exporting my book about coffee tables
|
||||
Content-Type: multipart/mixed; boundary="giddyup";
|
||||
|
||||
--giddyup
|
||||
Content-Type: text/plain; charset="utf-16"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
=FF=FE=0C!5=D8"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8"=DD =005=D8"=
|
||||
=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =
|
||||
=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8"=
|
||||
=DD5=D8=1E=DD5=D80=DD5=D8"=DD!=00
|
||||
--giddyup
|
||||
Content-Type: image/gif; name*1="about "; name*0="Book ";
|
||||
name*2*=utf-8''%e2%98%95 tables.gif
|
||||
Content-Transfer-Encoding: Base64
|
||||
Content-Disposition: attachment
|
||||
|
||||
R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
--giddyup--
|
||||
--festivus--
|
||||
"#;
|
||||
|
||||
let message = Message::parse(input).unwrap();
|
||||
|
||||
// Parses addresses (including comments), lists and groups
|
||||
assert_eq!(
|
||||
message.get_from(),
|
||||
&HeaderValue::Address(Addr {
|
||||
name: Some("Art Vandelay (Vandelay Industries)".into()),
|
||||
address: Some("art@vandelay.com".into())
|
||||
})
|
||||
&HeaderValue::Address(Addr::new(
|
||||
"Art Vandelay (Vandelay Industries)".into(),
|
||||
"art@vandelay.com"
|
||||
))
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_to(),
|
||||
&HeaderValue::GroupList(vec![
|
||||
Group {
|
||||
name: Some("Colleagues".into()),
|
||||
addresses: vec![Addr {
|
||||
name: Some("James Smythe".into()),
|
||||
address: Some("james@vandelay.com".into())
|
||||
}]
|
||||
},
|
||||
Group {
|
||||
name: Some("Friends".into()),
|
||||
addresses: vec![
|
||||
Addr {
|
||||
name: None,
|
||||
address: Some("jane@example.com".into())
|
||||
},
|
||||
Addr {
|
||||
name: Some("John Smîth".into()),
|
||||
address: Some("john@example.com".into())
|
||||
}
|
||||
Group::new(
|
||||
"Colleagues",
|
||||
vec![Addr::new("James Smythe".into(), "james@vandelay.com")]
|
||||
),
|
||||
Group::new(
|
||||
"Friends",
|
||||
vec![
|
||||
Addr::new(None, "jane@example.com"),
|
||||
Addr::new("John Smîth".into(), "john@example.com"),
|
||||
]
|
||||
}
|
||||
)
|
||||
])
|
||||
);
|
||||
|
||||
@@ -119,9 +114,9 @@ Performance and memory safety were two important factors while designing _mail-p
|
||||
"Why not both importing AND exporting? ☺"
|
||||
);
|
||||
|
||||
// HTML and text body parts are returned conforming to RFC8621, Section 4.1.4
|
||||
// HTML and text body parts are returned conforming to RFC8621, Section 4.1.4
|
||||
assert_eq!(
|
||||
message.get_html_body(0).unwrap().to_string(),
|
||||
message.get_html_body(0).unwrap(),
|
||||
concat!(
|
||||
"<html><p>I was thinking about quitting the “exporting” to ",
|
||||
"focus just on the “importing”,</p><p>but then I thought,",
|
||||
@@ -131,7 +126,7 @@ Performance and memory safety were two important factors while designing _mail-p
|
||||
|
||||
// HTML parts are converted to plain text (and viceversa) when missing
|
||||
assert_eq!(
|
||||
message.get_text_body(0).unwrap().to_string(),
|
||||
message.get_text_body(0).unwrap(),
|
||||
concat!(
|
||||
"I was thinking about quitting the “exporting” to focus just on the",
|
||||
" “importing”,\nbut then I thought, why not do both? ☺\n"
|
||||
@@ -139,10 +134,10 @@ Performance and memory safety were two important factors while designing _mail-p
|
||||
);
|
||||
|
||||
// Supports nested messages as well as multipart/digest
|
||||
let nested_message = match message.get_attachment(0).unwrap() {
|
||||
MessagePart::Message(v) => v,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
let nested_message = message
|
||||
.get_attachment(0)
|
||||
.unwrap()
|
||||
.unwrap_message();
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
@@ -151,28 +146,21 @@ Performance and memory safety were two important factors while designing _mail-p
|
||||
|
||||
// Handles UTF-* as well as many legacy encodings
|
||||
assert_eq!(
|
||||
nested_message.get_text_body(0).unwrap().to_string(),
|
||||
nested_message.get_text_body(0).unwrap(),
|
||||
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
|
||||
);
|
||||
assert_eq!(
|
||||
nested_message.get_html_body(0).unwrap().to_string(),
|
||||
nested_message.get_html_body(0).unwrap(),
|
||||
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
|
||||
);
|
||||
|
||||
let nested_attachment = match nested_message.get_attachment(0).unwrap() {
|
||||
MessagePart::Binary(v) => v,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
|
||||
|
||||
assert_eq!(nested_attachment.len(), 42);
|
||||
|
||||
// Full RFC2231 support for continuations and character sets
|
||||
assert_eq!(
|
||||
nested_attachment
|
||||
.get_content_type()
|
||||
.unwrap()
|
||||
.get_attribute("name")
|
||||
.unwrap(),
|
||||
nested_attachment.get_attachment_name().unwrap(),
|
||||
"Book about ☕ tables.gif"
|
||||
);
|
||||
|
||||
@@ -181,6 +169,8 @@ Performance and memory safety were two important factors while designing _mail-p
|
||||
println!("{}", serde_yaml::to_string(&message).unwrap());
|
||||
```
|
||||
|
||||
More examples available under the [examples](examples) directory. Please note that this library does not support building e-mail messages as this functionality is provided separately by the [`mail-builder`](https://crates.io/crates/mail-builder) crate.
|
||||
|
||||
## Testing, Fuzzing & Benchmarking
|
||||
|
||||
To run the testsuite:
|
||||
@@ -227,6 +217,7 @@ and, to run the benchmarks:
|
||||
- [RFC 2919 - List-Id: A Structured Field and Namespace for the Identification of Mailing Lists](https://datatracker.ietf.org/doc/html/rfc2919)
|
||||
- [RFC 3339 - Date and Time on the Internet: Timestamps](https://datatracker.ietf.org/doc/html/rfc3339)
|
||||
- [RFC 8621 - The JSON Meta Application Protocol (JMAP) for Mail (Section 4.1.4)](https://datatracker.ietf.org/doc/html/rfc8621#section-4.1.4)
|
||||
- [RFC 5957 - Internet Message Access Protocol - SORT and THREAD Extensions (Section 2.1)](https://datatracker.ietf.org/doc/html/rfc5256#section-2.1)
|
||||
|
||||
## Supported Character Sets
|
||||
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
|
||||
* option. This file may not be copied, modified, or distributed
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
use mail_parser::*;
|
||||
|
||||
fn main() {
|
||||
let input = concat!(
|
||||
"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)\n",
|
||||
"To: \"Colleagues\": \"James Smythe\" <james@vandelay.com>; Friends:\n",
|
||||
" jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;\n",
|
||||
"Date: Sat, 20 Nov 2021 14:22:01 -0800\n",
|
||||
"Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=\n",
|
||||
"Content-Type: multipart/mixed; boundary=\"festivus\";\n\n",
|
||||
"--festivus\n",
|
||||
"Content-Type: text/html; charset=\"us-ascii\"\n",
|
||||
"Content-Transfer-Encoding: base64\n\n",
|
||||
"PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle\n",
|
||||
"HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm\n",
|
||||
"cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8\n",
|
||||
"gJiN4MjYzQTs8L3A+PC9odG1sPg==\n",
|
||||
"--festivus\n",
|
||||
"Content-Type: message/rfc822\n\n",
|
||||
"From: \"Cosmo Kramer\" <kramer@kramerica.com>\n",
|
||||
"Subject: Exporting my book about coffee tables\n",
|
||||
"Content-Type: multipart/mixed; boundary=\"giddyup\";\n\n",
|
||||
"--giddyup\n",
|
||||
"Content-Type: text/plain; charset=\"utf-16\"\n",
|
||||
"Content-Transfer-Encoding: quoted-printable\n\n",
|
||||
"=FF=FE=0C!5=D8\"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8\"=DD =005=D8\"=\n",
|
||||
"=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =\n",
|
||||
"=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8\"=\n",
|
||||
"=DD5=D8=1E=DD5=D80=DD5=D8\"=DD!=00\n",
|
||||
"--giddyup\n",
|
||||
"Content-Type: image/gif; name*1=\"about \"; name*0=\"Book \";\n",
|
||||
" name*2*=utf-8''%e2%98%95 tables.gif\n",
|
||||
"Content-Transfer-Encoding: Base64\n",
|
||||
"Content-Disposition: attachment\n\n",
|
||||
"R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\n",
|
||||
"--giddyup--\n",
|
||||
"--festivus--\n",
|
||||
)
|
||||
.as_bytes();
|
||||
|
||||
let message = Message::parse(input).unwrap();
|
||||
|
||||
// Parses addresses (including comments), lists and groups
|
||||
assert_eq!(
|
||||
message.get_from(),
|
||||
&HeaderValue::Address(Addr {
|
||||
name: Some("Art Vandelay (Vandelay Industries)".into()),
|
||||
address: Some("art@vandelay.com".into())
|
||||
})
|
||||
);
|
||||
assert_eq!(
|
||||
message.get_to(),
|
||||
&HeaderValue::GroupList(vec![
|
||||
Group {
|
||||
name: Some("Colleagues".into()),
|
||||
addresses: vec![Addr {
|
||||
name: Some("James Smythe".into()),
|
||||
address: Some("james@vandelay.com".into())
|
||||
}]
|
||||
},
|
||||
Group {
|
||||
name: Some("Friends".into()),
|
||||
addresses: vec![
|
||||
Addr {
|
||||
name: None,
|
||||
address: Some("jane@example.com".into())
|
||||
},
|
||||
Addr {
|
||||
name: Some("John Smîth".into()),
|
||||
address: Some("john@example.com".into())
|
||||
}
|
||||
]
|
||||
}
|
||||
])
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_date().unwrap().to_iso8601(),
|
||||
"2021-11-20T14:22:01-08:00"
|
||||
);
|
||||
|
||||
// RFC2047 support for encoded text in message readers
|
||||
assert_eq!(
|
||||
message.get_subject().unwrap(),
|
||||
"Why not both importing AND exporting? ☺"
|
||||
);
|
||||
|
||||
// HTML and text body parts are returned conforming to RFC8621, Section 4.1.4
|
||||
assert_eq!(
|
||||
message.get_html_body(0).unwrap().to_string(),
|
||||
concat!(
|
||||
"<html><p>I was thinking about quitting the “exporting” to ",
|
||||
"focus just on the “importing”,</p><p>but then I thought,",
|
||||
" why not do both? ☺</p></html>"
|
||||
)
|
||||
);
|
||||
|
||||
// HTML parts are converted to plain text (and viceversa) when missing
|
||||
assert_eq!(
|
||||
message.get_text_body(0).unwrap().to_string(),
|
||||
concat!(
|
||||
"I was thinking about quitting the “exporting” to focus just on the",
|
||||
" “importing”,\nbut then I thought, why not do both? ☺\n"
|
||||
)
|
||||
);
|
||||
|
||||
// Supports nested messages as well as multipart/digest
|
||||
let nested_message = match message.get_attachment(0).unwrap() {
|
||||
MessagePart::Message(v) => v,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
"Exporting my book about coffee tables"
|
||||
);
|
||||
|
||||
// Handles UTF-* as well as many legacy encodings
|
||||
assert_eq!(
|
||||
nested_message.get_text_body(0).unwrap().to_string(),
|
||||
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
|
||||
);
|
||||
assert_eq!(
|
||||
nested_message.get_html_body(0).unwrap().to_string(),
|
||||
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
|
||||
);
|
||||
|
||||
let nested_attachment = match nested_message.get_attachment(0).unwrap() {
|
||||
MessagePart::Binary(v) => v,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
assert_eq!(nested_attachment.len(), 42);
|
||||
|
||||
// Full RFC2231 support for continuations and character sets
|
||||
assert_eq!(
|
||||
nested_attachment
|
||||
.get_content_type()
|
||||
.unwrap()
|
||||
.get_attribute("name")
|
||||
.unwrap(),
|
||||
"Book about ☕ tables.gif"
|
||||
);
|
||||
|
||||
// Integrates with Serde
|
||||
println!("{}", serde_json::to_string_pretty(&message).unwrap());
|
||||
println!("{}", serde_yaml::to_string(&message).unwrap());
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
|
||||
* option. This file may not be copied, modified, or distributed
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
use mail_parser::*;
|
||||
|
||||
fn main() {
|
||||
let input = br#"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)
|
||||
To: "Colleagues": "James Smythe" <james@vandelay.com>; Friends:
|
||||
jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;
|
||||
Date: Sat, 20 Nov 2021 14:22:01 -0800
|
||||
Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=
|
||||
Content-Type: multipart/mixed; boundary="festivus";
|
||||
|
||||
--festivus
|
||||
Content-Type: text/html; charset="us-ascii"
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle
|
||||
HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm
|
||||
cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8
|
||||
gJiN4MjYzQTs8L3A+PC9odG1sPg==
|
||||
--festivus
|
||||
Content-Type: message/rfc822
|
||||
|
||||
From: "Cosmo Kramer" <kramer@kramerica.com>
|
||||
Subject: Exporting my book about coffee tables
|
||||
Content-Type: multipart/mixed; boundary="giddyup";
|
||||
|
||||
--giddyup
|
||||
Content-Type: text/plain; charset="utf-16"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
=FF=FE=0C!5=D8"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8"=DD =005=D8"=
|
||||
=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =
|
||||
=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8"=
|
||||
=DD5=D8=1E=DD5=D80=DD5=D8"=DD!=00
|
||||
--giddyup
|
||||
Content-Type: image/gif; name*1="about "; name*0="Book ";
|
||||
name*2*=utf-8''%e2%98%95 tables.gif
|
||||
Content-Transfer-Encoding: Base64
|
||||
Content-Disposition: attachment
|
||||
|
||||
R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
--giddyup--
|
||||
--festivus--
|
||||
"#;
|
||||
|
||||
let message = Message::parse(input).unwrap();
|
||||
|
||||
// Parses addresses (including comments), lists and groups
|
||||
assert_eq!(
|
||||
message.get_from(),
|
||||
&HeaderValue::Address(Addr::new(
|
||||
"Art Vandelay (Vandelay Industries)".into(),
|
||||
"art@vandelay.com"
|
||||
))
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_to(),
|
||||
&HeaderValue::GroupList(vec![
|
||||
Group::new(
|
||||
"Colleagues",
|
||||
vec![Addr::new("James Smythe".into(), "james@vandelay.com")]
|
||||
),
|
||||
Group::new(
|
||||
"Friends",
|
||||
vec![
|
||||
Addr::new(None, "jane@example.com"),
|
||||
Addr::new("John Smîth".into(), "john@example.com"),
|
||||
]
|
||||
)
|
||||
])
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_date().unwrap().to_iso8601(),
|
||||
"2021-11-20T14:22:01-08:00"
|
||||
);
|
||||
|
||||
// RFC2047 support for encoded text in message readers
|
||||
assert_eq!(
|
||||
message.get_subject().unwrap(),
|
||||
"Why not both importing AND exporting? ☺"
|
||||
);
|
||||
|
||||
// HTML and text body parts are returned conforming to RFC8621, Section 4.1.4
|
||||
assert_eq!(
|
||||
message.get_html_body(0).unwrap(),
|
||||
concat!(
|
||||
"<html><p>I was thinking about quitting the “exporting” to ",
|
||||
"focus just on the “importing”,</p><p>but then I thought,",
|
||||
" why not do both? ☺</p></html>"
|
||||
)
|
||||
);
|
||||
|
||||
// HTML parts are converted to plain text (and viceversa) when missing
|
||||
assert_eq!(
|
||||
message.get_text_body(0).unwrap(),
|
||||
concat!(
|
||||
"I was thinking about quitting the “exporting” to focus just on the",
|
||||
" “importing”,\nbut then I thought, why not do both? ☺\n"
|
||||
)
|
||||
);
|
||||
|
||||
// Supports nested messages as well as multipart/digest
|
||||
let nested_message = message.get_attachment(0).unwrap().unwrap_message();
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
"Exporting my book about coffee tables"
|
||||
);
|
||||
|
||||
// Handles UTF-* as well as many legacy encodings
|
||||
assert_eq!(
|
||||
nested_message.get_text_body(0).unwrap(),
|
||||
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
|
||||
);
|
||||
assert_eq!(
|
||||
nested_message.get_html_body(0).unwrap(),
|
||||
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
|
||||
);
|
||||
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
|
||||
|
||||
assert_eq!(nested_attachment.len(), 42);
|
||||
|
||||
// Full RFC2231 support for continuations and character sets
|
||||
assert_eq!(
|
||||
nested_attachment.get_attachment_name().unwrap(),
|
||||
"Book about ☕ tables.gif"
|
||||
);
|
||||
|
||||
// Integrates with Serde
|
||||
println!("{}", serde_json::to_string_pretty(&message).unwrap());
|
||||
println!("{}", serde_yaml::to_string(&message).unwrap());
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
|
||||
* option. This file may not be copied, modified, or distributed
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
use mail_parser::{parsers::mbox::MBoxParser, Message};
|
||||
|
||||
fn main() {
|
||||
// Read an MBox mailbox from stdin and prints each message as YAML.
|
||||
|
||||
for raw_message in MBoxParser::new(std::io::stdin()) {
|
||||
let message = Message::parse(&raw_message).unwrap();
|
||||
println!("{}", serde_yaml::to_string(&message).unwrap());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
|
||||
* option. This file may not be copied, modified, or distributed
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
use mail_parser::*;
|
||||
|
||||
fn main() {
|
||||
let input = br#"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)
|
||||
To: "Colleagues": "James Smythe" <james@vandelay.com>; Friends:
|
||||
jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;
|
||||
Date: Sat, 20 Nov 2021 14:22:01 -0800
|
||||
Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=
|
||||
Content-Type: multipart/mixed; boundary="festivus";
|
||||
|
||||
--festivus
|
||||
Content-Type: text/html; charset="us-ascii"
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle
|
||||
HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm
|
||||
cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8
|
||||
gJiN4MjYzQTs8L3A+PC9odG1sPg==
|
||||
--festivus
|
||||
Content-Type: message/rfc822; name="Exporting my book about coffee tables.eml"
|
||||
Content-Disposition: inline; filename="Exporting my book about coffee tables.eml"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
From: "Cosmo Kramer" <kramer@kramerica.com>
|
||||
Subject: Exporting my book about coffee tables
|
||||
Content-Type: multipart/mixed; boundary="giddyup";
|
||||
|
||||
--giddyup
|
||||
Content-Type: text/plain; charset="utf-16"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
=FF=FE=0C!5=D8"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8"=DD =005=D8"=
|
||||
=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =
|
||||
=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8"=
|
||||
=DD5=D8=1E=DD5=D80=DD5=D8"=DD!=00
|
||||
--giddyup
|
||||
Content-Type: image/gif; name*1="about "; name*0="Book ";
|
||||
name*2*=utf-8''%e2%98%95 tables.gif
|
||||
Content-Transfer-Encoding: Base64
|
||||
Content-Disposition: attachment
|
||||
|
||||
R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
--giddyup--
|
||||
--festivus--
|
||||
"#;
|
||||
|
||||
write_attachments(&Message::parse(input).unwrap());
|
||||
}
|
||||
|
||||
fn write_attachments(message: &Message) {
|
||||
for attachment in message.get_attachments() {
|
||||
match attachment {
|
||||
MessagePart::Text(text) | MessagePart::Html(text) => write_part(text),
|
||||
MessagePart::Binary(blob) | MessagePart::InlineBinary(blob) => write_part(blob),
|
||||
MessagePart::Message(attached_message) => {
|
||||
// Write attachments of nested messages
|
||||
match &attached_message.body {
|
||||
MessageAttachment::Parsed(message) => write_attachments(message.as_ref()),
|
||||
MessageAttachment::Raw(_) => {
|
||||
write_attachments(&attached_message.parse_raw().unwrap())
|
||||
}
|
||||
}
|
||||
|
||||
// Write raw message
|
||||
write_part(attached_message);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn write_part<'x>(part: &'x impl BodyPart<'x>) {
|
||||
std::fs::write(
|
||||
part.get_attachment_name().unwrap_or("Untitled"),
|
||||
part.get_contents(),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
Generated
+1
-1
@@ -42,7 +42,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mail-parser"
|
||||
version = "0.2.1"
|
||||
version = "0.4.2"
|
||||
dependencies = [
|
||||
"encoding_rs",
|
||||
"serde",
|
||||
|
||||
@@ -22,11 +22,12 @@ use mail_parser::{
|
||||
id::parse_id,
|
||||
list::parse_comma_separared,
|
||||
raw::{parse_and_ignore, parse_raw},
|
||||
thread::{thread_name, trim_trailing_fwd},
|
||||
unstructured::parse_unstructured,
|
||||
},
|
||||
mime::*,
|
||||
header::parse_header_name,
|
||||
message::MessageStream,
|
||||
mime::*,
|
||||
},
|
||||
Message,
|
||||
};
|
||||
@@ -62,7 +63,7 @@ fuzz_target!(|data: &[u8]| {
|
||||
parse_content_type(&mut stream);
|
||||
}
|
||||
9 => {
|
||||
parse_header_name(&mut stream);
|
||||
parse_header_name(&data);
|
||||
}
|
||||
10 => {
|
||||
decode_rfc2047(&mut stream, 0);
|
||||
@@ -113,26 +114,27 @@ fuzz_target!(|data: &[u8]| {
|
||||
}
|
||||
}
|
||||
|
||||
// Fuzz HTML functions
|
||||
// Fuzz text functions
|
||||
let mut html_str = String::with_capacity(data.len());
|
||||
let str_data = String::from_utf8_lossy(data);
|
||||
add_html_token(&mut html_str, str_data.as_ref().as_bytes(), false);
|
||||
html_to_text(&str_data);
|
||||
text_to_html(&str_data);
|
||||
thread_name(&str_data);
|
||||
trim_trailing_fwd(&str_data);
|
||||
|
||||
// Fuzz decoding functions
|
||||
decode_hex(data);
|
||||
get_charset_decoder(data);
|
||||
|
||||
let decoders: &[for<'x> fn(&'x [u8]) -> String] = &[
|
||||
for decoder in &[
|
||||
decoder_utf7,
|
||||
decoder_utf16_le,
|
||||
decoder_utf16_be,
|
||||
decoder_utf16,
|
||||
decoder_iso_8859_1,
|
||||
];
|
||||
|
||||
for decoder in decoders {
|
||||
] as &[for<'x> fn(&'x [u8]) -> String]
|
||||
{
|
||||
decoder(data);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,9 +12,6 @@
|
||||
#[cfg(feature = "full_encoding")]
|
||||
use encoding_rs::*;
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
use super::map::decoder_default;
|
||||
|
||||
#[cfg(feature = "full_encoding")]
|
||||
fn multi_byte_decoder(mut decoder: Decoder, bytes: &[u8]) -> String {
|
||||
let mut result = String::with_capacity(bytes.len() * 3);
|
||||
@@ -35,7 +32,7 @@ pub fn decoder_shift_jis(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +44,7 @@ pub fn decoder_big5(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +56,7 @@ pub fn decoder_euc_jp(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +68,7 @@ pub fn decoder_euc_kr(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +80,7 @@ pub fn decoder_gb18030(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +92,7 @@ pub fn decoder_gbk(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +104,7 @@ pub fn decoder_iso2022_jp(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +116,7 @@ pub fn decoder_windows874(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +128,6 @@ pub fn decoder_ibm866(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
+746
-366
File diff suppressed because it is too large
Load Diff
@@ -922,7 +922,6 @@ mod tests {
|
||||
];
|
||||
|
||||
for input in inputs {
|
||||
println!("Testiong {}", input.0);
|
||||
let str = input.0.to_string();
|
||||
let result = parse_address(&mut MessageStream::new(str.as_bytes()));
|
||||
let expected: HeaderValue = serde_yaml::from_str(input.1).unwrap_or(HeaderValue::Empty);
|
||||
|
||||
@@ -29,6 +29,64 @@ impl DateTime {
|
||||
self.tz_minute
|
||||
)
|
||||
}
|
||||
|
||||
/// Returns true if the date is vald
|
||||
pub fn is_valid(&self) -> bool {
|
||||
(0..23).contains(&self.tz_hour)
|
||||
&& (0..59).contains(&self.tz_minute)
|
||||
&& (1970..2500).contains(&self.year)
|
||||
&& (1..12).contains(&self.month)
|
||||
&& (1..31).contains(&self.day)
|
||||
&& (0..23).contains(&self.hour)
|
||||
&& (0..59).contains(&self.minute)
|
||||
&& (0..59).contains(&self.second)
|
||||
}
|
||||
|
||||
/// Returns the numbers of seconds since 1970-01-01T00:00:00Z (Unix epoch)
|
||||
/// or None if the date is invalid.
|
||||
pub fn to_timestamp(&self) -> Option<i64> {
|
||||
// Ported from https://github.com/protocolbuffers/upb/blob/22182e6e/upb/json_decode.c#L982-L992
|
||||
if self.is_valid() {
|
||||
let year_base = 4800; /* Before min year, multiple of 400. */
|
||||
let m_adj = self.month.overflowing_sub(3).0; /* March-based month. */
|
||||
let carry = if m_adj > self.month { 1 } else { 0 };
|
||||
let adjust = if carry > 0 { 12 } else { 0 };
|
||||
let y_adj = self.year as i64 + year_base - carry;
|
||||
let month_days = ((m_adj.overflowing_add(adjust).0) * 62719 + 769) / 2048;
|
||||
let leap_days = y_adj / 4 - y_adj / 100 + y_adj / 400;
|
||||
((y_adj * 365 + leap_days + month_days as i64 + (self.day as i64 - 1) - 2472632)
|
||||
* 86400
|
||||
+ self.hour as i64 * 3600
|
||||
+ self.minute as i64 * 60
|
||||
+ self.second as i64
|
||||
+ ((self.tz_hour as i64 * 3600 + self.tz_minute as i64 * 60)
|
||||
* if self.tz_before_gmt { 1 } else { -1 }))
|
||||
.into()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialOrd for DateTime {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
||||
match self.to_timestamp()? - other.to_timestamp()? {
|
||||
0 => std::cmp::Ordering::Equal,
|
||||
x if x > 0 => std::cmp::Ordering::Greater,
|
||||
_ => std::cmp::Ordering::Less,
|
||||
}
|
||||
.into()
|
||||
}
|
||||
}
|
||||
|
||||
impl Ord for DateTime {
|
||||
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
||||
match self.to_timestamp().unwrap_or_default() - other.to_timestamp().unwrap_or_default() {
|
||||
0 => std::cmp::Ordering::Equal,
|
||||
x if x > 0 => std::cmp::Ordering::Greater,
|
||||
_ => std::cmp::Ordering::Less,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for DateTime {
|
||||
@@ -195,6 +253,8 @@ pub static MONTH_MAP: &[u8; 31] = &[
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use chrono::{FixedOffset, LocalResult, SecondsFormat, TimeZone, Utc};
|
||||
|
||||
use crate::{
|
||||
parsers::{fields::date::parse_date, message::MessageStream},
|
||||
HeaderValue,
|
||||
@@ -265,9 +325,35 @@ mod tests {
|
||||
for input in inputs {
|
||||
let str = input.0.to_string();
|
||||
match parse_date(&mut MessageStream::new(str.as_bytes())) {
|
||||
HeaderValue::DateTime(date) => {
|
||||
//println!("{} -> {}", input.0.escape_debug(), date.to_iso8601());
|
||||
assert_eq!(input.1, date.to_iso8601());
|
||||
HeaderValue::DateTime(datetime) => {
|
||||
assert_eq!(input.1, datetime.to_iso8601());
|
||||
|
||||
if datetime.is_valid() {
|
||||
if let LocalResult::Single(chrono_datetime)
|
||||
| LocalResult::Ambiguous(chrono_datetime, _) = FixedOffset::west_opt(
|
||||
((datetime.tz_hour as i32 * 3600i32) + datetime.tz_minute as i32 * 60)
|
||||
* if datetime.tz_before_gmt { 1i32 } else { -1i32 },
|
||||
)
|
||||
.unwrap_or_else(|| FixedOffset::east(0))
|
||||
.ymd_opt(datetime.year as i32, datetime.month, datetime.day)
|
||||
.and_hms_opt(datetime.hour, datetime.minute, datetime.second)
|
||||
{
|
||||
assert_eq!(
|
||||
chrono_datetime.timestamp(),
|
||||
datetime.to_timestamp().unwrap(),
|
||||
"{} -> {} ({}) -> {} ({})",
|
||||
input.0.escape_debug(),
|
||||
datetime.to_timestamp().unwrap(),
|
||||
Utc.timestamp_opt(datetime.to_timestamp().unwrap(), 0)
|
||||
.unwrap()
|
||||
.to_rfc3339_opts(SecondsFormat::Secs, true),
|
||||
chrono_datetime.timestamp(),
|
||||
Utc.timestamp_opt(chrono_datetime.timestamp(), 0)
|
||||
.unwrap()
|
||||
.to_rfc3339_opts(SecondsFormat::Secs, true)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
HeaderValue::Empty => {
|
||||
//println!("{} -> None", input.0.escape_debug());
|
||||
|
||||
@@ -15,4 +15,5 @@ pub mod date;
|
||||
pub mod id;
|
||||
pub mod list;
|
||||
pub mod raw;
|
||||
pub mod thread;
|
||||
pub mod unstructured;
|
||||
|
||||
@@ -0,0 +1,308 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
|
||||
* option. This file may not be copied, modified, or distributed
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
static RE_PREFIXES: &[&str] = &[
|
||||
"re", "res", "sv", "antw", "ref", "aw", "απ", "השב", "vá", "r", "rif", "bls", "odp", "ynt",
|
||||
"atb", "رد", "回复", "转发",
|
||||
];
|
||||
|
||||
static FWD_PREFIXES: &[&str] = &[
|
||||
"fwd",
|
||||
"fw",
|
||||
"rv",
|
||||
"enc",
|
||||
"vs",
|
||||
"doorst",
|
||||
"vl",
|
||||
"tr",
|
||||
"wg",
|
||||
"πρθ",
|
||||
"הועבר",
|
||||
"továbbítás",
|
||||
"i",
|
||||
"fs",
|
||||
"trs",
|
||||
"vb",
|
||||
"pd",
|
||||
"i̇lt",
|
||||
"yml",
|
||||
"إعادة توجيه",
|
||||
"回覆",
|
||||
"轉寄",
|
||||
];
|
||||
|
||||
pub fn thread_name(text: &str) -> &str {
|
||||
let mut token_start = 0;
|
||||
let mut token_end = 0;
|
||||
|
||||
let mut thread_name_start = 0;
|
||||
let mut fwd_start = 0;
|
||||
let mut fwd_end = 0;
|
||||
let mut last_blob_end = 0;
|
||||
|
||||
let mut in_blob = false;
|
||||
let mut in_blob_ignore = false;
|
||||
let mut seen_header = false;
|
||||
let mut seen_blob_header = false;
|
||||
let mut token_found = false;
|
||||
|
||||
for (pos, ch) in text.char_indices() {
|
||||
match ch {
|
||||
'[' => {
|
||||
if !in_blob {
|
||||
if token_found {
|
||||
if token_end == 0 {
|
||||
token_end = pos;
|
||||
}
|
||||
let prefix = text[token_start..token_end].to_lowercase();
|
||||
if RE_PREFIXES.contains(&prefix.as_ref())
|
||||
|| FWD_PREFIXES.contains(&prefix.as_ref())
|
||||
{
|
||||
seen_header = true;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
token_found = false;
|
||||
in_blob = true;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
']' if in_blob => {
|
||||
if seen_blob_header && token_found {
|
||||
fwd_start = token_start;
|
||||
fwd_end = pos;
|
||||
}
|
||||
if !seen_header {
|
||||
last_blob_end = pos + 1;
|
||||
}
|
||||
in_blob = false;
|
||||
token_found = false;
|
||||
seen_blob_header = false;
|
||||
in_blob_ignore = false;
|
||||
}
|
||||
':' if !in_blob => {
|
||||
if (seen_header && token_found) || (!seen_header && !token_found) {
|
||||
break;
|
||||
} else if !seen_header {
|
||||
if token_end == 0 {
|
||||
token_end = pos;
|
||||
}
|
||||
let prefix = text[token_start..token_end].to_lowercase();
|
||||
if !RE_PREFIXES.contains(&prefix.as_ref())
|
||||
&& !FWD_PREFIXES.contains(&prefix.as_ref())
|
||||
{
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
seen_header = false;
|
||||
}
|
||||
thread_name_start = pos + 1;
|
||||
token_found = false;
|
||||
}
|
||||
':' if in_blob && !in_blob_ignore => {
|
||||
if token_end == 0 {
|
||||
token_end = pos;
|
||||
}
|
||||
|
||||
let prefix = text[token_start..token_end].to_lowercase();
|
||||
if FWD_PREFIXES.contains(&prefix.as_ref()) {
|
||||
token_found = false;
|
||||
seen_blob_header = true;
|
||||
} else if seen_blob_header && RE_PREFIXES.contains(&prefix.as_ref()) {
|
||||
token_found = false;
|
||||
} else {
|
||||
in_blob_ignore = true;
|
||||
}
|
||||
}
|
||||
_ if ch.is_whitespace() => {
|
||||
if token_end == 0 {
|
||||
token_end = pos;
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
if !token_found {
|
||||
token_start = pos;
|
||||
token_end = 0;
|
||||
token_found = true;
|
||||
} else if !in_blob && pos - token_start > 21 {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if last_blob_end > thread_name_start
|
||||
|| (fwd_start > 0 && last_blob_end > fwd_start && fwd_start > thread_name_start)
|
||||
{
|
||||
let result = trim_trailing_fwd(&text[last_blob_end..]);
|
||||
if !result.is_empty() {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
if fwd_start > 0 && thread_name_start < fwd_start {
|
||||
let result = trim_trailing_fwd(&text[fwd_start..fwd_end]);
|
||||
if !result.is_empty() {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
trim_trailing_fwd(&text[thread_name_start..])
|
||||
}
|
||||
|
||||
pub fn trim_trailing_fwd(text: &str) -> &str {
|
||||
let mut in_parentheses = false;
|
||||
let mut trim_end = true;
|
||||
let mut end_found = false;
|
||||
|
||||
let mut text_start = 0;
|
||||
let mut text_end = text.len();
|
||||
let mut fwd_end = 0;
|
||||
|
||||
for (pos, ch) in text.char_indices().rev() {
|
||||
match ch {
|
||||
'(' if !end_found => {
|
||||
if in_parentheses {
|
||||
in_parentheses = false;
|
||||
if fwd_end - pos > 2
|
||||
&& FWD_PREFIXES.contains(&text[pos + 1..fwd_end].to_lowercase().as_ref())
|
||||
{
|
||||
text_end = pos;
|
||||
trim_end = true;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
end_found = true;
|
||||
}
|
||||
')' if !end_found => {
|
||||
if !in_parentheses {
|
||||
in_parentheses = true;
|
||||
fwd_end = pos;
|
||||
} else {
|
||||
end_found = true;
|
||||
}
|
||||
}
|
||||
_ if ch.is_whitespace() => {
|
||||
if trim_end {
|
||||
text_end = pos;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
_ => {
|
||||
if !in_parentheses && !end_found {
|
||||
end_found = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if trim_end {
|
||||
trim_end = false;
|
||||
}
|
||||
text_start = pos;
|
||||
}
|
||||
|
||||
if text_end >= text_start {
|
||||
&text[text_start..text_end]
|
||||
} else {
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::parsers::fields::thread::{thread_name, trim_trailing_fwd};
|
||||
|
||||
#[test]
|
||||
fn parse_thread_name() {
|
||||
let tests = [
|
||||
("re: hello", "hello"),
|
||||
("re:re: hello", "hello"),
|
||||
("re:fwd: hello", "hello"),
|
||||
("fwd[5]:re[5]: hello", "hello"),
|
||||
("fwd[99]: re[40]: hello", "hello"),
|
||||
(": hello", ": hello"),
|
||||
("z: hello", "z: hello"),
|
||||
("re:: hello", ": hello"),
|
||||
("[10] hello", "hello"),
|
||||
("fwd[a]: hello", "hello"),
|
||||
("re:", ""),
|
||||
("re::", ":"),
|
||||
("", ""),
|
||||
(" ", ""),
|
||||
("回复: 轉寄: 轉寄", "轉寄"),
|
||||
("aw[50]: wg: aw[1]: hallo", "hallo"),
|
||||
("res: rv: enc: továbbítás: ", ""),
|
||||
("[fwd: hello world]", "hello world"),
|
||||
("re: enc: re[5]: [fwd: hello world]", "hello world"),
|
||||
("[fwd: re: fw: hello world]", "hello world"),
|
||||
("[fwd: hello world]: another text", ": another text"),
|
||||
("[fwd: re: fwd:] another text", "another text"),
|
||||
("[hello world]", "[hello world]"),
|
||||
("re: fwd[9]: [hello world]", "[hello world]"),
|
||||
("[mailing-list] hello world", "hello world"),
|
||||
("[mailing-list] re: hello world", "hello world"),
|
||||
("[mailing-list] wg[8]:re: hello world", "hello world"),
|
||||
("hello [world]", "hello [world]"),
|
||||
(" [hello] [world] ", "[hello] [world]"),
|
||||
("[mailing-list] hello [world]", "hello [world]"),
|
||||
("[hello [world]", "[hello [world]"),
|
||||
("[]hello [world]", "hello [world]"),
|
||||
("[fwd: re: re:] fwd[6]:re: fw:", ""),
|
||||
("[fwd hello] world hello", "world hello"),
|
||||
("[fwd: مرحبا بالعالم]", "مرحبا بالعالم"),
|
||||
("[fwd: hello world] مرحبا بالعالم", "مرحبا بالعالم"),
|
||||
(" hello world ", "hello world"),
|
||||
(
|
||||
"[mailing-list] wg[8]:re: hello world (fwd)(fwd)",
|
||||
"hello world",
|
||||
),
|
||||
("[fwd: re: fw: hello world (fwd)]", "hello world"),
|
||||
(
|
||||
"res: rv: enc: továbbítás: hello world (doorst)",
|
||||
"hello world",
|
||||
),
|
||||
("[fwd: re: re: (fwd)] fwd[6]:re: fw: (fwd)", ""),
|
||||
];
|
||||
|
||||
for (input, expected) in tests {
|
||||
assert_eq!(thread_name(input), expected, "{:?}", input);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_trail_fwd() {
|
||||
let tests = [
|
||||
("hello (fwd)", "hello"),
|
||||
(" hello (fwd)(fwd)", "hello"),
|
||||
("hello (wg) (fwd) (fwd)", "hello"),
|
||||
("(fwd)(fwd)", ""),
|
||||
("(fwd)hello(fwd)", "(fwd)hello"),
|
||||
(" hello ", "hello"),
|
||||
(" hello world ", "hello world"),
|
||||
("", ""),
|
||||
(" ", ""),
|
||||
("hello ()(fwd)", "hello ()"),
|
||||
("(hello)", "(hello)"),
|
||||
("hello () (fwd) ()(fwd)", "hello () (fwd) ()"),
|
||||
(")(", ")("),
|
||||
(" 你好世界(fwd) ", "你好世界"),
|
||||
("你好世界 (回覆)", "你好世界"),
|
||||
("hello(fwd", "hello(fwd"),
|
||||
("hello(fwd))", "hello(fwd))"),
|
||||
];
|
||||
|
||||
for (input, expected) in tests {
|
||||
assert_eq!(trim_trailing_fwd(input), expected, "{:?}", input);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,7 +106,6 @@ pub fn parse_unstructured<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x>
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
#[test]
|
||||
fn parse_unstructured_text() {
|
||||
use crate::parsers::fields::unstructured::parse_unstructured;
|
||||
|
||||
+147
-146
@@ -9,9 +9,9 @@
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::{borrow::Cow, collections::hash_map::Entry};
|
||||
|
||||
use crate::{HeaderName, HeaderValue, Headers};
|
||||
use crate::{HeaderName, HeaderOffset, HeaderValue, RawHeaders, RfcHeader, RfcHeaders};
|
||||
|
||||
use super::{
|
||||
fields::{
|
||||
@@ -28,46 +28,63 @@ use super::{
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum HeaderParserResult<'x> {
|
||||
Supported(HeaderName),
|
||||
Unsupported(&'x [u8]),
|
||||
Rfc(RfcHeader),
|
||||
Other(Cow<'x, str>),
|
||||
Lf,
|
||||
Eof,
|
||||
}
|
||||
|
||||
pub fn parse_headers<'x>(headers: &mut Headers<'x>, stream: &mut MessageStream<'x>) -> bool {
|
||||
pub fn parse_headers<'x>(
|
||||
headers_rfc: &mut RfcHeaders<'x>,
|
||||
headers_raw: &mut RawHeaders<'x>,
|
||||
stream: &mut MessageStream<'x>,
|
||||
) -> bool {
|
||||
loop {
|
||||
let (bytes_read, result) = parse_header_name(&stream.data[stream.pos..]);
|
||||
stream.pos += bytes_read;
|
||||
|
||||
match result {
|
||||
HeaderParserResult::Supported(name) => {
|
||||
let (is_many, parser) = HDR_PARSER[name as usize];
|
||||
HeaderParserResult::Rfc(name) => {
|
||||
let (_, parser) = HDR_PARSER[name as usize];
|
||||
|
||||
let from_offset = stream.pos;
|
||||
let value = parser(stream);
|
||||
headers_raw
|
||||
.entry(HeaderName::Rfc(name))
|
||||
.or_insert_with(Vec::new)
|
||||
.push(HeaderOffset {
|
||||
start: from_offset,
|
||||
end: stream.pos,
|
||||
});
|
||||
|
||||
if !value.is_empty() {
|
||||
if is_many {
|
||||
match headers.entry(name) {
|
||||
Entry::Occupied(mut e) => {
|
||||
if let HeaderValue::Collection(col) = e.get_mut() {
|
||||
col.push(value);
|
||||
} else {
|
||||
let old_value = e.remove();
|
||||
headers.insert(
|
||||
name,
|
||||
HeaderValue::Collection(vec![old_value, value]),
|
||||
);
|
||||
}
|
||||
}
|
||||
Entry::Vacant(e) => {
|
||||
e.insert(value);
|
||||
match headers_rfc.entry(name) {
|
||||
Entry::Occupied(mut e) => {
|
||||
if let HeaderValue::Collection(col) = e.get_mut() {
|
||||
col.push(value);
|
||||
} else {
|
||||
let old_value = e.remove();
|
||||
headers_rfc
|
||||
.insert(name, HeaderValue::Collection(vec![old_value, value]));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
headers.insert(name, value);
|
||||
Entry::Vacant(e) => {
|
||||
e.insert(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
HeaderParserResult::Unsupported(_name) => parse_and_ignore(stream),
|
||||
HeaderParserResult::Other(name) => {
|
||||
let from_offset = stream.pos;
|
||||
parse_and_ignore(stream);
|
||||
headers_raw
|
||||
.entry(HeaderName::Other(name))
|
||||
.or_insert_with(Vec::new)
|
||||
.push(HeaderOffset {
|
||||
start: from_offset,
|
||||
end: stream.pos,
|
||||
});
|
||||
}
|
||||
HeaderParserResult::Lf => return true,
|
||||
HeaderParserResult::Eof => return false,
|
||||
}
|
||||
@@ -88,24 +105,7 @@ pub fn parse_header_name(data: &[u8]) -> (usize, HeaderParserResult) {
|
||||
match ch {
|
||||
b':' => {
|
||||
if token_start != 0 {
|
||||
let field = &data[token_start - 1..token_end];
|
||||
|
||||
if (2..=25).contains(&token_len) {
|
||||
token_hash +=
|
||||
token_len + HDR_HASH[last_ch.to_ascii_lowercase() as usize] as usize;
|
||||
|
||||
if (4..=72).contains(&token_hash) {
|
||||
let token_hash = token_hash - 4;
|
||||
|
||||
if field.eq_ignore_ascii_case(HDR_NAMES[token_hash]) {
|
||||
return (
|
||||
bytes_read,
|
||||
HeaderParserResult::Supported(HDR_MAP[token_hash]),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return (bytes_read, HeaderParserResult::Unsupported(field));
|
||||
break;
|
||||
}
|
||||
}
|
||||
b'\n' => {
|
||||
@@ -130,58 +130,59 @@ pub fn parse_header_name(data: &[u8]) -> (usize, HeaderParserResult) {
|
||||
}
|
||||
}
|
||||
|
||||
(bytes_read, HeaderParserResult::Eof)
|
||||
}
|
||||
if token_start != 0 {
|
||||
let field = &data[token_start - 1..token_end];
|
||||
|
||||
/*fn set_unsupported(&mut self, stream: &mut MessageStream<'x>, name: &'x [u8]) {
|
||||
if let Ok(name) = std::str::from_utf8(name) {
|
||||
let value = parse_unstructured(stream);
|
||||
if !value.is_empty() {
|
||||
match self.others.entry(name) {
|
||||
Entry::Occupied(mut e) => {
|
||||
if let HeaderValue::Collection(col) = e.get_mut() {
|
||||
col.push(value);
|
||||
} else {
|
||||
let old_value = e.remove();
|
||||
self.others.insert(name,HeaderValue::Collection(vec![old_value, value]));
|
||||
}
|
||||
},
|
||||
Entry::Vacant(e) => {e.insert(value);},
|
||||
if (2..=25).contains(&token_len) {
|
||||
token_hash += token_len + HDR_HASH[last_ch.to_ascii_lowercase() as usize] as usize;
|
||||
|
||||
if (4..=72).contains(&token_hash) {
|
||||
let token_hash = token_hash - 4;
|
||||
|
||||
if field.eq_ignore_ascii_case(HDR_NAMES[token_hash]) {
|
||||
return (bytes_read, HeaderParserResult::Rfc(HDR_MAP[token_hash]));
|
||||
}
|
||||
}
|
||||
}
|
||||
return (
|
||||
bytes_read,
|
||||
HeaderParserResult::Other(String::from_utf8_lossy(field)),
|
||||
);
|
||||
} else {
|
||||
(bytes_read, HeaderParserResult::Eof)
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
impl From<RfcHeader> for u8 {
|
||||
fn from(name: RfcHeader) -> Self {
|
||||
name as u8
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{parsers::header::parse_header_name, HeaderName};
|
||||
use crate::{parsers::header::parse_header_name, RfcHeader};
|
||||
|
||||
use super::HeaderParserResult;
|
||||
|
||||
#[test]
|
||||
fn header_name_parse() {
|
||||
let inputs = [
|
||||
("From: ", HeaderParserResult::Supported(HeaderName::From)),
|
||||
(
|
||||
"receiVED: ",
|
||||
HeaderParserResult::Supported(HeaderName::Received),
|
||||
),
|
||||
(
|
||||
" subject : ",
|
||||
HeaderParserResult::Supported(HeaderName::Subject),
|
||||
),
|
||||
("From: ", HeaderParserResult::Rfc(RfcHeader::From)),
|
||||
("receiVED: ", HeaderParserResult::Rfc(RfcHeader::Received)),
|
||||
(" subject : ", HeaderParserResult::Rfc(RfcHeader::Subject)),
|
||||
(
|
||||
"X-Custom-Field : ",
|
||||
HeaderParserResult::Unsupported(b"X-Custom-Field"),
|
||||
HeaderParserResult::Other("X-Custom-Field".into()),
|
||||
),
|
||||
(" T : ", HeaderParserResult::Unsupported(b"T")),
|
||||
(" T : ", HeaderParserResult::Other("T".into())),
|
||||
(
|
||||
"mal formed: ",
|
||||
HeaderParserResult::Unsupported(b"mal formed"),
|
||||
HeaderParserResult::Other("mal formed".into()),
|
||||
),
|
||||
(
|
||||
"MIME-version : ",
|
||||
HeaderParserResult::Supported(HeaderName::MimeVersion),
|
||||
HeaderParserResult::Rfc(RfcHeader::MimeVersion),
|
||||
),
|
||||
];
|
||||
|
||||
@@ -207,7 +208,7 @@ static HDR_PARSER: &[(
|
||||
(false, parse_address), // ReplyTo = 6,
|
||||
(false, parse_address), // Sender = 7,
|
||||
(true, parse_unstructured), // Comments = 8,
|
||||
(false, parse_address), // InReplyTo = 9,
|
||||
(false, parse_id), // InReplyTo = 9,
|
||||
(true, parse_comma_separared), // Keywords = 10,
|
||||
(true, parse_raw), // Received = 11,
|
||||
(false, parse_id), // MessageId = 12,
|
||||
@@ -235,7 +236,7 @@ static HDR_PARSER: &[(
|
||||
(false, parse_address), // ListPost = 34,
|
||||
(false, parse_address), // ListSubscribe = 35,
|
||||
(false, parse_address), // ListUnsubscribe = 36,
|
||||
(false, parse_raw), // Unsupported = 37,
|
||||
(true, parse_raw), // Other = 37,
|
||||
];
|
||||
|
||||
static HDR_HASH: &[u8] = &[
|
||||
@@ -252,76 +253,76 @@ static HDR_HASH: &[u8] = &[
|
||||
73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
|
||||
];
|
||||
|
||||
static HDR_MAP: &[HeaderName] = &[
|
||||
HeaderName::Date,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Sender,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Received,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::References,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Cc,
|
||||
HeaderName::Comments,
|
||||
HeaderName::ResentCc,
|
||||
HeaderName::ContentId,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ResentMessageId,
|
||||
HeaderName::ReplyTo,
|
||||
HeaderName::ResentTo,
|
||||
HeaderName::ResentBcc,
|
||||
HeaderName::ContentLanguage,
|
||||
HeaderName::Subject,
|
||||
HeaderName::ResentSender,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ResentDate,
|
||||
HeaderName::To,
|
||||
HeaderName::Bcc,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ContentTransferEncoding,
|
||||
HeaderName::ReturnPath,
|
||||
HeaderName::ListId,
|
||||
HeaderName::Keywords,
|
||||
HeaderName::ContentDescription,
|
||||
HeaderName::ListOwner,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ContentType,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ListHelp,
|
||||
HeaderName::MessageId,
|
||||
HeaderName::ContentLocation,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ListSubscribe,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ListPost,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ResentFrom,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ContentDisposition,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::InReplyTo,
|
||||
HeaderName::ListArchive,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::From,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::ListUnsubscribe,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::Unsupported,
|
||||
HeaderName::MimeVersion,
|
||||
static HDR_MAP: &[RfcHeader] = &[
|
||||
RfcHeader::Date,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::Sender,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::Received,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::References,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::Cc,
|
||||
RfcHeader::Comments,
|
||||
RfcHeader::ResentCc,
|
||||
RfcHeader::ContentId,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ResentMessageId,
|
||||
RfcHeader::ReplyTo,
|
||||
RfcHeader::ResentTo,
|
||||
RfcHeader::ResentBcc,
|
||||
RfcHeader::ContentLanguage,
|
||||
RfcHeader::Subject,
|
||||
RfcHeader::ResentSender,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ResentDate,
|
||||
RfcHeader::To,
|
||||
RfcHeader::Bcc,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ContentTransferEncoding,
|
||||
RfcHeader::ReturnPath,
|
||||
RfcHeader::ListId,
|
||||
RfcHeader::Keywords,
|
||||
RfcHeader::ContentDescription,
|
||||
RfcHeader::ListOwner,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ContentType,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ListHelp,
|
||||
RfcHeader::MessageId,
|
||||
RfcHeader::ContentLocation,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ListSubscribe,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ListPost,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ResentFrom,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ContentDisposition,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::InReplyTo,
|
||||
RfcHeader::ListArchive,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::From,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::ListUnsubscribe,
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion, // Invalid
|
||||
RfcHeader::MimeVersion,
|
||||
];
|
||||
|
||||
static HDR_NAMES: &[&[u8]] = &[
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
|
||||
* option. This file may not be copied, modified, or distributed
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
use std::io::{BufRead, BufReader, Read};
|
||||
|
||||
/// Parses an MBox mailbox from a `Read` stream, returning each message as a
|
||||
/// `Vec<u8>`.
|
||||
/// supports >From quoting as defined in the [QMail mbox specification](http://qmail.org/qmail-manual-html/man5/mbox.html).
|
||||
pub struct MBoxParser<T: Read> {
|
||||
reader: BufReader<T>,
|
||||
found_from: bool,
|
||||
}
|
||||
|
||||
impl<T> MBoxParser<T>
|
||||
where
|
||||
T: Read,
|
||||
{
|
||||
pub fn new(reader: T) -> MBoxParser<T> {
|
||||
MBoxParser {
|
||||
reader: BufReader::new(reader),
|
||||
found_from: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Iterator for MBoxParser<T>
|
||||
where
|
||||
T: Read,
|
||||
{
|
||||
type Item = Vec<u8>;
|
||||
|
||||
fn next(&mut self) -> Option<Vec<u8>> {
|
||||
let mut message = Vec::with_capacity(1024);
|
||||
let mut message_line = Vec::with_capacity(80);
|
||||
|
||||
while self
|
||||
.reader
|
||||
.read_until(b'\n', &mut message_line)
|
||||
.expect("Error while reading Mbox")
|
||||
> 0
|
||||
{
|
||||
let is_from = message_line
|
||||
.get(..5)
|
||||
.map(|line| line == b"From ")
|
||||
.unwrap_or(false);
|
||||
|
||||
if self.found_from {
|
||||
if !is_from {
|
||||
if message_line[0] != b'>' {
|
||||
message.append(&mut message_line);
|
||||
} else if message_line
|
||||
.iter()
|
||||
.skip_while(|&&ch| ch == b'>')
|
||||
.take(5)
|
||||
.copied()
|
||||
.collect::<Vec<u8>>()
|
||||
== b"From "
|
||||
{
|
||||
message.extend_from_slice(&message_line[1..]);
|
||||
message_line.clear();
|
||||
} else {
|
||||
message.append(&mut message_line);
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if is_from {
|
||||
self.found_from = true;
|
||||
}
|
||||
message_line.clear();
|
||||
}
|
||||
}
|
||||
|
||||
if !message.is_empty() {
|
||||
Some(message)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::MBoxParser;
|
||||
|
||||
#[test]
|
||||
fn parse_mbox() {
|
||||
let message = br#"From Mon, 15 Jan 2018 15:30:00 +0100
|
||||
Message 1
|
||||
|
||||
From Mon, 15 Jan 2018 15:30:00 +0100
|
||||
Message 2
|
||||
|
||||
From Mon, 15 Jan 2018 15:30:00 +0100
|
||||
Message 3
|
||||
>From hello
|
||||
>>From world
|
||||
>>>From test
|
||||
|
||||
From Mon, 15 Jan 2018 15:30:00 +0100
|
||||
Message 4
|
||||
> From
|
||||
>F
|
||||
"#;
|
||||
|
||||
let mut parser = MBoxParser::new(&message[..]);
|
||||
|
||||
assert_eq!(parser.next().unwrap(), b"Message 1\n\n");
|
||||
assert_eq!(parser.next().unwrap(), b"Message 2\n\n");
|
||||
assert_eq!(
|
||||
parser.next().unwrap(),
|
||||
b"Message 3\nFrom hello\n>From world\n>>From test\n\n"
|
||||
);
|
||||
assert_eq!(parser.next().unwrap(), b"Message 4\n> From\n>F\n");
|
||||
assert!(parser.next().is_none());
|
||||
}
|
||||
}
|
||||
+344
-164
@@ -13,19 +13,16 @@ use std::borrow::Cow;
|
||||
|
||||
use crate::{
|
||||
decoders::{
|
||||
base64::decode_base64,
|
||||
charsets::map::get_charset_decoder,
|
||||
html::{html_to_text, text_to_html},
|
||||
quoted_printable::decode_quoted_printable,
|
||||
DecodeFnc, DecodeResult,
|
||||
base64::decode_base64, charsets::map::get_charset_decoder,
|
||||
quoted_printable::decode_quoted_printable, DecodeFnc, DecodeResult,
|
||||
},
|
||||
BinaryPart, ContentType, HeaderName, HeaderValue, Headers, InlinePart, Message, MessagePart,
|
||||
TextPart,
|
||||
ContentType, HeaderName, HeaderValue, Message, MessageAttachment, MessagePart, MessagePartId,
|
||||
MessageStructure, MultiPart, Part, RawHeaders, RfcHeader, RfcHeaders,
|
||||
};
|
||||
|
||||
use super::{
|
||||
header::parse_headers,
|
||||
mime::{get_bytes_to_boundary, seek_next_part, skip_crlf, skip_multipart_end},
|
||||
mime::{get_bytes_to_boundary, seek_crlf_end, seek_next_part, skip_crlf, skip_multipart_end},
|
||||
};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
@@ -42,6 +39,12 @@ enum MimeType {
|
||||
Other,
|
||||
}
|
||||
|
||||
impl Default for MimeType {
|
||||
fn default() -> Self {
|
||||
MimeType::Message
|
||||
}
|
||||
}
|
||||
|
||||
fn result_to_string<'x>(
|
||||
result: DecodeResult,
|
||||
data: &'x [u8],
|
||||
@@ -111,6 +114,25 @@ fn get_mime_type(
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn add_missing_type<'x>(
|
||||
headers: &mut RfcHeaders<'x>,
|
||||
c_type: Cow<'x, str>,
|
||||
c_subtype: Cow<'x, str>,
|
||||
) {
|
||||
if headers.is_empty() {
|
||||
headers.insert(
|
||||
RfcHeader::ContentType,
|
||||
HeaderValue::ContentType(ContentType {
|
||||
c_type,
|
||||
c_subtype: Some(c_subtype),
|
||||
attributes: None,
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
struct MessageParserState {
|
||||
mime_type: MimeType,
|
||||
mime_boundary: Option<Vec<u8>>,
|
||||
@@ -120,6 +142,8 @@ struct MessageParserState {
|
||||
text_parts: usize,
|
||||
need_html_body: bool,
|
||||
need_text_body: bool,
|
||||
header_id: Option<MessagePartId>,
|
||||
structure: Vec<MessageStructure>,
|
||||
}
|
||||
|
||||
impl MessageParserState {
|
||||
@@ -133,6 +157,19 @@ impl MessageParserState {
|
||||
text_parts: 0,
|
||||
need_text_body: true,
|
||||
need_html_body: true,
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_structure(&mut self) -> MessageStructure {
|
||||
if let Some(header_id) = self.header_id {
|
||||
MessageStructure::MultiPart((header_id, std::mem::take(&mut self.structure)))
|
||||
} else if self.structure.len() > 1 {
|
||||
MessageStructure::List(std::mem::take(&mut self.structure))
|
||||
} else if self.structure.len() == 1 {
|
||||
self.structure.pop().unwrap()
|
||||
} else {
|
||||
MessageStructure::List(vec![])
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -151,14 +188,13 @@ impl<'x> MessageStream<'x> {
|
||||
impl<'x> Message<'x> {
|
||||
fn new() -> Message<'x> {
|
||||
Message {
|
||||
headers: Headers::new(),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns `false` if at least one header field was successfully parsed.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.headers.is_empty()
|
||||
self.headers_rfc.is_empty() && self.headers_raw.is_empty()
|
||||
}
|
||||
|
||||
/// Parses a byte slice containing the RFC5322 raw message and returns a
|
||||
@@ -167,8 +203,8 @@ impl<'x> Message<'x> {
|
||||
/// This function never panics, a best-effort is made to parse the message and
|
||||
/// if no headers are found None is returned.
|
||||
///
|
||||
pub fn parse(bytes: &'x [u8]) -> Option<Message<'x>> {
|
||||
let mut stream = MessageStream::new(bytes);
|
||||
pub fn parse(raw_message: &'x [u8]) -> Option<Message<'x>> {
|
||||
let mut stream = MessageStream::new(raw_message);
|
||||
|
||||
let mut message = Message::new();
|
||||
let mut message_stack = Vec::new();
|
||||
@@ -176,25 +212,37 @@ impl<'x> Message<'x> {
|
||||
let mut state = MessageParserState::new();
|
||||
let mut state_stack = Vec::new();
|
||||
|
||||
let mut mime_part_header = Headers::new();
|
||||
let mut mime_part_header = RfcHeaders::new();
|
||||
let mut mime_part_header_raw = RawHeaders::new();
|
||||
|
||||
'outer: loop {
|
||||
// Obtain reference to either the message or the MIME part's header
|
||||
let header = if let MimeType::Message = state.mime_type {
|
||||
&mut message.headers
|
||||
} else {
|
||||
&mut mime_part_header
|
||||
};
|
||||
|
||||
// Parse headers
|
||||
if !parse_headers(header, &mut stream) {
|
||||
break;
|
||||
}
|
||||
let (is_message, header) = if let MimeType::Message = state.mime_type {
|
||||
message.offset_header = stream.pos;
|
||||
if !parse_headers(
|
||||
&mut message.headers_rfc,
|
||||
&mut message.headers_raw,
|
||||
&mut stream,
|
||||
) {
|
||||
break;
|
||||
}
|
||||
message.offset_body = seek_crlf_end(&stream, stream.pos);
|
||||
(true, &mut message.headers_rfc)
|
||||
} else {
|
||||
if !parse_headers(
|
||||
&mut mime_part_header,
|
||||
&mut mime_part_header_raw,
|
||||
&mut stream,
|
||||
) {
|
||||
break;
|
||||
}
|
||||
(false, &mut mime_part_header)
|
||||
};
|
||||
|
||||
state.parts += 1;
|
||||
|
||||
let content_type = header
|
||||
.get(&HeaderName::ContentType)
|
||||
.get(&RfcHeader::ContentType)
|
||||
.and_then(|c| c.as_content_type_ref());
|
||||
|
||||
let (is_multipart, mut is_inline, mut is_text, mut mime_type) =
|
||||
@@ -212,13 +260,24 @@ impl<'x> Message<'x> {
|
||||
|| mime_type == MimeType::MultipartAlernative,
|
||||
mime_type,
|
||||
mime_boundary: mime_boundary.into(),
|
||||
parts: 0,
|
||||
html_parts: message.html_body.len(),
|
||||
text_parts: message.text_body.len(),
|
||||
need_html_body: state.need_html_body,
|
||||
need_text_body: state.need_text_body,
|
||||
header_id: if !is_message {
|
||||
Some(message.parts.len())
|
||||
} else {
|
||||
None
|
||||
},
|
||||
..Default::default()
|
||||
};
|
||||
mime_part_header.clear();
|
||||
if !is_message {
|
||||
add_missing_type(&mut mime_part_header, "text".into(), "plain".into());
|
||||
message.parts.push(MessagePart::Multipart(MultiPart::new(
|
||||
std::mem::take(&mut mime_part_header),
|
||||
std::mem::take(&mut mime_part_header_raw),
|
||||
)));
|
||||
}
|
||||
state_stack.push(state);
|
||||
state = new_state;
|
||||
skip_crlf(&mut stream);
|
||||
@@ -228,30 +287,12 @@ impl<'x> Message<'x> {
|
||||
is_text = true;
|
||||
}
|
||||
}
|
||||
} else if mime_type == MimeType::Message {
|
||||
let new_state = MessageParserState {
|
||||
mime_type: MimeType::Message,
|
||||
mime_boundary: state.mime_boundary.take(),
|
||||
in_alternative: false,
|
||||
parts: 0,
|
||||
html_parts: 0,
|
||||
text_parts: 0,
|
||||
need_html_body: true,
|
||||
need_text_body: true,
|
||||
};
|
||||
mime_part_header.clear();
|
||||
message_stack.push(message);
|
||||
state_stack.push(state);
|
||||
message = Message::new();
|
||||
state = new_state;
|
||||
skip_crlf(&mut stream);
|
||||
continue;
|
||||
}
|
||||
|
||||
skip_crlf(&mut stream);
|
||||
|
||||
let (is_binary, decode_fnc): (bool, DecodeFnc) = match header
|
||||
.get(&HeaderName::ContentTransferEncoding)
|
||||
.get(&RfcHeader::ContentTransferEncoding)
|
||||
{
|
||||
Some(HeaderValue::Text(encoding)) if encoding.eq_ignore_ascii_case("base64") => {
|
||||
(false, decode_base64)
|
||||
@@ -264,6 +305,30 @@ impl<'x> Message<'x> {
|
||||
_ => (true, get_bytes_to_boundary),
|
||||
};
|
||||
|
||||
state
|
||||
.structure
|
||||
.push(MessageStructure::Part(message.parts.len()));
|
||||
|
||||
if is_binary && mime_type == MimeType::Message {
|
||||
let new_state = MessageParserState {
|
||||
mime_type: MimeType::Message,
|
||||
mime_boundary: state.mime_boundary.take(),
|
||||
need_html_body: true,
|
||||
need_text_body: true,
|
||||
..Default::default()
|
||||
};
|
||||
add_missing_type(&mut mime_part_header, "message".into(), "rfc822".into());
|
||||
message_stack.push((
|
||||
message,
|
||||
std::mem::take(&mut mime_part_header),
|
||||
std::mem::take(&mut mime_part_header_raw),
|
||||
));
|
||||
state_stack.push(state);
|
||||
message = Message::new();
|
||||
state = new_state;
|
||||
continue;
|
||||
}
|
||||
|
||||
let (bytes_read, mut bytes) = decode_fnc(
|
||||
&stream,
|
||||
stream.pos,
|
||||
@@ -275,8 +340,10 @@ impl<'x> Message<'x> {
|
||||
);
|
||||
|
||||
// Attempt to recover contents of an invalid message
|
||||
if bytes_read == 0 {
|
||||
let is_encoding_problem = bytes_read == 0;
|
||||
if is_encoding_problem {
|
||||
if stream.pos >= stream.data.len() || (is_binary && state.mime_boundary.is_none()) {
|
||||
state.structure.pop();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -304,9 +371,11 @@ impl<'x> Message<'x> {
|
||||
bytes = r_bytes;
|
||||
stream.pos += bytes_read;
|
||||
} else {
|
||||
state.structure.pop();
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
state.structure.pop();
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@@ -320,108 +389,177 @@ impl<'x> Message<'x> {
|
||||
stream.pos += bytes_read;
|
||||
}
|
||||
|
||||
let is_inline = is_inline
|
||||
&& header
|
||||
.get(&HeaderName::ContentDisposition)
|
||||
.map_or_else(|| true, |d| !d.get_content_type().is_attachment())
|
||||
&& (state.parts == 1
|
||||
|| (state.mime_type != MimeType::MultipartRelated
|
||||
&& (mime_type == MimeType::Inline
|
||||
|| content_type.map_or_else(|| true, |c| !c.has_attribute("name")))));
|
||||
if mime_type != MimeType::Message {
|
||||
let is_inline = is_inline
|
||||
&& header
|
||||
.get(&RfcHeader::ContentDisposition)
|
||||
.map_or_else(|| true, |d| !d.get_content_type().is_attachment())
|
||||
&& (state.parts == 1
|
||||
|| (state.mime_type != MimeType::MultipartRelated
|
||||
&& (mime_type == MimeType::Inline
|
||||
|| content_type
|
||||
.map_or_else(|| true, |c| !c.has_attribute("name")))));
|
||||
|
||||
let (add_to_html, add_to_text) = if let MimeType::MultipartAlernative = state.mime_type
|
||||
{
|
||||
match mime_type {
|
||||
MimeType::TextHtml => (true, false),
|
||||
MimeType::TextPlain => (false, true),
|
||||
_ => (false, false),
|
||||
}
|
||||
} else if is_inline {
|
||||
if state.in_alternative && (state.need_text_body || state.need_html_body) {
|
||||
match mime_type {
|
||||
MimeType::TextHtml => {
|
||||
state.need_text_body = false;
|
||||
let (add_to_html, add_to_text) =
|
||||
if let MimeType::MultipartAlernative = state.mime_type {
|
||||
match mime_type {
|
||||
MimeType::TextHtml => (true, false),
|
||||
MimeType::TextPlain => (false, true),
|
||||
_ => (false, false),
|
||||
}
|
||||
MimeType::TextPlain => {
|
||||
state.need_html_body = false;
|
||||
} else if is_inline {
|
||||
if state.in_alternative && (state.need_text_body || state.need_html_body) {
|
||||
match mime_type {
|
||||
MimeType::TextHtml => {
|
||||
state.need_text_body = false;
|
||||
}
|
||||
MimeType::TextPlain => {
|
||||
state.need_html_body = false;
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
(state.need_html_body, state.need_text_body)
|
||||
} else {
|
||||
(false, false)
|
||||
};
|
||||
|
||||
if is_text {
|
||||
let is_html = mime_type == MimeType::TextHtml;
|
||||
let mut text_part = Part {
|
||||
body: result_to_string(bytes, stream.data, content_type),
|
||||
headers_rfc: std::mem::take(&mut mime_part_header),
|
||||
headers_raw: std::mem::take(&mut mime_part_header_raw),
|
||||
is_encoding_problem,
|
||||
};
|
||||
|
||||
// If there is a single part in the message, move MIME headers
|
||||
// to the part
|
||||
if is_message {
|
||||
for header_name in [
|
||||
RfcHeader::ContentType,
|
||||
RfcHeader::ContentDisposition,
|
||||
RfcHeader::ContentId,
|
||||
RfcHeader::ContentLanguage,
|
||||
RfcHeader::ContentLocation,
|
||||
RfcHeader::ContentTransferEncoding,
|
||||
RfcHeader::ContentDescription,
|
||||
] {
|
||||
if let Some(value) = message.headers_rfc.remove(&header_name) {
|
||||
text_part.headers_rfc.insert(header_name, value);
|
||||
}
|
||||
if let Some(value) =
|
||||
message.headers_raw.get(&HeaderName::Rfc(header_name))
|
||||
{
|
||||
text_part
|
||||
.headers_raw
|
||||
.insert(HeaderName::Rfc(header_name), value.to_vec());
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
(state.need_html_body, state.need_text_body)
|
||||
} else {
|
||||
(false, false)
|
||||
};
|
||||
add_missing_type(&mut text_part.headers_rfc, "text".into(), "plain".into());
|
||||
|
||||
if is_text {
|
||||
let text_part = TextPart {
|
||||
contents: result_to_string(bytes, stream.data, content_type),
|
||||
headers: if !mime_part_header.is_empty() {
|
||||
Some(std::mem::take(&mut mime_part_header))
|
||||
if add_to_html && !is_html {
|
||||
message.html_body.push(message.parts.len());
|
||||
} else if add_to_text && is_html {
|
||||
message.text_body.push(message.parts.len());
|
||||
}
|
||||
|
||||
if add_to_html && is_html {
|
||||
message.html_body.push(message.parts.len());
|
||||
} else if add_to_text && !is_html {
|
||||
message.text_body.push(message.parts.len());
|
||||
} else {
|
||||
None
|
||||
},
|
||||
};
|
||||
message.attachments.push(message.parts.len());
|
||||
}
|
||||
|
||||
let is_html = mime_type == MimeType::TextHtml;
|
||||
|
||||
if add_to_html && !is_html {
|
||||
message.html_body.push(InlinePart::Text(TextPart {
|
||||
headers: None,
|
||||
contents: text_to_html(&text_part.contents).into(),
|
||||
}));
|
||||
} else if add_to_text && is_html {
|
||||
message.text_body.push(InlinePart::Text(TextPart {
|
||||
headers: None,
|
||||
contents: html_to_text(&text_part.contents).into(),
|
||||
}));
|
||||
}
|
||||
|
||||
if add_to_html && is_html {
|
||||
message.html_body.push(InlinePart::Text(text_part));
|
||||
} else if add_to_text && !is_html {
|
||||
message.text_body.push(InlinePart::Text(text_part));
|
||||
} else {
|
||||
message.attachments.push(MessagePart::Text(text_part));
|
||||
}
|
||||
} else {
|
||||
let binary_part = BinaryPart {
|
||||
headers: if !mime_part_header.is_empty() {
|
||||
Some(std::mem::take(&mut mime_part_header))
|
||||
message.parts.push(if is_html {
|
||||
MessagePart::Html(text_part)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
contents: result_to_bytes(bytes, stream.data),
|
||||
};
|
||||
|
||||
if add_to_html {
|
||||
message
|
||||
.html_body
|
||||
.push(InlinePart::InlineBinary(message.attachments.len() as u32));
|
||||
}
|
||||
if add_to_text {
|
||||
message
|
||||
.text_body
|
||||
.push(InlinePart::InlineBinary(message.attachments.len() as u32));
|
||||
}
|
||||
|
||||
message.attachments.push(if !is_inline {
|
||||
MessagePart::Binary(binary_part)
|
||||
MessagePart::Text(text_part)
|
||||
});
|
||||
} else {
|
||||
MessagePart::InlineBinary(binary_part)
|
||||
});
|
||||
};
|
||||
if add_to_html {
|
||||
message.html_body.push(message.parts.len());
|
||||
}
|
||||
if add_to_text {
|
||||
message.text_body.push(message.parts.len());
|
||||
}
|
||||
|
||||
message.attachments.push(message.parts.len());
|
||||
|
||||
let mut binary_part = Part::new(
|
||||
std::mem::take(&mut mime_part_header),
|
||||
std::mem::take(&mut mime_part_header_raw),
|
||||
result_to_bytes(bytes, stream.data),
|
||||
is_encoding_problem,
|
||||
);
|
||||
|
||||
// If there is a single part in the message, move MIME headers
|
||||
// to the part
|
||||
if is_message {
|
||||
for header_name in [
|
||||
RfcHeader::ContentType,
|
||||
RfcHeader::ContentDisposition,
|
||||
RfcHeader::ContentId,
|
||||
RfcHeader::ContentLanguage,
|
||||
RfcHeader::ContentLocation,
|
||||
RfcHeader::ContentTransferEncoding,
|
||||
RfcHeader::ContentDescription,
|
||||
] {
|
||||
if let Some(value) = message.headers_rfc.remove(&header_name) {
|
||||
binary_part.headers_rfc.insert(header_name, value);
|
||||
}
|
||||
if let Some(value) =
|
||||
message.headers_raw.get(&HeaderName::Rfc(header_name))
|
||||
{
|
||||
binary_part
|
||||
.headers_raw
|
||||
.insert(HeaderName::Rfc(header_name), value.to_vec());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
message.parts.push(if !is_inline {
|
||||
MessagePart::Binary(binary_part)
|
||||
} else {
|
||||
MessagePart::InlineBinary(binary_part)
|
||||
});
|
||||
};
|
||||
} else {
|
||||
add_missing_type(&mut mime_part_header, "message".into(), "rfc822".into());
|
||||
message.attachments.push(message.parts.len());
|
||||
message.parts.push(MessagePart::Message(Part::new(
|
||||
std::mem::take(&mut mime_part_header),
|
||||
std::mem::take(&mut mime_part_header_raw),
|
||||
MessageAttachment::Raw(result_to_bytes(bytes, stream.data)),
|
||||
is_encoding_problem,
|
||||
)));
|
||||
}
|
||||
|
||||
if state.mime_boundary.is_some() {
|
||||
// Currently processing a MIME part
|
||||
let mut last_part_offset = stream.pos;
|
||||
|
||||
'inner: loop {
|
||||
if let MimeType::Message = state.mime_type {
|
||||
// Finished processing nested message, restore parent message from stack
|
||||
if let (Some(mut prev_message), Some(mut prev_state)) =
|
||||
(message_stack.pop(), state_stack.pop())
|
||||
if let (
|
||||
Some((mut prev_message, headers, headers_raw)),
|
||||
Some(mut prev_state),
|
||||
) = (message_stack.pop(), state_stack.pop())
|
||||
{
|
||||
prev_message.attachments.push(MessagePart::Message(message));
|
||||
message.structure = state.get_structure();
|
||||
message.offset_end = seek_crlf_end(&stream, last_part_offset);
|
||||
message.raw_message =
|
||||
raw_message[message.offset_header..message.offset_end].into();
|
||||
prev_message.attachments.push(prev_message.parts.len());
|
||||
prev_message.parts.push(MessagePart::Message(Part::new(
|
||||
headers,
|
||||
headers_raw,
|
||||
MessageAttachment::Parsed(Box::new(message)),
|
||||
false,
|
||||
)));
|
||||
message = prev_message;
|
||||
prev_state.mime_boundary = state.mime_boundary;
|
||||
state = prev_state;
|
||||
@@ -442,16 +580,8 @@ impl<'x> Message<'x> {
|
||||
if state.text_parts == message.text_body.len()
|
||||
&& state.html_parts != message.html_body.len()
|
||||
{
|
||||
for part in message.html_body[state.html_parts..].iter() {
|
||||
message.text_body.push(match part {
|
||||
InlinePart::Text(part) => InlinePart::Text(TextPart {
|
||||
headers: None,
|
||||
contents: html_to_text(&part.contents).into(),
|
||||
}),
|
||||
InlinePart::InlineBinary(index) => {
|
||||
InlinePart::InlineBinary(*index)
|
||||
}
|
||||
});
|
||||
for &part_id in &message.html_body[state.html_parts..] {
|
||||
message.text_body.push(part_id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -459,23 +589,19 @@ impl<'x> Message<'x> {
|
||||
if state.html_parts == message.html_body.len()
|
||||
&& state.text_parts != message.text_body.len()
|
||||
{
|
||||
for part in message.text_body[state.text_parts..].iter() {
|
||||
message.html_body.push(match part {
|
||||
InlinePart::Text(part) => InlinePart::Text(TextPart {
|
||||
headers: None,
|
||||
contents: text_to_html(&part.contents).into(),
|
||||
}),
|
||||
InlinePart::InlineBinary(index) => {
|
||||
InlinePart::InlineBinary(*index)
|
||||
}
|
||||
});
|
||||
for &part_id in &message.text_body[state.html_parts..] {
|
||||
message.html_body.push(part_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(prev_state) = state_stack.pop() {
|
||||
if let Some(mut prev_state) = state_stack.pop() {
|
||||
// Add headers and substructure to parent part
|
||||
prev_state.structure.push(state.get_structure());
|
||||
|
||||
// Restore ancestor's state
|
||||
state = prev_state;
|
||||
last_part_offset = stream.pos;
|
||||
|
||||
if let Some(ref mime_boundary) = state.mime_boundary {
|
||||
// Ancestor has a MIME boundary, seek it.
|
||||
@@ -496,13 +622,29 @@ impl<'x> Message<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
while let Some(mut prev_message) = message_stack.pop() {
|
||||
while let (Some((mut prev_message, headers, headers_raw)), Some(prev_state)) =
|
||||
(message_stack.pop(), state_stack.pop())
|
||||
{
|
||||
message.offset_end = stream.pos;
|
||||
if !message.is_empty() {
|
||||
prev_message.attachments.push(MessagePart::Message(message));
|
||||
message.structure = state.get_structure();
|
||||
message.raw_message = raw_message[message.offset_header..message.offset_end].into();
|
||||
prev_message.attachments.push(prev_message.parts.len());
|
||||
prev_message.parts.push(MessagePart::Message(Part::new(
|
||||
headers,
|
||||
headers_raw,
|
||||
MessageAttachment::Parsed(Box::new(message)),
|
||||
false,
|
||||
)));
|
||||
}
|
||||
message = prev_message;
|
||||
state = prev_state;
|
||||
}
|
||||
|
||||
message.raw_message = raw_message.into();
|
||||
message.structure = state.get_structure();
|
||||
message.offset_end = stream.pos;
|
||||
|
||||
if !message.is_empty() {
|
||||
Some(message)
|
||||
} else {
|
||||
@@ -514,12 +656,14 @@ impl<'x> Message<'x> {
|
||||
mod tests {
|
||||
use std::{fs, path::PathBuf};
|
||||
|
||||
use serde_json::Value;
|
||||
|
||||
use crate::parsers::message::Message;
|
||||
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----".as_bytes();
|
||||
|
||||
#[test]
|
||||
fn parse_full_messages() {
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----\n".as_bytes();
|
||||
|
||||
for test_suite in ["rfc", "legacy", "thirdparty", "malformed"] {
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
test_dir.push("tests");
|
||||
@@ -550,13 +694,17 @@ mod tests {
|
||||
|
||||
let input = input.split_at_mut(pos);
|
||||
let message = Message::parse(input.0).unwrap();
|
||||
let json_message = serde_json::to_string_pretty(&message).unwrap();
|
||||
|
||||
assert_eq!(
|
||||
message,
|
||||
serde_json::from_slice::<Message>(&input.1[SEPARATOR.len()..]).unwrap(),
|
||||
serde_json::from_str::<Value>(&json_message).unwrap(),
|
||||
serde_json::from_str::<Value>(
|
||||
std::str::from_utf8(&input.1[SEPARATOR.len()..]).unwrap()
|
||||
)
|
||||
.unwrap(),
|
||||
"Test failed for '{}', result was:\n{}",
|
||||
file_name.display(),
|
||||
serde_json::to_string_pretty(&message).unwrap()
|
||||
json_message
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -569,12 +717,43 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/*#[test]
|
||||
fn message_to_yaml() {
|
||||
let mut file_name = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
file_name.push("tests");
|
||||
file_name.push("rfc");
|
||||
file_name.push("003.txt");
|
||||
|
||||
let mut input = fs::read(&file_name).unwrap();
|
||||
let mut pos = 0;
|
||||
|
||||
for sep_pos in 0..input.len() {
|
||||
if input[sep_pos..sep_pos + SEPARATOR.len()].eq(SEPARATOR) {
|
||||
pos = sep_pos;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
assert!(
|
||||
pos > 0,
|
||||
"Failed to find separator in test file '{}'.",
|
||||
file_name.display()
|
||||
);
|
||||
|
||||
let input = input.split_at_mut(pos).0;
|
||||
let message = Message::parse(input).unwrap();
|
||||
let result = serde_yaml::to_string(&message).unwrap();
|
||||
|
||||
fs::write("test.yaml", &result).unwrap();
|
||||
|
||||
println!("{:}", result);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn generate_test_samples() {
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----\n".as_bytes();
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----".as_bytes();
|
||||
|
||||
for test_suite in ["malformed", "legacy", "rfc", "thirdparty"] {
|
||||
for test_suite in ["legacy", "malformed", "rfc", "thirdparty"] {
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
test_dir.push("tests");
|
||||
test_dir.push(test_suite);
|
||||
@@ -591,6 +770,7 @@ mod tests {
|
||||
continue;
|
||||
}
|
||||
|
||||
println!("{:}", file_name.as_ref().unwrap().path().display());
|
||||
let mut input = fs::read(file_name.as_ref().unwrap().path()).unwrap();
|
||||
let mut pos = 0;
|
||||
for sep_pos in 0..input.len() {
|
||||
@@ -611,8 +791,8 @@ mod tests {
|
||||
output.extend_from_slice(input.0);
|
||||
output.extend_from_slice(SEPARATOR);
|
||||
output.extend_from_slice(
|
||||
serde_json::to_string_pretty(&Message::parse(input.0))
|
||||
.unwrap_or_else(|_| "".to_string())
|
||||
serde_json::to_string_pretty(&Message::parse(input.0).unwrap())
|
||||
.unwrap()
|
||||
.as_bytes(),
|
||||
);
|
||||
fs::write(file_name.as_ref().unwrap().path(), &output).unwrap();
|
||||
|
||||
+22
-6
@@ -19,7 +19,7 @@ pub fn seek_next_part(stream: &mut MessageStream, boundary: &[u8]) -> bool {
|
||||
|
||||
let mut match_count = 0;
|
||||
|
||||
for ch in stream.data[pos..].iter() {
|
||||
for ch in &stream.data[pos..] {
|
||||
pos += 1;
|
||||
|
||||
if ch == &boundary[match_count] {
|
||||
@@ -52,17 +52,21 @@ pub fn get_bytes_to_boundary<'x>(
|
||||
) -> (usize, DecodeResult) {
|
||||
let mut read_pos = start_pos;
|
||||
|
||||
return if !boundary.is_empty() {
|
||||
if !boundary.is_empty() {
|
||||
let mut match_count = 0;
|
||||
|
||||
for ch in stream.data[read_pos..].iter() {
|
||||
for ch in &stream.data[read_pos..] {
|
||||
read_pos += 1;
|
||||
|
||||
if ch == &boundary[match_count] {
|
||||
match_count += 1;
|
||||
if match_count == boundary.len() {
|
||||
if is_boundary_end(stream, read_pos) {
|
||||
let match_pos = read_pos - match_count;
|
||||
let mut match_pos = read_pos - match_count;
|
||||
|
||||
if let Some(b'\r') = stream.data.get(match_pos - 1) {
|
||||
match_pos -= 1;
|
||||
}
|
||||
|
||||
return (
|
||||
read_pos - start_pos,
|
||||
@@ -95,7 +99,7 @@ pub fn get_bytes_to_boundary<'x>(
|
||||
)
|
||||
} else {
|
||||
(0, DecodeResult::Empty)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
@@ -123,7 +127,7 @@ pub fn skip_multipart_end(stream: &mut MessageStream) -> bool {
|
||||
|
||||
#[inline(always)]
|
||||
pub fn skip_crlf(stream: &mut MessageStream) {
|
||||
for ch in stream.data[stream.pos..].iter() {
|
||||
for ch in &stream.data[stream.pos..] {
|
||||
match ch {
|
||||
b'\r' | b' ' | b'\t' => stream.pos += 1,
|
||||
b'\n' => {
|
||||
@@ -134,3 +138,15 @@ pub fn skip_crlf(stream: &mut MessageStream) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn seek_crlf_end(stream: &MessageStream, mut start_pos: usize) -> usize {
|
||||
for ch in &stream.data[start_pos..] {
|
||||
if ch.is_ascii_whitespace() {
|
||||
start_pos += 1;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
start_pos
|
||||
}
|
||||
|
||||
@@ -11,5 +11,7 @@
|
||||
|
||||
pub mod fields;
|
||||
pub mod header;
|
||||
pub mod mbox;
|
||||
pub mod message;
|
||||
pub mod mime;
|
||||
pub mod preview;
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
|
||||
* option. This file may not be copied, modified, or distributed
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::decoders::html::html_to_text;
|
||||
|
||||
pub fn preview_html<'x, 'y>(html: Cow<'y, str>, max_len: usize) -> Cow<'x, str> {
|
||||
preview_text(html_to_text(html.as_ref()).into(), max_len)
|
||||
}
|
||||
|
||||
pub fn preview_text<'x, 'y>(text: Cow<'y, str>, max_len: usize) -> Cow<'x, str> {
|
||||
if text.len() > max_len {
|
||||
let mut result = String::with_capacity(max_len);
|
||||
for ch in text.chars() {
|
||||
if ch.len_utf8() + result.len() + 3 > max_len {
|
||||
break;
|
||||
}
|
||||
result.push(ch);
|
||||
}
|
||||
result.push_str("...");
|
||||
result.into()
|
||||
} else {
|
||||
text.into_owned().into()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn truncate_text<'x, 'y>(text: Cow<'y, str>, max_len: usize) -> Cow<'x, str> {
|
||||
preview_text(text, max_len)
|
||||
}
|
||||
|
||||
pub fn truncate_html<'x, 'y>(html: Cow<'y, str>, max_len: usize) -> Cow<'x, str> {
|
||||
if html.len() > max_len {
|
||||
let mut result = String::with_capacity(max_len);
|
||||
let mut in_tag = false;
|
||||
let mut in_comment = false;
|
||||
let mut last_tag_end_pos = 0;
|
||||
for (pos, ch) in html.char_indices() {
|
||||
let mut set_last_tag = 0;
|
||||
match ch {
|
||||
'<' if !in_tag => {
|
||||
in_tag = true;
|
||||
if let Some("!--") = html.get(pos + 1..pos + 4) {
|
||||
in_comment = true;
|
||||
}
|
||||
set_last_tag = pos;
|
||||
}
|
||||
'>' if in_tag => {
|
||||
if in_comment {
|
||||
if let Some("--") = html.get(pos - 2..pos) {
|
||||
in_comment = false;
|
||||
in_tag = false;
|
||||
set_last_tag = pos + 1;
|
||||
}
|
||||
} else {
|
||||
in_tag = false;
|
||||
set_last_tag = pos + 1;
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
if ch.len_utf8() + pos + 3 > max_len {
|
||||
result.push_str(
|
||||
&html[0..if (in_tag || set_last_tag > 0) && last_tag_end_pos > 0 {
|
||||
last_tag_end_pos
|
||||
} else {
|
||||
pos
|
||||
}],
|
||||
);
|
||||
result.push_str("...");
|
||||
break;
|
||||
} else if set_last_tag > 0 {
|
||||
last_tag_end_pos = set_last_tag;
|
||||
}
|
||||
}
|
||||
result.into()
|
||||
} else {
|
||||
html.into_owned().into()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn text_preview() {
|
||||
let text_1 = concat!(
|
||||
"J'interdis aux marchands de vanter trop leurs marchandises. ",
|
||||
"Car ils se fontvite pédagogues et t'enseignent comme but ce qui ",
|
||||
"n'est par essence qu'un moyen, et te trompant ainsi sur la route ",
|
||||
"à suivre les voilà bientôt qui te dégradent, car si leur musique ",
|
||||
"est vulgaire ils te fabriquent pour te la vendre une âme vulgaire.\n",
|
||||
"— Antoine de Saint-Exupéry, Citadelle (1948)"
|
||||
);
|
||||
let text_2 = concat!(
|
||||
"長沮、桀溺耦而耕,孔子過之,使子路問津焉。長沮曰:「夫執輿者為誰?」",
|
||||
"子路曰:「為孔丘。」曰:「是魯孔丘與?」曰:「是也。」曰:「是知津矣。」問於桀溺,",
|
||||
"桀溺曰:「子為誰?」曰:「為仲由。」曰:「是魯孔丘之徒與?」對曰:「然。",
|
||||
"」曰:「滔滔者天下皆是也,而誰以易之?且而與其從辟人之士也,豈若從",
|
||||
"辟世之士哉?」耰而不輟。子路行以告。夫子憮然曰:「鳥獸不可與同群,吾非斯人之徒",
|
||||
"與而誰與?天下有道,丘不與易也。」",
|
||||
"子路從而後,遇丈人,以杖荷蓧。子路問曰:「子見夫子乎?」丈人曰:「四體不勤,",
|
||||
"五穀不分。孰為夫子?」植其杖而芸。子路拱而立。止子路宿,殺雞為黍而食之,見其二",
|
||||
"子焉。明日,子路行以告。子曰:「隱者也。」使子路反見之。至則行矣。子路曰:「",
|
||||
"不仕無義。長幼之節,不可廢也;君臣之義,如之何其廢之?欲潔其身,而亂大倫。君",
|
||||
"子之仕也,行其義也。道之不行,已知之矣。」"
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
super::truncate_text(text_1.into(), 110),
|
||||
"J'interdis aux marchands de vanter trop leurs marchandises. Car ils se fontvite pédagogues et t'enseignent..."
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
super::truncate_text(text_2.into(), 110),
|
||||
"長沮、桀溺耦而耕,孔子過之,使子路問津焉。長沮曰:「夫執輿者為誰?」子..."
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn html_truncate() {
|
||||
for (html, expected_result) in [
|
||||
(
|
||||
"<html>hello<br/>world<br/></html>",
|
||||
"<html>hello<br/>world...",
|
||||
),
|
||||
("<html>using <><br/></html>", "<html>using <><br/>..."),
|
||||
(
|
||||
"test <not br/>tag<br />test <not br/>tag<br />",
|
||||
"test <not br/>tag...",
|
||||
),
|
||||
(
|
||||
"<>< ><tag\n/>>hello world< br \n />",
|
||||
"<>< ><tag\n/>>hello ...",
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
"<head><title>ignore head</title><not head>xyz</not head></head>",
|
||||
"<h1><body></h1>"
|
||||
),
|
||||
"<head><title>ignore he...",
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
"<p>what is ♥?</p><p>ßĂΒγ ",
|
||||
"don't hurt me.</p>"
|
||||
),
|
||||
"<p>what is ♥...",
|
||||
),
|
||||
(
|
||||
"<!-- <> < < < -->the actual<!--> text",
|
||||
"<!-- <> < < < -->the a...",
|
||||
),
|
||||
(
|
||||
" < p > hello < / p > < p > world < / p > !!! < br > ",
|
||||
" < p > hello ...",
|
||||
),
|
||||
(
|
||||
" <p>please unsubscribe <a href=#>here</a>.</p> ",
|
||||
" <p>please unsubscribe...",
|
||||
),
|
||||
] {
|
||||
assert_eq!(super::truncate_html(html.into(), 25), expected_result);
|
||||
}
|
||||
}
|
||||
}
|
||||
+79
-80
@@ -13,75 +13,77 @@ use mail_parser::*;
|
||||
|
||||
#[test]
|
||||
fn test_api() {
|
||||
let input = concat!(
|
||||
"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)\n",
|
||||
"To: \"Colleagues\": \"James Smythe\" <james@vandelay.com>; Friends:\n",
|
||||
" jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;\n",
|
||||
"Date: Sat, 20 Nov 2021 14:22:01 -0800\n",
|
||||
"Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=\n",
|
||||
"Content-Type: multipart/mixed; boundary=\"festivus\";\n\n",
|
||||
"--festivus\n",
|
||||
"Content-Type: text/html; charset=\"us-ascii\"\n",
|
||||
"Content-Transfer-Encoding: base64\n\n",
|
||||
"PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle\n",
|
||||
"HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm\n",
|
||||
"cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8\n",
|
||||
"gJiN4MjYzQTs8L3A+PC9odG1sPg==\n",
|
||||
"--festivus\n",
|
||||
"Content-Type: message/rfc822\n\n",
|
||||
"From: \"Cosmo Kramer\" <kramer@kramerica.com>\n",
|
||||
"Subject: Exporting my book about coffee tables\n",
|
||||
"Content-Type: multipart/mixed; boundary=\"giddyup\";\n\n",
|
||||
"--giddyup\n",
|
||||
"Content-Type: text/plain; charset=\"utf-16\"\n",
|
||||
"Content-Transfer-Encoding: quoted-printable\n\n",
|
||||
"=FF=FE=0C!5=D8\"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8\"=DD =005=D8\"=\n",
|
||||
"=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =\n",
|
||||
"=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8\"=\n",
|
||||
"=DD5=D8=1E=DD5=D80=DD5=D8\"=DD!=00\n",
|
||||
"--giddyup\n",
|
||||
"Content-Type: image/gif; name*1=\"about \"; name*0=\"Book \";\n",
|
||||
" name*2*=utf-8''%e2%98%95 tables.gif\n",
|
||||
"Content-Transfer-Encoding: Base64\n",
|
||||
"Content-Disposition: attachment\n\n",
|
||||
"R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\n",
|
||||
"--giddyup--\n",
|
||||
"--festivus--\n",
|
||||
)
|
||||
.as_bytes();
|
||||
let input = br#"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)
|
||||
To: "Colleagues": "James Smythe" <james@vandelay.com>; Friends:
|
||||
jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;
|
||||
Date: Sat, 20 Nov 2021 14:22:01 -0800
|
||||
Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=
|
||||
Content-Type: multipart/mixed; boundary="festivus";
|
||||
|
||||
--festivus
|
||||
Content-Type: text/html; charset="us-ascii"
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle
|
||||
HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm
|
||||
cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8
|
||||
gJiN4MjYzQTs8L3A+PC9odG1sPg==
|
||||
--festivus
|
||||
Content-Type: message/rfc822
|
||||
|
||||
From: "Cosmo Kramer" <kramer@kramerica.com>
|
||||
Subject: Exporting my book about coffee tables
|
||||
Content-Type: multipart/mixed; boundary="giddyup";
|
||||
|
||||
--giddyup
|
||||
Content-Type: text/plain; charset="utf-16"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
=FF=FE=0C!5=D8"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8"=DD =005=D8"=
|
||||
=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =
|
||||
=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8"=
|
||||
=DD5=D8=1E=DD5=D80=DD5=D8"=DD!=00
|
||||
--giddyup
|
||||
Content-Type: image/gif; name*1="about "; name*0="Book ";
|
||||
name*2*=utf-8''%e2%98%95 tables.gif
|
||||
Content-Transfer-Encoding: Base64
|
||||
Content-Disposition: attachment
|
||||
|
||||
R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
--giddyup--
|
||||
--festivus--
|
||||
"#;
|
||||
|
||||
let message = Message::parse(input).unwrap();
|
||||
|
||||
assert_eq!(
|
||||
message.get_from(),
|
||||
&HeaderValue::Address(Addr {
|
||||
name: Some("Art Vandelay (Vandelay Industries)".into()),
|
||||
address: Some("art@vandelay.com".into())
|
||||
})
|
||||
bincode::deserialize::<RfcHeaders>(&bincode::serialize(&message.headers_rfc).unwrap())
|
||||
.unwrap(),
|
||||
message.headers_rfc
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_from(),
|
||||
&HeaderValue::Address(Addr::new(
|
||||
"Art Vandelay (Vandelay Industries)".into(),
|
||||
"art@vandelay.com"
|
||||
))
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_to(),
|
||||
&HeaderValue::GroupList(vec![
|
||||
Group {
|
||||
name: Some("Colleagues".into()),
|
||||
addresses: vec![Addr {
|
||||
name: Some("James Smythe".into()),
|
||||
address: Some("james@vandelay.com".into())
|
||||
}]
|
||||
},
|
||||
Group {
|
||||
name: Some("Friends".into()),
|
||||
addresses: vec![
|
||||
Addr {
|
||||
name: None,
|
||||
address: Some("jane@example.com".into())
|
||||
},
|
||||
Addr {
|
||||
name: Some("John Smîth".into()),
|
||||
address: Some("john@example.com".into())
|
||||
}
|
||||
Group::new(
|
||||
"Colleagues",
|
||||
vec![Addr::new("James Smythe".into(), "james@vandelay.com")]
|
||||
),
|
||||
Group::new(
|
||||
"Friends",
|
||||
vec![
|
||||
Addr::new(None, "jane@example.com"),
|
||||
Addr::new("John Smîth".into(), "john@example.com"),
|
||||
]
|
||||
}
|
||||
)
|
||||
])
|
||||
);
|
||||
|
||||
@@ -89,55 +91,52 @@ fn test_api() {
|
||||
message.get_date().unwrap().to_iso8601(),
|
||||
"2021-11-20T14:22:01-08:00"
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_subject().unwrap(),
|
||||
"Why not both importing AND exporting? ☺"
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_html_body(0).unwrap().to_string(),
|
||||
message.get_html_body(0).unwrap(),
|
||||
concat!(
|
||||
"<html><p>I was thinking about quitting the “exporting” to ",
|
||||
"focus just on the “importing”,</p><p>but then I thought,",
|
||||
" why not do both? ☺</p></html>"
|
||||
)
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_text_body(0).unwrap().to_string(),
|
||||
message.get_text_body(0).unwrap(),
|
||||
concat!(
|
||||
"I was thinking about quitting the “exporting” to focus just on the",
|
||||
" “importing”,\nbut then I thought, why not do both? ☺\n"
|
||||
)
|
||||
);
|
||||
let nested_message = match message.get_attachment(0).unwrap() {
|
||||
MessagePart::Message(v) => v,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
let nested_message = message.get_attachment(0).unwrap().unwrap_message();
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
"Exporting my book about coffee tables"
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_text_body(0).unwrap().to_string(),
|
||||
nested_message.get_text_body(0).unwrap(),
|
||||
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_html_body(0).unwrap().to_string(),
|
||||
nested_message.get_html_body(0).unwrap(),
|
||||
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
|
||||
);
|
||||
let nested_attachment = match nested_message.get_attachment(0).unwrap() {
|
||||
MessagePart::Binary(v) => v,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
|
||||
|
||||
assert_eq!(nested_attachment.len(), 42);
|
||||
|
||||
assert_eq!(
|
||||
nested_attachment
|
||||
.get_content_type()
|
||||
.unwrap()
|
||||
.get_attribute("name")
|
||||
.unwrap(),
|
||||
nested_attachment.get_attachment_name().unwrap(),
|
||||
"Book about ☕ tables.gif"
|
||||
);
|
||||
|
||||
//println!("{}", serde_json::to_string_pretty(&message).unwrap());
|
||||
//println!("{}", serde_yaml::to_string(&message).unwrap());
|
||||
}
|
||||
|
||||
+59
-45
@@ -42,11 +42,28 @@ QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
|
||||
tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
|
||||
IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -60,50 +77,41 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"contents": [
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1560,5 +1568,11 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 578,
|
||||
"offset_end": 2570
|
||||
}
|
||||
+42
-30
@@ -33,15 +33,8 @@ ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein =
|
||||
m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
@@ -54,15 +47,6 @@ m+APw-ssen als wir.+ACI-=20
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -76,27 +60,55 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 614,
|
||||
"offset_end": 1491
|
||||
}
|
||||
+40
-28
@@ -35,15 +35,8 @@ wir." <br>
|
||||
</font></html>
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -63,36 +56,55 @@ wir." <br>
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 500,
|
||||
"offset_end": 1499
|
||||
}
|
||||
+77
-54
@@ -62,30 +62,8 @@ wir." <br>
|
||||
--=====================_714967308==_.ALT--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519002557.00a88870@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_714967308==_.ALT"
|
||||
}
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -99,52 +77,97 @@ wir." <br>
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519002557.00a88870@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_714967308==_.ALT"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 498,
|
||||
"offset_end": 2623
|
||||
}
|
||||
+40
-28
@@ -17,35 +17,28 @@ A HARE one day ridiculed the short feet and slow pace of the Tortoise, who repli
|
||||
Slow but steady wins the race.
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -59,19 +52,38 @@ Slow but steady wins the race.
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race. <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 413,
|
||||
"offset_end": 1177
|
||||
}
|
||||
+47
-35
@@ -31,24 +31,14 @@ Ers+AOQ-ufen noch ein wenig aufschieben, denn auch uns f+APw-rchten, wie =
|
||||
ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein =
|
||||
m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"to": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -62,33 +52,55 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 577,
|
||||
"offset_end": 1470
|
||||
}
|
||||
+71
-49
@@ -82,39 +82,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_0004_01BFC037.28F2FA90--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -127,23 +96,60 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -154,7 +160,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1485,7 +1492,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1497,17 +1513,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2964,5 +2973,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 4807
|
||||
}
|
||||
+43
-31
@@ -30,11 +30,10 @@ ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
|
||||
Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -42,27 +41,6 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
@@ -78,16 +56,50 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 601,
|
||||
"offset_end": 1410
|
||||
}
|
||||
+87
-56
@@ -134,9 +134,17 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_0002_01BFC036.AE309650--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -150,23 +158,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -177,38 +170,51 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race. <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
"is_encoding_problem": false,
|
||||
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -218,19 +224,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1561,18 +1569,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1581,9 +1587,13 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2887,7 +2897,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -2897,19 +2907,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4366,5 +4378,24 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 547,
|
||||
"offset_end": 7745
|
||||
}
|
||||
+43
-31
@@ -35,15 +35,20 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010441.00a8d140@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -57,43 +62,50 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"format": "flowed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein <br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, <br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der <br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; <br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte <br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste <br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein <br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, <br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein \nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, \nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der \nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; \nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte \neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste \nuntertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein \nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, \nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"format": "flowed"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein \nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, \nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der \nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; \nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte \neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste \nuntertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein \nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, \nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 597,
|
||||
"offset_end": 1422
|
||||
}
|
||||
+40
-28
@@ -20,17 +20,10 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
@@ -44,18 +37,6 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -68,16 +49,47 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n\r\n\r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n\r\n\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 454,
|
||||
"offset_end": 1203
|
||||
}
|
||||
+44
-32
@@ -28,9 +28,20 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -50,42 +61,43 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 1321
|
||||
}
|
||||
+43
-31
@@ -29,27 +29,14 @@ sie aufs schnellste untertauchten.=20
|
||||
ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
|
||||
Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "Windows-1252"
|
||||
}
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -63,30 +50,55 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "Windows-1252"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 594,
|
||||
"offset_end": 1401
|
||||
}
|
||||
+49
-37
@@ -30,41 +30,13 @@ wenig aufschieben, denn auch uns f
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -78,16 +50,56 @@ welche also wohl noch ungl
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod<br/>selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte<br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 589,
|
||||
"offset_end": 1341
|
||||
}
|
||||
+78
-55
@@ -71,32 +71,22 @@ race. =20
|
||||
|
||||
------=_NextPart_000_0005_01BFC037.799BEF60--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
}
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -111,49 +101,82 @@ race. =20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 530,
|
||||
"offset_end": 2901
|
||||
}
|
||||
+180
-89
@@ -197,20 +197,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--=====================_715392540==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392540==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -225,8 +215,23 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392540==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -234,61 +239,101 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.2\" width=27 height=27 alt=\"2aa3ed95.png\"><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.3\" width=27 height=27 alt=\"2aa3edd1.png\"></html>\n"
|
||||
}
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa3ed95.png2aa3edd1.png"
|
||||
}
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715392540==_.REL"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392550==_.ALT"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa3ed95.png2aa3edd1.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.2\" width=27 height=27 alt=\"2aa3ed95.png\"><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.3\" width=27 height=27 alt=\"2aa3edd1.png\"></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3ed95.png"
|
||||
}
|
||||
@@ -297,9 +342,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -308,9 +350,13 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "2aa3ed95.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1641,7 +1687,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1651,22 +1697,24 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3edd1.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3125,7 +3173,16 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3135,19 +3192,12 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4478,15 +4528,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4498,9 +4540,19 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5802,5 +5854,44 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 11498
|
||||
}
|
||||
+90
-67
@@ -94,9 +94,35 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
--=====================_716373961==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716373961==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -110,65 +136,53 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716373961==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
@@ -177,17 +191,10 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
13,
|
||||
10,
|
||||
40,
|
||||
@@ -2116,17 +2123,17 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
33,
|
||||
58,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
@@ -2142,7 +2149,8 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
13,
|
||||
10,
|
||||
40,
|
||||
@@ -3273,10 +3281,25 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
33,
|
||||
58,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 491,
|
||||
"offset_end": 4869
|
||||
}
|
||||
+78
-55
@@ -101,9 +101,17 @@ end
|
||||
--=====================_716177458==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -117,14 +125,17 @@ end
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -134,48 +145,43 @@ end
|
||||
"boundary": "=====================_716177458==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race. <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
@@ -194,7 +200,8 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
13,
|
||||
10,
|
||||
98,
|
||||
@@ -2048,16 +2055,21 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -2068,16 +2080,12 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
13,
|
||||
10,
|
||||
98,
|
||||
@@ -3969,10 +3977,25 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 436,
|
||||
"offset_end": 5444
|
||||
}
|
||||
+125
-69
@@ -137,9 +137,30 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
--=====================_715157131==_.REL--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715157131==_.REL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -156,28 +177,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715157131==_.REL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
@@ -186,53 +185,74 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.0\" width=27 height=27 alt=\"blueball.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.1\" width=27 height=27 alt=\"redball.png\"></font></html>\n"
|
||||
}
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715157141==_.ALT"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "blueball.png\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\nredball.png"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "blueball.png\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\nredball.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.0\" width=27 height=27 alt=\"blueball.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.1\" width=27 height=27 alt=\"redball.png\"></font></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -242,16 +262,24 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1582,21 +1610,22 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1607,7 +1636,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3064,5 +3094,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 522,
|
||||
"offset_end": 7391
|
||||
}
|
||||
+119
-63
@@ -143,18 +143,17 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_0008_01BFC037.FDD8EE90--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0008_01BFC037.FDD8EE90"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -168,21 +167,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0008_01BFC037.FDD8EE90"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
@@ -191,58 +190,86 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><BR><FONT face=Arial size=2>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"boundary": "----=_NextPart_001_0009_01BFC037.FDD8EE90"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><BR><FONT face=Arial size=2>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -253,7 +280,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1557,7 +1585,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -1573,13 +1601,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3036,5 +3066,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 7240
|
||||
}
|
||||
+40
-28
@@ -30,21 +30,17 @@ wenig aufschieben, denn auch uns f
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
@@ -61,33 +57,49 @@ welche also wohl noch ungl
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod<br/>selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte<br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 543,
|
||||
"offset_end": 1295
|
||||
}
|
||||
+177
-94
@@ -187,39 +187,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_0010_01BFC038.B91BC650--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -232,53 +201,123 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:938014623@17052000-0f9b\"></FONT></DIV>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n</FONT></DIV>\n<DIV><FONT face=Arial size=2><BR> </DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
4,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0011_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\n\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_002_0012_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\n\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:938014623@17052000-0f9b\"></FONT></DIV>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n</FONT></DIV>\n<DIV><FONT face=Arial size=2><BR> </DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -288,11 +327,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "938014623@17052000-0f9b"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1623,10 +1666,19 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1635,17 +1687,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2949,18 +2994,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -2969,9 +3003,22 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4428,5 +4475,41 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 9625
|
||||
}
|
||||
+45
-33
@@ -29,27 +29,8 @@ IHdlbGNoZSBhbHNvIHdvaGwgbm9jaCB1bmds/GNrbGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIu
|
||||
IiANCg==
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -63,30 +44,61 @@ IiANCg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 545,
|
||||
"offset_end": 1571
|
||||
}
|
||||
+88
-57
@@ -107,27 +107,8 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
--=====================_716541962==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -140,6 +121,18 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -152,42 +145,53 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
@@ -201,9 +205,13 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1534,7 +1542,7 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -1547,26 +1555,20 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -1578,10 +1580,39 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 491,
|
||||
"offset_end": 5433
|
||||
}
|
||||
+82
-57
@@ -108,31 +108,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
--=====================_715429112==_.REL--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715429112==_.REL"
|
||||
"boundary": "=====================_715429112==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -152,43 +139,58 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2\" width=27 height=27 alt=\"2aa48eb6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3\" width=27 height=27 alt=\"2aa48ec0.png\"></font></html>\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2\" width=27 height=27 alt=\"2aa48eb6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3\" width=27 height=27 alt=\"2aa48ec0.png\"></font></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -202,13 +204,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48eb6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1539,7 +1546,19 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48ec0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1549,22 +1568,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa48ec0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3021,5 +3030,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 6227
|
||||
}
|
||||
+142
-82
@@ -170,9 +170,26 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--=====================_715462801==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715462801==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -186,14 +203,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
|
||||
@@ -203,48 +214,63 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715462801==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715462801==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.2\" width=27 height=27 alt=\"2aa51367.png\"><img src=\"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.3\" width=27 height=27 alt=\"2aa51371.png\"></html>\n"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
}
|
||||
},
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.2\" width=27 height=27 alt=\"2aa51367.png\"><img src=\"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.3\" width=27 height=27 alt=\"2aa51371.png\"></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -260,16 +286,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa51367.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1600,7 +1625,16 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa51371.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3"
|
||||
},
|
||||
@@ -1610,22 +1644,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa51371.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa51371.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3084,7 +3111,16 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3096,17 +3132,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4437,18 +4466,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4457,9 +4475,22 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5761,5 +5792,34 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 10334
|
||||
}
|
||||
+84
-59
@@ -83,9 +83,23 @@ Birds of a feather flock together.
|
||||
--=====================_716740438==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716740438==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -99,8 +113,11 @@ Birds of a feather flock together.
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -110,83 +127,82 @@ Birds of a feather flock together.
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716740438==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"x-mac-type": "54455854",
|
||||
"x-mac-creator": "74747874",
|
||||
"name": "HasenundFr�sche.txt"
|
||||
"name": "HasenundFr�sche.txt",
|
||||
"x-mac-creator": "74747874"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nbegin 600 HasenundFr�sche.txt\r\nM1&EE($AA<V5N('5N9\"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E\r\nM;B!E:6YS=\"#\\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L\r\nM('-P<F%C:\"!E:6X@4F5D;F5R+\"`B:6X@<W1E=&5R($9U<F-H=\"!V;W(@365N\r\nM<V-H96X@=6YD(%1I97)E;BP@96EN92!\"975T92!D97(@2'5N9&4L(&1E<B!!\r\nM9&QE<BP@:F$@9F%S=\"!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!\r\nM;F=S=\"!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@\r\nM=6YS(&5I;B!F_'(@86QL96UA;\"!S=&5R8F5N+B(@#0H-\"DEN(&5I;F5M(&YA\r\nM:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@\r\nM96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E\r\nM=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@\r\nM96EN92!-96YG92!&<O9S8VAE+\"!D:64@86T@569E<B!S8=]E;BP@<V\\@<V5H\r\nM<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-\r\nM\"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(\")W:7(@\r\nM=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E\r\nM;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+\"!E:6YI\r\nM9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:\"!U;F=L_&-K;&EC:&5R\r\n;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-\"@T*\r\n`\r\nend\r\n\r"
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nbegin 600 HasenundFr�sche.txt\r\nM1&EE($AA<V5N('5N9\"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E\r\nM;B!E:6YS=\"#\\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L\r\nM('-P<F%C:\"!E:6X@4F5D;F5R+\"`B:6X@<W1E=&5R($9U<F-H=\"!V;W(@365N\r\nM<V-H96X@=6YD(%1I97)E;BP@96EN92!\"975T92!D97(@2'5N9&4L(&1E<B!!\r\nM9&QE<BP@:F$@9F%S=\"!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!\r\nM;F=S=\"!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@\r\nM=6YS(&5I;B!F_'(@86QL96UA;\"!S=&5R8F5N+B(@#0H-\"DEN(&5I;F5M(&YA\r\nM:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@\r\nM96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E\r\nM=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@\r\nM96EN92!-96YG92!&<O9S8VAE+\"!D:64@86T@569E<B!S8=]E;BP@<V\\@<V5H\r\nM<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-\r\nM\"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(\")W:7(@\r\nM=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E\r\nM;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+\"!E:6YI\r\nM9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:\"!U;F=L_&-K;&EC:&5R\r\n;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-\"@T*\r\n`\r\nend\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -195,18 +211,27 @@ Birds of a feather flock together.
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 462,
|
||||
"offset_end": 3739
|
||||
}
|
||||
+41
-29
@@ -30,18 +30,14 @@ ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
|
||||
Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -55,39 +51,55 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 555,
|
||||
"offset_end": 1364
|
||||
}
|
||||
+125
-71
@@ -155,14 +155,25 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_000C_01BFC038.5A5C8E60--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKFCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -170,6 +181,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -182,68 +199,80 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKFCHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. </FONT></DIV>\n<DIV><FONT face=Arial size=2></FONT> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f8d\"><BR> <BR>Slow but steady wins \nthe race. </FONT></DIV>\n<DIV> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"red ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f94\"><BR></DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_000D_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n\n\n \nSlow but steady wins the race. \n\n\n\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n\n\n \nSlow but steady wins the race. \n\n\n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. </FONT></DIV>\n<DIV><FONT face=Arial size=2></FONT> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f8d\"><BR> <BR>Slow but steady wins \nthe race. </FONT></DIV>\n<DIV> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"red ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f94\"><BR></DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -253,14 +282,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f8d"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1591,13 +1618,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f94"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1606,9 +1627,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f94"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3065,5 +3093,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 526,
|
||||
"offset_end": 7631
|
||||
}
|
||||
+53
-41
@@ -26,9 +26,29 @@ reached the goal, and was comfortably dozing after her fatigue.
|
||||
|
||||
Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "392362D8.B650789F@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -41,49 +61,41 @@ Slow but steady wins the race.
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392362D8.B650789F@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 400,
|
||||
"offset_end": 1167
|
||||
}
|
||||
+83
-52
@@ -110,9 +110,23 @@ Slow but steady wins the race.
|
||||
--------------0BBC657DDC74A0B8454627FD--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923635B.85C58444@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -128,12 +142,6 @@ Slow but steady wins the race.
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923635B.85C58444@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -146,60 +154,59 @@ Slow but steady wins the race.
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
|
||||
},
|
||||
0,
|
||||
1
|
||||
1,
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
},
|
||||
0,
|
||||
1
|
||||
1,
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race."
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -210,7 +217,8 @@ Slow but steady wins the race.
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1541,10 +1549,11 @@ Slow but steady wins the race.
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
@@ -1563,7 +1572,8 @@ Slow but steady wins the race.
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2867,14 +2877,14 @@ Slow but steady wins the race.
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "hareandtoroise.txt",
|
||||
"charset": "us-ascii"
|
||||
"charset": "us-ascii",
|
||||
"name": "hareandtoroise.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2884,14 +2894,35 @@ Slow but steady wins the race.
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "hareandtoroise.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r"
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 6290
|
||||
}
|
||||
+90
-65
@@ -95,9 +95,27 @@ mWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBp
|
||||
Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---1463757054-952513540-958744548=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 9,
|
||||
"minute": 55,
|
||||
"second": 48,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from PINE"
|
||||
},
|
||||
@@ -121,58 +139,54 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 9,
|
||||
"minute": 55,
|
||||
"second": 48,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>This is a test message from PINE MUA.<br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "This is a test message from PINE MUA.\r\n\r\n\r"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "This is a test message from PINE MUA.\r\n\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
@@ -182,19 +196,12 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1653,7 +1660,16 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
@@ -1663,25 +1679,18 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3010,5 +3019,21 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 336,
|
||||
"offset_end": 5169
|
||||
}
|
||||
+122
-66
@@ -132,27 +132,11 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------C78F594988075E36AE03C243--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "39235EAD.E48E2160@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
@@ -165,6 +149,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -177,54 +173,93 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235EAD.E48E2160@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
},
|
||||
0,
|
||||
1
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------D74AE2393FB01D1B284AE257"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n"
|
||||
}
|
||||
},
|
||||
0,
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -236,17 +271,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1550,7 +1578,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1566,13 +1594,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2901,5 +2931,31 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 6606
|
||||
}
|
||||
+38
-26
@@ -32,9 +32,11 @@ n
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "392363E1.2AC47AB3@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
@@ -44,30 +46,15 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392363E1.2AC47AB3@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -83,13 +70,38 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Fr�sche<br/><br/>Die Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der<br/>Tod selbst. Auf, la�t uns ein f�r allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;<br/>allein das au�erordentliche Get�se und ihre wunderbare Gestalt<br/>erschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs<br/>schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein<br/>wenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl�cklicher sein m�ssen als wir.\"<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr�sche\n\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der\nTod selbst. Auf, la�t uns ein f�r allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt\nerschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs\nschnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Fr�sche\n\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der\nTod selbst. Auf, la�t uns ein f�r allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt\nerschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs\nschnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 406,
|
||||
"offset_end": 1208
|
||||
}
|
||||
+44
-32
@@ -25,21 +25,14 @@ schnellste untertauchten.
|
||||
wenig aufschieben, denn auch uns f+vGM-hten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-7"
|
||||
}
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -53,36 +46,55 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr+APY-sche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236497.12FA2A89@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Fr岣he<br/><br/>Die Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der<br/>Tod selbst. Auf, la uns ein f밠allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;<br/>allein das auޥrordentliche Get岥 und ihre wunderbare Gestalt<br/>erschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs<br/>schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein<br/>wenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl뢫licher sein m벳en als wir.\"<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr岣he\r\n\r\nDie Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\r\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der\r\nTod selbst. Auf, la uns ein f밠allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;\r\nallein das auޥrordentliche Get岥 und ihre wunderbare Gestalt\r\nerschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs\r\nschnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein\r\nwenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl뢫licher sein m벳en als wir.\"\r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Fr岣he\r\n\r\nDie Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\r\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der\r\nTod selbst. Auf, la uns ein f밠allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;\r\nallein das auޥrordentliche Get岥 und ihre wunderbare Gestalt\r\nerschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs\r\nschnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein\r\nwenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl뢫licher sein m벳en als wir.\"\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 369,
|
||||
"offset_end": 1158
|
||||
}
|
||||
+183
-91
@@ -211,21 +211,14 @@ YII=
|
||||
--------------A1E83A41894D3755390B838A--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -239,6 +232,18 @@ YII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -250,82 +255,123 @@ YII=
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235FC5.276CCE00@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39235FC5.E71D8178@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
},
|
||||
2,
|
||||
3
|
||||
3,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "[blue ball]\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n[Image]\n\n\n"
|
||||
},
|
||||
2,
|
||||
3
|
||||
1,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"attachments": [
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------F03F94BA73D3B9E8C1B94D92"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "[blue ball]\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n[Image]\n\n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------C02FA3D0A04E95F295FB25EB"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39235FC5.E71D8178@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br> \r\n<br> </html>\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "part1.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailEG.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part1.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1656,19 +1702,12 @@ YII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmail39.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
@@ -1676,9 +1715,19 @@ YII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmail39.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3137,10 +3186,11 @@ YII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
@@ -3159,7 +3209,8 @@ YII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4618,7 +4669,19 @@ YII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4627,20 +4690,10 @@ YII=
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5942,5 +5995,44 @@ YII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
2,
|
||||
[
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 430,
|
||||
"offset_end": 11445
|
||||
}
|
||||
+44
-32
@@ -25,15 +25,20 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -50,39 +55,46 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "QUOTED-PRINTABLE"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "QUOTED-PRINTABLE"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 401,
|
||||
"offset_end": 1212
|
||||
}
|
||||
+59
-40
@@ -50,21 +50,8 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------E7889DDF0F75D34163841C59--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "392366A7.21929EA7@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -74,6 +61,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392366A7.21929EA7@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -90,43 +86,51 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body> </body></html>"
|
||||
},
|
||||
0
|
||||
0,
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"contents": " \r"
|
||||
"is_encoding_problem": false,
|
||||
"body": " "
|
||||
}
|
||||
},
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -142,13 +146,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1477,5 +1483,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2585
|
||||
}
|
||||
+41
-29
@@ -16,9 +16,8 @@ A HARE one day ridiculed the short feet and slow pace of the Tortoise, who repli
|
||||
|
||||
Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
@@ -28,6 +27,15 @@ Slow but steady wins the race.
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923625B.59F0C3AC@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -41,39 +49,43 @@ Slow but steady wins the race.
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923625B.59F0C3AC@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 375,
|
||||
"offset_end": 1133
|
||||
}
|
||||
+140
-79
@@ -170,11 +170,28 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------B7133A01A6B323BF00DBC9A7--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------B7133A01A6B323BF00DBC9A7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236103.FFE674FC@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -189,88 +206,96 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236103.FFE674FC@example.com"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------B7133A01A6B323BF00DBC9A7"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39236103.1B697A54@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b><font size=+2>Die Hasen und die Frösche</font></b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n\r"
|
||||
},
|
||||
2,
|
||||
3
|
||||
1,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\""
|
||||
},
|
||||
2,
|
||||
3
|
||||
1,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"attachments": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------8E6A06810565BCAB5E1F7D97"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39236103.1B697A54@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b><font size=+2>Die Hasen und die Frösche</font></b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part1.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailV0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1601,29 +1626,32 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailNM.png"
|
||||
}
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part2.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailNM.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3082,7 +3110,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3092,19 +3120,21 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4408,13 +4438,11 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
@@ -4428,9 +4456,13 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5759,5 +5791,34 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 415,
|
||||
"offset_end": 10133
|
||||
}
|
||||
+44
-32
@@ -27,18 +27,8 @@ schnellste untertauchten. =
|
||||
n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -55,36 +45,58 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
"message_id": {
|
||||
"Text": "39236653.CAA8A090@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 425,
|
||||
"offset_end": 1231
|
||||
}
|
||||
+76
-57
@@ -56,9 +56,14 @@ JXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5IFl2ZXMgUGlndWV0NnM7
|
||||
vAAAAABJRU5ErkJggg==
|
||||
---1463757054-170444605-958746196=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -72,26 +77,11 @@ vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "PNG graphic"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
|
||||
"subject": {
|
||||
"Text": "PNG graphic"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -101,33 +91,65 @@ vAAAAABJRU5ErkJggg==
|
||||
"boundary": "-1463757054-170444605-958746196=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "red ball"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
@@ -136,26 +158,10 @@ vAAAAABJRU5ErkJggg==
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "red ball"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1612,5 +1618,18 @@ vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 351,
|
||||
"offset_end": 2999
|
||||
}
|
||||
+70
-51
@@ -57,9 +57,14 @@ Birds of a feather flock together.
|
||||
--------------77060D866A66DC8D0921E051--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "3923686C.99FB5E36@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
@@ -69,18 +74,6 @@ Birds of a feather flock together.
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923686C.99FB5E36@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -100,38 +93,61 @@ Birds of a feather flock together.
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race."
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -141,21 +157,24 @@ Birds of a feather flock together.
|
||||
"name": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2368
|
||||
}
|
||||
+72
-49
@@ -60,21 +60,17 @@ als wir."
|
||||
|
||||
--------------9D454F23DA86BCD63FA3805F--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392359CF.DFF4527@example.com"
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -88,11 +84,8 @@ als wir."
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -103,46 +96,76 @@ als wir."
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"message_id": {
|
||||
"Text": "392359CF.DFF4527@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 440,
|
||||
"offset_end": 2482
|
||||
}
|
||||
+82
-51
@@ -136,11 +136,10 @@ xW62p+lT+Yi747sD/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBi
|
||||
eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------A1FCDEE154E03D875E5D6779--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "39235E1C.1DC7EA90@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
@@ -148,14 +147,8 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -166,9 +159,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235E1C.1DC7EA90@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -181,53 +171,58 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der<br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt<br/>erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs<br/>schnellste untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
|
||||
},
|
||||
0,
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
},
|
||||
0,
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -236,9 +231,22 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1697,7 +1705,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1713,13 +1721,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3023,13 +3033,14 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
@@ -3045,7 +3056,8 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4374,5 +4386,24 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 7534
|
||||
}
|
||||
+63
-44
@@ -41,9 +41,17 @@ LCBlaW5pZ2UgVGllcmUsIHdlbGNoZSBhbHNvIHdvaGwgbm9jaCB1bmds/GNr
|
||||
bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
---1463757054-891160829-958746372=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -53,18 +61,9 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
@@ -77,6 +76,9 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
}
|
||||
]
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -89,55 +91,42 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_description": {
|
||||
"Text": "Short story in German"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"name": "HasenundFrösche.txt"
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
@@ -145,10 +134,40 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFrösche.txt",
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "Short story in German"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\r\r\n\r\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\r\n\r\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\r\n\r\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\r\n\r\r\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\r\r\n\r\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\r\n\r\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\r\n\r\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\r\n\r\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 419,
|
||||
"offset_end": 2168
|
||||
}
|
||||
+39
-27
@@ -31,9 +31,11 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -47,32 +49,17 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@example.com"
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -82,13 +69,38 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der<br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt<br/>erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs<br/>schnellste untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 453,
|
||||
"offset_end": 1251
|
||||
}
|
||||
+70
-51
@@ -59,9 +59,14 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
--------------CA611088711119FBDB3473B4--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -71,27 +76,15 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392367BC.3D075C95@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392367BC.3D075C95@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -104,60 +97,86 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"name": "HasenundFrösche.txt"
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race."
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFrösche.txt",
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2434
|
||||
}
|
||||
+98
-70
@@ -154,11 +154,10 @@ end
|
||||
--------------177483472E7788F4AD46AB1A--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -169,10 +168,10 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
@@ -188,64 +187,63 @@ end
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923670C.67D83A99@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
|
||||
},
|
||||
0,
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
},
|
||||
0,
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_disposition": {
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race."
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -254,9 +252,19 @@ end
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
98,
|
||||
101,
|
||||
103,
|
||||
@@ -2323,22 +2331,13 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
@@ -2350,9 +2349,19 @@ end
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
98,
|
||||
101,
|
||||
103,
|
||||
@@ -4201,25 +4210,25 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4230,7 +4239,8 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
98,
|
||||
101,
|
||||
103,
|
||||
@@ -6117,10 +6127,28 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 7716
|
||||
}
|
||||
+36
-17
File diff suppressed because one or more lines are too long
+87
-62
@@ -108,9 +108,33 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
--=====================_715546120==_.REL--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715546120==_.REL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
@@ -129,61 +153,48 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715546120==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.2\" width=27 height=27 alt=\"2aa658b6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.3\" width=27 height=27 alt=\"2aa658c0.png\"></font></html>\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.2\" width=27 height=27 alt=\"2aa658b6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.3\" width=27 height=27 alt=\"2aa658c0.png\"></font></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -196,19 +207,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa658b6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1539,10 +1546,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa658c0.png"
|
||||
}
|
||||
@@ -1559,12 +1570,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3021,5 +3030,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 6227
|
||||
}
|
||||
+142
-82
@@ -160,11 +160,13 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--=====================_715515186==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
@@ -178,12 +180,18 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -196,50 +204,68 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/>2aa5e03a.png2aa5e044.png</body></html>"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715515186==_.REL",
|
||||
"type": "text/plain"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa5e03a.png2aa5e044.png"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa5e03a.png2aa5e044.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e03a.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -250,16 +276,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa5e03a.png"
|
||||
}
|
||||
}
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1590,12 +1615,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e044.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -1606,16 +1634,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa5e044.png"
|
||||
}
|
||||
}
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3074,7 +3101,19 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3083,20 +3122,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4427,18 +4456,19 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4449,7 +4479,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5751,5 +5782,34 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 9939
|
||||
}
|
||||
+39
-20
@@ -26,15 +26,26 @@ wenig aufschieben, denn auch uns f
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -47,28 +58,36 @@ welche also wohl noch ungl
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Fr�sche<br/><br/>Die Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod<br/>selbst. Auf, la�t uns ein f�r allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;<br/>allein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte<br/>eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein<br/>wenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl�cklicher sein m�ssen als wir.\"<br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr�sche\r\n\r\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod\r\nselbst. Auf, la�t uns ein f�r allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\r\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte\r\neine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\r\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\r\n\r\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Fr�sche\r\n\r\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod\r\nselbst. Auf, la�t uns ein f�r allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\r\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte\r\neine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\r\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\r\n\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 434,
|
||||
"offset_end": 1186
|
||||
}
|
||||
+40
-28
@@ -31,11 +31,16 @@ noch ein wenig aufschieben, denn auch uns f=C3=BCrchten, wie ihr seht, =
|
||||
einige Tiere, welche also wohl noch ungl=C3=BCcklicher sein m=C3=BCssen =
|
||||
als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -61,34 +66,41 @@ als wir."=20
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 579,
|
||||
"offset_end": 1440
|
||||
}
|
||||
+13
-4
@@ -9,9 +9,8 @@ Content-Type: text/plain
|
||||
Content-Type: text/html
|
||||
--:foo--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -21,5 +20,15 @@ Content-Type: text/html
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [],
|
||||
"parts": [],
|
||||
"structure": {
|
||||
"List": []
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 48,
|
||||
"offset_end": 160
|
||||
}
|
||||
+49
-8
@@ -9,9 +9,8 @@ Content-Type: text/plain
|
||||
--a
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -23,13 +22,55 @@ Content-Type: text/plain
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Content-Type: text/plain<br/></body></html>"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Content-Type: text/plain\n"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Content-Type: text/plain\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 132
|
||||
}
|
||||
+27
-15
@@ -2,24 +2,36 @@ Content-Type: multipart/mixed; boundary="ab"
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "body\n"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 51
|
||||
}
|
||||
+41
-7
@@ -8,9 +8,8 @@ Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -21,19 +20,54 @@ body
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "body\n"
|
||||
"is_encoding_problem": true,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 129
|
||||
}
|
||||
+25
-5
@@ -8,9 +8,8 @@ Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -21,11 +20,32 @@ body
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 131
|
||||
}
|
||||
+47
-14
@@ -12,9 +12,8 @@ Content-Type: text/html
|
||||
|
||||
body2
|
||||
--a----
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -26,21 +25,55 @@ body2
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>body</body></html>"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a----"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "body"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "body"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 47,
|
||||
"offset_end": 189
|
||||
}
|
||||
+41
-7
@@ -8,9 +8,8 @@ Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -21,19 +20,54 @@ body
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "body\n"
|
||||
"is_encoding_problem": true,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 131
|
||||
}
|
||||
+50
-5
@@ -10,9 +10,8 @@ Content-Type: text/plain
|
||||
--a--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -23,11 +22,57 @@ Content-Type: text/plain
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "--a--\n\n"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "--a--\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 157
|
||||
}
|
||||
+41
-7
@@ -12,9 +12,8 @@ Content-Type: text/html
|
||||
|
||||
body2
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -25,19 +24,54 @@ body2
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "body\n--ab\nContent-Type: text/html\n\nbody2\n"
|
||||
"is_encoding_problem": true,
|
||||
"body": "body\n--ab\nContent-Type: text/html\n\nbody2\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 167
|
||||
}
|
||||
+59
-21
@@ -16,9 +16,8 @@ Content-Type: text/plain
|
||||
|
||||
333
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -30,36 +29,75 @@ Content-Type: text/plain
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1</body></html>"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "1"
|
||||
}
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "22\n--1\nContent-Type: text/plain\n\n333\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "22\n--1\nContent-Type: text/plain\n\n333\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 193
|
||||
}
|
||||
+90
-30
@@ -6,52 +6,112 @@ Content-Type: text/plain
|
||||
|
||||
1
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1<br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "1\n"
|
||||
}
|
||||
]
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Message": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "1\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 60,
|
||||
"offset_body": 86,
|
||||
"offset_end": 88
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 30,
|
||||
"offset_body": 60,
|
||||
"offset_end": 88
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 30,
|
||||
"offset_end": 88
|
||||
}
|
||||
+59
-21
@@ -16,9 +16,8 @@ Content-Type: text/plain
|
||||
|
||||
333
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -30,36 +29,75 @@ Content-Type: text/plain
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1</body></html>"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "1"
|
||||
}
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "22\n--1\nContent-Type: text/plain\n\n333\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "22\n--1\nContent-Type: text/plain\n\n333\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 193
|
||||
}
|
||||
+114
-27
@@ -22,9 +22,8 @@ Content-Type: text/plain
|
||||
|
||||
333
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -35,47 +34,135 @@ Content-Type: text/plain
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "1"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "22\n--1\nContent-Type: message/rfc822\n\nContent-Type: text/plain\n\n333\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 128,
|
||||
"offset_body": 154,
|
||||
"offset_end": 160
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "22\n--1\nContent-Type: message/rfc822\n\nContent-Type: text/plain\n\n333\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 190,
|
||||
"offset_body": 216,
|
||||
"offset_end": 283
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 283
|
||||
}
|
||||
+124
-46
@@ -31,9 +31,8 @@ Content-Type: text/plain
|
||||
hello, world
|
||||
--1
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -48,63 +47,142 @@ hello, world
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
}
|
||||
0,
|
||||
2,
|
||||
4,
|
||||
6
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
2,
|
||||
4,
|
||||
6
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "hello, world"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "2.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "hello, world"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "abc"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "hello, world"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "hello, world"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
5,
|
||||
[
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 63,
|
||||
"offset_end": 436
|
||||
}
|
||||
+26
-15
@@ -6,9 +6,8 @@ Content-Type: text/plain
|
||||
hello, world
|
||||
--1
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -20,21 +19,33 @@ hello, world
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "hello, world"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 92
|
||||
}
|
||||
+59
-40
@@ -24,31 +24,36 @@ invalid
|
||||
--=-GNQXLhuj24Pl1aCkk4/d--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Another User",
|
||||
"address": "test2@example.org"
|
||||
}
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"return_path": {
|
||||
"Text": "test@example.org"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "signed",
|
||||
"attributes": {
|
||||
"micalg": "pgp-sha1",
|
||||
"protocol": "application/pgp-signature",
|
||||
"boundary": "=-GNQXLhuj24Pl1aCkk4/d"
|
||||
"boundary": "=-GNQXLhuj24Pl1aCkk4/d",
|
||||
"micalg": "pgp-sha1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"return_path": {
|
||||
"Text": "test@example.org"
|
||||
"message_id": {
|
||||
"Text": "1.2.3.4@example"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Another User",
|
||||
"address": "test2@example.org"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Hello world"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -56,9 +61,6 @@ invalid
|
||||
"address": "test@example.org"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "1.2.3.4@example"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2007,
|
||||
@@ -71,36 +73,39 @@ invalid
|
||||
"tz_hour": 3,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Hello world"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>There was a day <br/>a happy day<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "There was a day \na happy day\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "There was a day \na happy day\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
@@ -111,7 +116,8 @@ invalid
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
105,
|
||||
110,
|
||||
118,
|
||||
@@ -123,5 +129,18 @@ invalid
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 335,
|
||||
"offset_end": 585
|
||||
}
|
||||
+74
-21
@@ -23,9 +23,8 @@ Content-Type: text/plain
|
||||
|
||||
4444
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -37,36 +36,90 @@ Content-Type: text/plain
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1<br/>--1234567890123456789012345678901234567890123456789012345678901234567890123456789012<br/>Content-Type: text/plain<br/><br/>22<br/>--123456789012345678901234567890123456789012345678901234567890123456789012345678901<br/>Content-Type: text/plain<br/><br/>333</body></html>"
|
||||
}
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "1\n--1234567890123456789012345678901234567890123456789012345678901234567890123456789012\nContent-Type: text/plain\n\n22\n--123456789012345678901234567890123456789012345678901234567890123456789012345678901\nContent-Type: text/plain\n\n333"
|
||||
}
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "123456789012345678901234567890123456789012345678901234567890123456789012345678901"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "4444\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "1\n--1234567890123456789012345678901234567890123456789012345678901234567890123456789012\nContent-Type: text/plain\n\n22\n--123456789012345678901234567890123456789012345678901234567890123456789012345678901\nContent-Type: text/plain\n\n333"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "4444\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 126,
|
||||
"offset_end": 997
|
||||
}
|
||||
+178
-80
@@ -71,9 +71,26 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
|
||||
--unique-boundary-1--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@nsb.fv.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "A multipart example"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -83,24 +100,6 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@nsb.fv.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "A multipart example"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1994,
|
||||
@@ -116,118 +115,217 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>... Some text appears here ...<br/><br/>[Note that the blank between the boundary and the start<br/>of the text in this part means no header fields were<br/>given and this is text in the US-ASCII character set.<br/>It could have been done with explicit typing as in the<br/>next part.]<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>This could have been part of the previous part, but<br/>illustrates explicit versus implicit typing of body<br/>parts.<br/></body></html>"
|
||||
}
|
||||
0,
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "... Some text appears here ...\n\n[Note that the blank between the boundary and the start\nof the text in this part means no header fields were\ngiven and this is text in the US-ASCII character set.\nIt could have been done with explicit typing as in the\nnext part.]\n"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "... Some text appears here ...\n\n[Note that the blank between the boundary and the start\nof the text in this part means no header fields were\ngiven and this is text in the US-ASCII character set.\nIt could have been done with explicit typing as in the\nnext part.]\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "This could have been part of the previous part, but\nillustrates explicit versus implicit typing of body\nparts.\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "parallel",
|
||||
"attributes": {
|
||||
"boundary": "unique-boundary-2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "This could have been part of the previous part, but\nillustrates explicit versus implicit typing of body\nparts.\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "audio",
|
||||
"c_subtype": "basic"
|
||||
"c_subtype": "basic",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"contents": "... base64-encoded 8000 Hz single-channel\n mu-law-format audio data goes here ...\n"
|
||||
"is_encoding_problem": true,
|
||||
"body": "... base64-encoded 8000 Hz single-channel\n mu-law-format audio data goes here ...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg"
|
||||
"c_subtype": "jpeg",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "... base64-encoded image data goes here ...\n"
|
||||
"is_encoding_problem": true,
|
||||
"body": "... base64-encoded image data goes here ...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "enriched"
|
||||
"c_subtype": "enriched",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "This is <bold><italic>enriched.</italic></bold>\n<smaller>as defined in RFC 1896</smaller>\n\nIsn't it\n<bigger><bigger>cool?</bigger></bigger>\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "This is <bold><italic>enriched.</italic></bold>\n<smaller>as defined in RFC 1896</smaller>\n\nIsn't it\n<bigger><bigger>cool?</bigger></bigger>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "ISO-8859-1"
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "(subject in US-ASCII)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "address in US-ASCII",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "mailbox in US-ASCII",
|
||||
"address": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "mailbox in US-ASCII"
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "Quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "ISO-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "... Additional text in ISO-8859-1 goes here ...\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"subject": {
|
||||
"Text": "(subject in US-ASCII)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "address in US-ASCII"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "Quoted-printable"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>... Additional text in ISO-8859-1 goes here ...<br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "... Additional text in ISO-8859-1 goes here ...\n"
|
||||
}
|
||||
]
|
||||
"offset_header": 1607,
|
||||
"offset_body": 1782,
|
||||
"offset_end": 1850
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
2,
|
||||
[
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 239,
|
||||
"offset_end": 1852
|
||||
}
|
||||
+53
-26
@@ -39,15 +39,8 @@ get RFC-MIME.DOC
|
||||
--42--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "whatever"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "id1@host.com"
|
||||
},
|
||||
@@ -60,40 +53,56 @@ get RFC-MIME.DOC
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Whomever"
|
||||
"name": "Someone",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "whatever"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "id001@guppylake.bellcore.com"
|
||||
},
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Someone"
|
||||
"name": "Whomever",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"name": "BodyFormats.ps",
|
||||
"mode": "image",
|
||||
"site": "thumper.bellcore.com",
|
||||
"directory": "pub",
|
||||
"access-type": "ANON-FTP",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
"directory": "pub",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"name": "BodyFormats.ps"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
@@ -178,21 +187,22 @@ get RFC-MIME.DOC
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"site": "thumper.bellcore.com",
|
||||
"access-type": "local-file",
|
||||
"site": "thumper.bellcore.com"
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
@@ -277,7 +287,7 @@ get RFC-MIME.DOC
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
@@ -290,7 +300,8 @@ get RFC-MIME.DOC
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
@@ -391,5 +402,21 @@ get RFC-MIME.DOC
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 198,
|
||||
"offset_end": 1106
|
||||
}
|
||||
+476
-417
@@ -71,11 +71,13 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
|
||||
--D7F------------D7FD5A0B8AB9C65CCDBFA872--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "[Fwd: Map of Argentina with Description]"
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Al Gore",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
@@ -92,443 +94,500 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Al Gore",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "[Fwd: Map of Argentina with Description]"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Fred,<br/><br/>Fire up Air Force One! We're going South!<br/><br/>Thanks,<br/>Al</body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"contents": "Fred,\n\nFire up Air Force One! We're going South!\n\nThanks,\nAl"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
"is_encoding_problem": false,
|
||||
"body": "Fred,\n\nFire up Air Force One! We're going South!\n\nThanks,\nAl"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"received": {
|
||||
"Collection": [
|
||||
{
|
||||
"Text": "from mailhost.whitehouse.gov ([192.168.51.200])\n by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453\n for <vice-president@heartbeat.whitehouse.gov>;\n Mon, 13 Aug 1998 l8:14:23 +1000"
|
||||
},
|
||||
{
|
||||
"Text": "from the_big_box.whitehouse.gov ([192.168.51.50])\n by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366\n for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "199804130742.RAA20366@mai1host.whitehouse.gov"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "A1 Gore (The Enforcer)",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Map of Argentina with Description"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1998,
|
||||
"month": 8,
|
||||
"day": 13,
|
||||
"hour": 17,
|
||||
"minute": 42,
|
||||
"second": 41,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 10,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Bill Clinton",
|
||||
"address": "president@whitehouse.gov"
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
|
||||
}
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"return_path": {
|
||||
"Text": "president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Hi A1,<br/><br/>I finally figured out this MIME thing. Pretty cool. I'll send you<br/>some sax music in .au files next week!<br/><br/>Anyway, the attached image is really too small to get a good look at<br/>Argentina. Try this for a much better map:<br/><br/> http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm<br/><br/>Then again, shouldn't the CIA have something like that?<br/><br/>Bill</body></html>"
|
||||
},
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Map of Argentina with Description"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1998,
|
||||
"month": 8,
|
||||
"day": 13,
|
||||
"hour": 17,
|
||||
"minute": 42,
|
||||
"second": 41,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 10,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"contents": "Hi A1,\n\nI finally figured out this MIME thing. Pretty cool. I'll send you\nsome sax music in .au files next week!\n\nAnyway, the attached image is really too small to get a good look at\nArgentina. Try this for a much better map:\n\n http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm\n\nThen again, shouldn't the CIA have something like that?\n\nBill"
|
||||
},
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"message_id": {
|
||||
"Text": "199804130742.RAA20366@mai1host.whitehouse.gov"
|
||||
},
|
||||
"received": {
|
||||
"Collection": [
|
||||
{
|
||||
"Text": "from mailhost.whitehouse.gov ([192.168.51.200])\n by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453\n for <vice-president@heartbeat.whitehouse.gov>;\n Mon, 13 Aug 1998 l8:14:23 +1000"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "gif",
|
||||
"attributes": {
|
||||
"name": "map_of_Argentina.gif"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"fi1ename": "map_of_Argentina.gif"
|
||||
}
|
||||
}
|
||||
{
|
||||
"Text": "from the_big_box.whitehouse.gov ([192.168.51.50])\n by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366\n for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
71,
|
||||
77,
|
||||
70,
|
||||
56,
|
||||
61,
|
||||
97,
|
||||
37,
|
||||
0,
|
||||
53,
|
||||
0,
|
||||
162,
|
||||
0,
|
||||
0,
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
251,
|
||||
240,
|
||||
255,
|
||||
232,
|
||||
154,
|
||||
125,
|
||||
125,
|
||||
125,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
44,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
37,
|
||||
0,
|
||||
53,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
237,
|
||||
8,
|
||||
186,
|
||||
220,
|
||||
254,
|
||||
112,
|
||||
192,
|
||||
73,
|
||||
163,
|
||||
4,
|
||||
34,
|
||||
235,
|
||||
157,
|
||||
9,
|
||||
225,
|
||||
96,
|
||||
40,
|
||||
12,
|
||||
215,
|
||||
8,
|
||||
126,
|
||||
166,
|
||||
72,
|
||||
42,
|
||||
169,
|
||||
224,
|
||||
189,
|
||||
94,
|
||||
187,
|
||||
173,
|
||||
152,
|
||||
25,
|
||||
187,
|
||||
132,
|
||||
2,
|
||||
183,
|
||||
180,
|
||||
253,
|
||||
245,
|
||||
128,
|
||||
87,
|
||||
0,
|
||||
136,
|
||||
82,
|
||||
149,
|
||||
66,
|
||||
177,
|
||||
133,
|
||||
71,
|
||||
169,
|
||||
44,
|
||||
114,
|
||||
122,
|
||||
39,
|
||||
77,
|
||||
238,
|
||||
197,
|
||||
0,
|
||||
6,
|
||||
157,
|
||||
26,
|
||||
232,
|
||||
38,
|
||||
70,
|
||||
237,
|
||||
194,
|
||||
154,
|
||||
32,
|
||||
109,
|
||||
231,
|
||||
183,
|
||||
236,
|
||||
86,
|
||||
173,
|
||||
216,
|
||||
209,
|
||||
81,
|
||||
74,
|
||||
158,
|
||||
150,
|
||||
29,
|
||||
196,
|
||||
240,
|
||||
186,
|
||||
51,
|
||||
182,
|
||||
94,
|
||||
225,
|
||||
202,
|
||||
231,
|
||||
156,
|
||||
123,
|
||||
166,
|
||||
226,
|
||||
131,
|
||||
122,
|
||||
44,
|
||||
82,
|
||||
117,
|
||||
110,
|
||||
126,
|
||||
77,
|
||||
93,
|
||||
51,
|
||||
123,
|
||||
56,
|
||||
94,
|
||||
95,
|
||||
66,
|
||||
67,
|
||||
121,
|
||||
89,
|
||||
138,
|
||||
48,
|
||||
4,
|
||||
67,
|
||||
118,
|
||||
118,
|
||||
65,
|
||||
144,
|
||||
25,
|
||||
98,
|
||||
109,
|
||||
75,
|
||||
58,
|
||||
134,
|
||||
76,
|
||||
128,
|
||||
137,
|
||||
130,
|
||||
116,
|
||||
46,
|
||||
76,
|
||||
147,
|
||||
127,
|
||||
88,
|
||||
155,
|
||||
40,
|
||||
141,
|
||||
167,
|
||||
125,
|
||||
169,
|
||||
115,
|
||||
46,
|
||||
132,
|
||||
133,
|
||||
157,
|
||||
141,
|
||||
114,
|
||||
163,
|
||||
99,
|
||||
139,
|
||||
94,
|
||||
158,
|
||||
58,
|
||||
58,
|
||||
182,
|
||||
53,
|
||||
108,
|
||||
178,
|
||||
77,
|
||||
160,
|
||||
105,
|
||||
106,
|
||||
183,
|
||||
184,
|
||||
99,
|
||||
87,
|
||||
83,
|
||||
166,
|
||||
70,
|
||||
198,
|
||||
199,
|
||||
178,
|
||||
147,
|
||||
196,
|
||||
154,
|
||||
176,
|
||||
108,
|
||||
55,
|
||||
39,
|
||||
209,
|
||||
145,
|
||||
205,
|
||||
212,
|
||||
208,
|
||||
147,
|
||||
45,
|
||||
98,
|
||||
28,
|
||||
219,
|
||||
220,
|
||||
60,
|
||||
211,
|
||||
72,
|
||||
225,
|
||||
50,
|
||||
222,
|
||||
41,
|
||||
215,
|
||||
204,
|
||||
191,
|
||||
45,
|
||||
47,
|
||||
50,
|
||||
162,
|
||||
235,
|
||||
34,
|
||||
219,
|
||||
238,
|
||||
197,
|
||||
240,
|
||||
214,
|
||||
242,
|
||||
230,
|
||||
227,
|
||||
185,
|
||||
224,
|
||||
237,
|
||||
38,
|
||||
231,
|
||||
243,
|
||||
238,
|
||||
43,
|
||||
72,
|
||||
8,
|
||||
28,
|
||||
72,
|
||||
72,
|
||||
160,
|
||||
193,
|
||||
131,
|
||||
8,
|
||||
19,
|
||||
42,
|
||||
60,
|
||||
152,
|
||||
0,
|
||||
0,
|
||||
59
|
||||
]
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Bill Clinton",
|
||||
"address": "president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "A1 Gore (The Enforcer)",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"return_path": {
|
||||
"Text": "president@whitehouse.gov"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Hi A1,\n\nI finally figured out this MIME thing. Pretty cool. I'll send you\nsome sax music in .au files next week!\n\nAnyway, the attached image is really too small to get a good look at\nArgentina. Try this for a much better map:\n\n http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm\n\nThen again, shouldn't the CIA have something like that?\n\nBill"
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"fi1ename": "map_of_Argentina.gif"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "gif",
|
||||
"attributes": {
|
||||
"name": "map_of_Argentina.gif"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
71,
|
||||
77,
|
||||
70,
|
||||
56,
|
||||
61,
|
||||
97,
|
||||
37,
|
||||
0,
|
||||
53,
|
||||
0,
|
||||
162,
|
||||
0,
|
||||
0,
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
251,
|
||||
240,
|
||||
255,
|
||||
232,
|
||||
154,
|
||||
125,
|
||||
125,
|
||||
125,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
44,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
37,
|
||||
0,
|
||||
53,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
237,
|
||||
8,
|
||||
186,
|
||||
220,
|
||||
254,
|
||||
112,
|
||||
192,
|
||||
73,
|
||||
163,
|
||||
4,
|
||||
34,
|
||||
235,
|
||||
157,
|
||||
9,
|
||||
225,
|
||||
96,
|
||||
40,
|
||||
12,
|
||||
215,
|
||||
8,
|
||||
126,
|
||||
166,
|
||||
72,
|
||||
42,
|
||||
169,
|
||||
224,
|
||||
189,
|
||||
94,
|
||||
187,
|
||||
173,
|
||||
152,
|
||||
25,
|
||||
187,
|
||||
132,
|
||||
2,
|
||||
183,
|
||||
180,
|
||||
253,
|
||||
245,
|
||||
128,
|
||||
87,
|
||||
0,
|
||||
136,
|
||||
82,
|
||||
149,
|
||||
66,
|
||||
177,
|
||||
133,
|
||||
71,
|
||||
169,
|
||||
44,
|
||||
114,
|
||||
122,
|
||||
39,
|
||||
77,
|
||||
238,
|
||||
197,
|
||||
0,
|
||||
6,
|
||||
157,
|
||||
26,
|
||||
232,
|
||||
38,
|
||||
70,
|
||||
237,
|
||||
194,
|
||||
154,
|
||||
32,
|
||||
109,
|
||||
231,
|
||||
183,
|
||||
236,
|
||||
86,
|
||||
173,
|
||||
216,
|
||||
209,
|
||||
81,
|
||||
74,
|
||||
158,
|
||||
150,
|
||||
29,
|
||||
196,
|
||||
240,
|
||||
186,
|
||||
51,
|
||||
182,
|
||||
94,
|
||||
225,
|
||||
202,
|
||||
231,
|
||||
156,
|
||||
123,
|
||||
166,
|
||||
226,
|
||||
131,
|
||||
122,
|
||||
44,
|
||||
82,
|
||||
117,
|
||||
110,
|
||||
126,
|
||||
77,
|
||||
93,
|
||||
51,
|
||||
123,
|
||||
56,
|
||||
94,
|
||||
95,
|
||||
66,
|
||||
67,
|
||||
121,
|
||||
89,
|
||||
138,
|
||||
48,
|
||||
4,
|
||||
67,
|
||||
118,
|
||||
118,
|
||||
65,
|
||||
144,
|
||||
25,
|
||||
98,
|
||||
109,
|
||||
75,
|
||||
58,
|
||||
134,
|
||||
76,
|
||||
128,
|
||||
137,
|
||||
130,
|
||||
116,
|
||||
46,
|
||||
76,
|
||||
147,
|
||||
127,
|
||||
88,
|
||||
155,
|
||||
40,
|
||||
141,
|
||||
167,
|
||||
125,
|
||||
169,
|
||||
115,
|
||||
46,
|
||||
132,
|
||||
133,
|
||||
157,
|
||||
141,
|
||||
114,
|
||||
163,
|
||||
99,
|
||||
139,
|
||||
94,
|
||||
158,
|
||||
58,
|
||||
58,
|
||||
182,
|
||||
53,
|
||||
108,
|
||||
178,
|
||||
77,
|
||||
160,
|
||||
105,
|
||||
106,
|
||||
183,
|
||||
184,
|
||||
99,
|
||||
87,
|
||||
83,
|
||||
166,
|
||||
70,
|
||||
198,
|
||||
199,
|
||||
178,
|
||||
147,
|
||||
196,
|
||||
154,
|
||||
176,
|
||||
108,
|
||||
55,
|
||||
39,
|
||||
209,
|
||||
145,
|
||||
205,
|
||||
212,
|
||||
208,
|
||||
147,
|
||||
45,
|
||||
98,
|
||||
28,
|
||||
219,
|
||||
220,
|
||||
60,
|
||||
211,
|
||||
72,
|
||||
225,
|
||||
50,
|
||||
222,
|
||||
41,
|
||||
215,
|
||||
204,
|
||||
191,
|
||||
45,
|
||||
47,
|
||||
50,
|
||||
162,
|
||||
235,
|
||||
34,
|
||||
219,
|
||||
238,
|
||||
197,
|
||||
240,
|
||||
214,
|
||||
242,
|
||||
230,
|
||||
227,
|
||||
185,
|
||||
224,
|
||||
237,
|
||||
38,
|
||||
231,
|
||||
243,
|
||||
238,
|
||||
43,
|
||||
72,
|
||||
8,
|
||||
28,
|
||||
72,
|
||||
72,
|
||||
160,
|
||||
193,
|
||||
131,
|
||||
8,
|
||||
19,
|
||||
42,
|
||||
60,
|
||||
152,
|
||||
0,
|
||||
0,
|
||||
59
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 627,
|
||||
"offset_body": 1462,
|
||||
"offset_end": 2607
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 270,
|
||||
"offset_end": 2650
|
||||
}
|
||||
+79
-54
@@ -23,36 +23,8 @@ Content-Type: application/x-whatever
|
||||
|
||||
--boundary42--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "boundary42"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Formatted text mail"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
@@ -65,54 +37,91 @@ Content-Type: application/x-whatever
|
||||
"tz_hour": 8,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Formatted text mail"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "boundary42"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>... plain text version of message goes here ...<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "... plain text version of message goes here ...\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "enriched"
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "... RFC 1896 text/enriched version of same message\n goes here ...\n"
|
||||
"is_encoding_problem": false,
|
||||
"body": "... plain text version of message goes here ...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "enriched",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "... RFC 1896 text/enriched version of same message\n goes here ...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "x-whatever"
|
||||
"c_subtype": "x-whatever",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
46,
|
||||
46,
|
||||
46,
|
||||
@@ -167,5 +176,21 @@ Content-Type: application/x-whatever
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 228,
|
||||
"offset_end": 563
|
||||
}
|
||||
+211
-91
@@ -34,34 +34,11 @@ Subject: my different opinion
|
||||
|
||||
------ main boundary ------
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Internet Digest, volume 42"
|
||||
},
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "---- main boundary ----"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Recipient-List"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1994,
|
||||
@@ -74,92 +51,235 @@ Subject: my different opinion
|
||||
"tz_hour": 0,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "---- main boundary ----"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Internet Digest, volume 42"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Recipient-List",
|
||||
"address": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>...Introductory text or table of contents...<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "...Introductory text or table of contents...\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else"
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 11,
|
||||
"minute": 13,
|
||||
"second": 32,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 2,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my opinion"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>...body goes here ...<br/></body></html>"
|
||||
"is_encoding_problem": false,
|
||||
"body": "...Introductory text or table of contents...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "digest",
|
||||
"attributes": {
|
||||
"boundary": "---- next message ----"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "...body goes here ...\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else-again"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 10,
|
||||
"minute": 7,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 5,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my different opinion"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>... another body goes here ...<br/></body></html>"
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 11,
|
||||
"minute": 13,
|
||||
"second": 32,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 2,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my opinion"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "...body goes here ...\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 418,
|
||||
"offset_body": 496,
|
||||
"offset_end": 545
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "... another body goes here ...\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 10,
|
||||
"minute": 7,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 5,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my different opinion"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else-again",
|
||||
"address": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "... another body goes here ...\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 545,
|
||||
"offset_body": 639,
|
||||
"offset_end": 695
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 214,
|
||||
"offset_end": 726
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user