mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 00:01:49 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e604f8fcec | ||
|
|
907984861e | ||
|
|
28fe4d3aff | ||
|
|
0891cb0292 | ||
|
|
2805e029ff | ||
|
|
35b4846c7e | ||
|
|
75d9a9e96a | ||
|
|
1e8dfd31cf | ||
|
|
0be5ed4a41 | ||
|
|
62057172d0 | ||
|
|
a963f0caa7 | ||
|
|
e2b33a90f3 | ||
|
|
d157525b1c | ||
|
|
9f1edeed33 | ||
|
|
509fb718f3 | ||
|
|
eab28c0b2d | ||
|
|
2cae61c6d2 | ||
|
|
da4a9d9a47 | ||
|
|
c3b36dd0d6 | ||
|
|
2f380451f5 | ||
|
|
1a2ac1d027 | ||
|
|
beb21b3d03 | ||
|
|
c77f3e2cb4 | ||
|
|
94522f1179 | ||
|
|
6749649e8c | ||
|
|
63a4620407 | ||
|
|
ccdee2332e | ||
|
|
35754eeaa8 | ||
|
|
4a6ec957d2 | ||
|
|
b48e2d711b | ||
|
|
d4c75e74a6 | ||
|
|
f7281e09cf | ||
|
|
46a8db9a54 | ||
|
|
a0448c31e9 | ||
|
|
41de06fd4e | ||
|
|
7792452a88 | ||
|
|
fdf7075e37 | ||
|
|
bbb2979e4b | ||
|
|
c29fcdc8bf | ||
|
|
715fbbab46 | ||
|
|
09ae0216ca |
@@ -1,3 +1,46 @@
|
||||
mail-parser 0.4.8
|
||||
================================
|
||||
- get_bytes_to_boundary fix (#21)
|
||||
|
||||
mail-parser 0.4.7
|
||||
================================
|
||||
- Retrieving message headers in order (#19)
|
||||
- Added `get_raw_headers` and `get_header` methods.
|
||||
- Added `get_return_address` method to obtain the return address from the Return-Path or From headers.
|
||||
- Support for malformed Return-Path headers.
|
||||
- Support for ks_c_5601 charsets (#20)
|
||||
|
||||
mail-parser 0.4.6
|
||||
================================
|
||||
- DateTime is_valid() fix (#15)
|
||||
|
||||
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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Copyright (C) 2020-2022, Stalwart Labs, Minter Ltd.
|
||||
Copyright (C) 2020-2022, Stalwart Labs Ltd.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
Generated
+117
-45
@@ -4,9 +4,18 @@ version = 3
|
||||
|
||||
[[package]]
|
||||
name = "autocfg"
|
||||
version = "1.0.1"
|
||||
version = "1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
|
||||
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
||||
|
||||
[[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"
|
||||
@@ -15,16 +24,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "dtoa"
|
||||
version = "0.4.8"
|
||||
name = "chrono"
|
||||
version = "0.4.19"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0"
|
||||
checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"num-integer",
|
||||
"num-traits",
|
||||
"time",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "encoding_rs"
|
||||
version = "0.8.28"
|
||||
version = "0.8.31"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "80df024fbc5ac80f87dfef0d9f5209a252f2a497f7f42944cff24d8253cac065"
|
||||
checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
]
|
||||
@@ -37,9 +53,9 @@ checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
|
||||
|
||||
[[package]]
|
||||
name = "indexmap"
|
||||
version = "1.7.0"
|
||||
version = "1.8.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5"
|
||||
checksum = "e6012d540c5baa3589337a98ce73408de9b5a25ec9fc2c6fd6be8f0d39e0ca5a"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"hashbrown",
|
||||
@@ -47,9 +63,15 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "itoa"
|
||||
version = "0.4.8"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
|
||||
checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.126"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836"
|
||||
|
||||
[[package]]
|
||||
name = "linked-hash-map"
|
||||
@@ -59,62 +81,73 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
|
||||
|
||||
[[package]]
|
||||
name = "mail-parser"
|
||||
version = "0.4.0"
|
||||
version = "0.4.8"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"chrono",
|
||||
"encoding_rs",
|
||||
"serde",
|
||||
"serde_bytes",
|
||||
"serde_json",
|
||||
"serde_yaml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.30"
|
||||
name = "num-integer"
|
||||
version = "0.1.45"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70"
|
||||
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
|
||||
dependencies = [
|
||||
"unicode-xid",
|
||||
"autocfg",
|
||||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-traits"
|
||||
version = "0.2.15"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.39"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f"
|
||||
dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "quote"
|
||||
version = "1.0.10"
|
||||
version = "1.0.18"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"
|
||||
checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ryu"
|
||||
version = "1.0.5"
|
||||
version = "1.0.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
||||
checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695"
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.130"
|
||||
version = "1.0.137"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913"
|
||||
checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1"
|
||||
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.137"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b"
|
||||
checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@@ -123,9 +156,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "serde_json"
|
||||
version = "1.0.68"
|
||||
version = "1.0.81"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0f690853975602e1bfe1ccbf50504d67174e3bcf340f23b5ea9992e0587a52d8"
|
||||
checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c"
|
||||
dependencies = [
|
||||
"itoa",
|
||||
"ryu",
|
||||
@@ -134,32 +167,71 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "serde_yaml"
|
||||
version = "0.8.21"
|
||||
version = "0.8.24"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d8c608a35705a5d3cdc9fbe403147647ff34b921f8e833e49306df898f9b20af"
|
||||
checksum = "707d15895415db6628332b737c838b88c598522e4dc70647e59b72312924aebc"
|
||||
dependencies = [
|
||||
"dtoa",
|
||||
"indexmap",
|
||||
"ryu",
|
||||
"serde",
|
||||
"yaml-rust",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "1.0.80"
|
||||
version = "1.0.96"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194"
|
||||
checksum = "0748dd251e24453cb8717f0354206b91557e4ec8703673a4b30208f2abaf1ebf"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"unicode-xid",
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unicode-xid"
|
||||
version = "0.2.2"
|
||||
name = "time"
|
||||
version = "0.1.44"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
|
||||
checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"wasi",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unicode-ident"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee"
|
||||
|
||||
[[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"
|
||||
|
||||
+4
-3
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "mail-parser"
|
||||
description = "Fast and robust e-mail parsing library for Rust"
|
||||
version = "0.4.0"
|
||||
version = "0.4.8"
|
||||
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).
|
||||
@@ -81,34 +80,26 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
// 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"),
|
||||
]
|
||||
}
|
||||
)
|
||||
])
|
||||
);
|
||||
|
||||
@@ -146,8 +137,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
let nested_message = message
|
||||
.get_attachment(0)
|
||||
.unwrap()
|
||||
.unwrap_message()
|
||||
.get_body();
|
||||
.unwrap_message();
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
@@ -170,11 +160,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
|
||||
// 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"
|
||||
);
|
||||
|
||||
@@ -183,6 +169,8 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
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:
|
||||
@@ -229,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
|
||||
|
||||
@@ -288,7 +277,7 @@ at your option.
|
||||
|
||||
## Copyright
|
||||
|
||||
Copyright (C) 2020-2022, Stalwart Labs, Minter Ltd.
|
||||
Copyright (C) 2020-2022, Stalwart Labs Ltd.
|
||||
|
||||
See [COPYING] for the license.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -58,34 +58,26 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
// 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"),
|
||||
]
|
||||
}
|
||||
)
|
||||
])
|
||||
);
|
||||
|
||||
@@ -120,11 +112,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
);
|
||||
|
||||
// Supports nested messages as well as multipart/digest
|
||||
let nested_message = message
|
||||
.get_attachment(0)
|
||||
.unwrap()
|
||||
.unwrap_message()
|
||||
.get_body();
|
||||
let nested_message = message.get_attachment(0).unwrap().unwrap_message();
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
@@ -147,11 +135,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
|
||||
// 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"
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs 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());
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -63,9 +63,17 @@ fn write_attachments(message: &Message) {
|
||||
match attachment {
|
||||
MessagePart::Text(text) | MessagePart::Html(text) => write_part(text),
|
||||
MessagePart::Binary(blob) | MessagePart::InlineBinary(blob) => write_part(blob),
|
||||
MessagePart::Message(message) => {
|
||||
write_part(message);
|
||||
write_attachments(message.get_body());
|
||||
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);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
@@ -74,13 +82,7 @@ fn write_attachments(message: &Message) {
|
||||
|
||||
fn write_part<'x>(part: &'x impl BodyPart<'x>) {
|
||||
std::fs::write(
|
||||
part.get_content_disposition()
|
||||
.and_then(|cd| cd.get_attribute("filename"))
|
||||
.unwrap_or_else(|| {
|
||||
part.get_content_type()
|
||||
.and_then(|ct| ct.get_attribute("name"))
|
||||
.unwrap_or("Untitled")
|
||||
}),
|
||||
part.get_attachment_name().unwrap_or("Untitled"),
|
||||
part.get_contents(),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
Generated
+1
-11
@@ -42,11 +42,10 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mail-parser"
|
||||
version = "0.2.1"
|
||||
version = "0.4.7"
|
||||
dependencies = [
|
||||
"encoding_rs",
|
||||
"serde",
|
||||
"serde_bytes",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -90,15 +89,6 @@ 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"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -550,7 +550,7 @@ static CH_MAP: &[&[u8]; 758] = &[
|
||||
b"",
|
||||
b"",
|
||||
b"",
|
||||
b"",
|
||||
b"ks_c_5601-1989",
|
||||
b"",
|
||||
b"",
|
||||
b"",
|
||||
@@ -660,7 +660,7 @@ static CH_MAP: &[&[u8]; 758] = &[
|
||||
b"",
|
||||
b"",
|
||||
b"",
|
||||
b"",
|
||||
b"ks_c_5601-1987",
|
||||
b"",
|
||||
b"",
|
||||
b"",
|
||||
@@ -1312,7 +1312,7 @@ static FNC_MAP: &[for<'x> fn(&'x [u8]) -> String; 758] = &[
|
||||
no_op,
|
||||
no_op,
|
||||
no_op,
|
||||
no_op,
|
||||
decoder_euc_kr,
|
||||
no_op,
|
||||
no_op,
|
||||
no_op,
|
||||
@@ -1422,7 +1422,7 @@ static FNC_MAP: &[for<'x> fn(&'x [u8]) -> String; 758] = &[
|
||||
no_op,
|
||||
no_op,
|
||||
no_op,
|
||||
no_op,
|
||||
decoder_euc_kr,
|
||||
no_op,
|
||||
no_op,
|
||||
no_op,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
+520
-193
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -24,11 +24,62 @@ impl DateTime {
|
||||
self.hour,
|
||||
self.minute,
|
||||
self.second,
|
||||
if self.tz_before_gmt { "-" } else { "+" },
|
||||
if self.tz_before_gmt && (self.tz_hour > 0 || self.tz_minute > 0) {
|
||||
"-"
|
||||
} else {
|
||||
"+"
|
||||
},
|
||||
self.tz_hour,
|
||||
self.tz_minute
|
||||
)
|
||||
}
|
||||
|
||||
/// Returns true if the date is valid
|
||||
pub fn is_valid(&self) -> bool {
|
||||
(0..=23).contains(&self.tz_hour)
|
||||
&& (1970..=3000).contains(&self.year)
|
||||
&& (0..=59).contains(&self.tz_minute)
|
||||
&& (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) -> i64 {
|
||||
// Ported from https://github.com/protocolbuffers/upb/blob/22182e6e/upb/json_decode.c#L982-L992
|
||||
let year_base = 4800; /* Before min year, multiple of 400. */
|
||||
let m_adj = self.month.wrapping_sub(3); /* 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.wrapping_add(adjust)) * 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 })
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialOrd for DateTime {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
||||
self.cmp(other).into()
|
||||
}
|
||||
}
|
||||
|
||||
impl Ord for DateTime {
|
||||
fn cmp(&self, other: &Self) -> 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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for DateTime {
|
||||
@@ -195,6 +246,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 +318,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(),
|
||||
"{} -> {} ({}) -> {} ({})",
|
||||
input.0.escape_debug(),
|
||||
datetime.to_timestamp(),
|
||||
Utc.timestamp_opt(datetime.to_timestamp(), 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());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -14,6 +14,8 @@ use crate::{parsers::message::MessageStream, HeaderValue};
|
||||
pub fn parse_id<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> {
|
||||
let mut token_start: usize = 0;
|
||||
let mut token_end: usize = 0;
|
||||
let mut token_invalid_start: usize = 0; // Handle broken clients
|
||||
let mut token_invalid_end: usize = 0; // Handle broken clients
|
||||
let mut is_id_part = false;
|
||||
let mut ids = Vec::new();
|
||||
|
||||
@@ -31,7 +33,15 @@ pub fn parse_id<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> {
|
||||
_ => {
|
||||
return match ids.len() {
|
||||
1 => HeaderValue::Text(ids.pop().unwrap()),
|
||||
0 => HeaderValue::Empty,
|
||||
0 => {
|
||||
if token_invalid_start > 0 {
|
||||
HeaderValue::Text(String::from_utf8_lossy(
|
||||
&stream.data[token_invalid_start - 1..token_invalid_end],
|
||||
))
|
||||
} else {
|
||||
HeaderValue::Empty
|
||||
}
|
||||
}
|
||||
_ => HeaderValue::TextList(ids),
|
||||
};
|
||||
}
|
||||
@@ -52,13 +62,18 @@ pub fn parse_id<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> {
|
||||
}
|
||||
}
|
||||
b' ' | b'\t' | b'\r' => continue,
|
||||
_ => (),
|
||||
_ => {}
|
||||
}
|
||||
if is_id_part {
|
||||
if token_start == 0 {
|
||||
token_start = stream.pos;
|
||||
}
|
||||
token_end = stream.pos;
|
||||
} else {
|
||||
if token_invalid_start == 0 {
|
||||
token_invalid_start = stream.pos;
|
||||
}
|
||||
token_invalid_end = stream.pos;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,6 +117,17 @@ mod tests {
|
||||
"<1234 @ local(blah) .machine .example>\n",
|
||||
vec!["1234 @ local(blah) .machine .example"],
|
||||
),
|
||||
("<>\n", vec![""]),
|
||||
// Malformed Ids should be parsed anyway
|
||||
(
|
||||
"malformed@id.machine.example\n",
|
||||
vec!["malformed@id.machine.example"],
|
||||
),
|
||||
(
|
||||
" malformed2@id.machine.example \t \n",
|
||||
vec!["malformed2@id.machine.example"],
|
||||
),
|
||||
(" m \n", vec!["m"]),
|
||||
];
|
||||
|
||||
for input in inputs {
|
||||
@@ -114,7 +140,8 @@ mod tests {
|
||||
assert!(input.1.len() == 1, "Failed to parse '{:?}'", input.0);
|
||||
assert_eq!(id, input.1[0], "Failed to parse '{:?}'", input.0);
|
||||
}
|
||||
_ => panic!("Unexpected result"),
|
||||
HeaderValue::Empty if input.1[0].is_empty() => {}
|
||||
result => panic!("Unexpected result: {:?}", result),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -15,4 +15,5 @@ pub mod date;
|
||||
pub mod id;
|
||||
pub mod list;
|
||||
pub mod raw;
|
||||
pub mod thread;
|
||||
pub mod unstructured;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -73,6 +73,7 @@ pub fn parse_and_ignore(stream: &mut MessageStream) {
|
||||
mod tests {
|
||||
use crate::parsers::fields::raw::parse_raw;
|
||||
use crate::parsers::message::MessageStream;
|
||||
use crate::{HeaderName, Message, RfcHeader};
|
||||
|
||||
#[test]
|
||||
fn parse_raw_text() {
|
||||
@@ -103,4 +104,53 @@ mod tests {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ordered_raw_headers() {
|
||||
let input = br#"From: Art Vandelay <art@vandelay.com>
|
||||
To: jane@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";
|
||||
|
||||
Here's a message body.
|
||||
"#;
|
||||
let message = Message::parse(input).unwrap();
|
||||
let mut iter = message.get_raw_headers();
|
||||
assert_eq!(
|
||||
iter.next().unwrap(),
|
||||
(
|
||||
&HeaderName::Rfc(RfcHeader::From),
|
||||
" Art Vandelay <art@vandelay.com>\n".into()
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
iter.next().unwrap(),
|
||||
(
|
||||
&HeaderName::Rfc(RfcHeader::To),
|
||||
" jane@example.com\n".into()
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
iter.next().unwrap(),
|
||||
(
|
||||
&HeaderName::Rfc(RfcHeader::Date),
|
||||
" Sat, 20 Nov 2021 14:22:01 -0800\n".into()
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
iter.next().unwrap(),
|
||||
(
|
||||
&HeaderName::Rfc(RfcHeader::Subject),
|
||||
" Why not both importing AND exporting? =?utf-8?b?4pi6?=\n".into()
|
||||
)
|
||||
);
|
||||
assert_eq!(
|
||||
iter.next().unwrap(),
|
||||
(
|
||||
&HeaderName::Rfc(RfcHeader::ContentType),
|
||||
" multipart/mixed; boundary=\"festivus\";\n".into()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,308 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -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;
|
||||
|
||||
+137
-160
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -11,19 +11,24 @@
|
||||
|
||||
use std::{borrow::Cow, collections::hash_map::Entry};
|
||||
|
||||
use crate::{HeaderName, HeaderOffset, HeaderOffsetName, HeaderValue, OtherHeaders, RfcHeaders};
|
||||
use crate::{HeaderName, HeaderOffset, HeaderValue, RawHeaders, RfcHeader, RfcHeaders};
|
||||
|
||||
use super::{
|
||||
fields::{
|
||||
address::parse_address, content_type::parse_content_type, date::parse_date, id::parse_id,
|
||||
list::parse_comma_separared, raw::parse_raw, unstructured::parse_unstructured,
|
||||
address::parse_address,
|
||||
content_type::parse_content_type,
|
||||
date::parse_date,
|
||||
id::parse_id,
|
||||
list::parse_comma_separared,
|
||||
raw::{parse_and_ignore, parse_raw},
|
||||
unstructured::parse_unstructured,
|
||||
},
|
||||
message::MessageStream,
|
||||
};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum HeaderParserResult<'x> {
|
||||
Rfc(HeaderName),
|
||||
Rfc(RfcHeader),
|
||||
Other(Cow<'x, str>),
|
||||
Lf,
|
||||
Eof,
|
||||
@@ -31,8 +36,7 @@ pub enum HeaderParserResult<'x> {
|
||||
|
||||
pub fn parse_headers<'x>(
|
||||
headers_rfc: &mut RfcHeaders<'x>,
|
||||
mut headers_other: Option<&mut OtherHeaders<'x>>,
|
||||
mut headers_offsets: Option<&mut Vec<HeaderOffset<'x>>>,
|
||||
headers_raw: &mut RawHeaders<'x>,
|
||||
stream: &mut MessageStream<'x>,
|
||||
) -> bool {
|
||||
loop {
|
||||
@@ -41,72 +45,45 @@ pub fn parse_headers<'x>(
|
||||
|
||||
match result {
|
||||
HeaderParserResult::Rfc(name) => {
|
||||
let (is_many, parser) = HDR_PARSER[name as usize];
|
||||
let (_, parser) = HDR_PARSER[name as usize];
|
||||
|
||||
let from_offset = stream.pos;
|
||||
let value = parser(stream);
|
||||
if let Some(headers_offsets) = headers_offsets.as_mut() {
|
||||
headers_offsets.push(HeaderOffset {
|
||||
name: HeaderOffsetName::Rfc(name),
|
||||
headers_raw.push((
|
||||
HeaderName::Rfc(name),
|
||||
HeaderOffset {
|
||||
start: from_offset,
|
||||
end: stream.pos,
|
||||
});
|
||||
}
|
||||
},
|
||||
));
|
||||
|
||||
if !value.is_empty() {
|
||||
if is_many {
|
||||
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]),
|
||||
);
|
||||
}
|
||||
}
|
||||
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_rfc.insert(name, value);
|
||||
Entry::Vacant(e) => {
|
||||
e.insert(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
HeaderParserResult::Other(name) => {
|
||||
if let Some(headers_other) = headers_other.as_mut() {
|
||||
let from_offset = stream.pos;
|
||||
let value = parse_raw(stream);
|
||||
if let Some(headers_offsets) = headers_offsets.as_mut() {
|
||||
headers_offsets.push(HeaderOffset {
|
||||
name: HeaderOffsetName::Other(name.clone()),
|
||||
start: from_offset,
|
||||
end: stream.pos,
|
||||
});
|
||||
}
|
||||
|
||||
if !value.is_empty() {
|
||||
match headers_other.entry(name.clone()) {
|
||||
Entry::Occupied(mut e) => {
|
||||
if let HeaderValue::Collection(col) = e.get_mut() {
|
||||
col.push(value);
|
||||
} else {
|
||||
let old_value = e.remove();
|
||||
headers_other.insert(
|
||||
name,
|
||||
HeaderValue::Collection(vec![old_value, value]),
|
||||
);
|
||||
}
|
||||
}
|
||||
Entry::Vacant(e) => {
|
||||
e.insert(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
let from_offset = stream.pos;
|
||||
parse_and_ignore(stream);
|
||||
headers_raw.push((
|
||||
HeaderName::Other(name),
|
||||
HeaderOffset {
|
||||
start: from_offset,
|
||||
end: stream.pos,
|
||||
},
|
||||
));
|
||||
}
|
||||
HeaderParserResult::Lf => return true,
|
||||
HeaderParserResult::Eof => return false,
|
||||
@@ -128,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::Rfc(HDR_MAP[token_hash]));
|
||||
}
|
||||
}
|
||||
}
|
||||
return (
|
||||
bytes_read,
|
||||
HeaderParserResult::Other(String::from_utf8_lossy(field)),
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
b'\n' => {
|
||||
@@ -170,30 +130,47 @@ 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];
|
||||
|
||||
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<HeaderName> for u8 {
|
||||
fn from(name: HeaderName) -> Self {
|
||||
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::Rfc(HeaderName::From)),
|
||||
("receiVED: ", HeaderParserResult::Rfc(HeaderName::Received)),
|
||||
(
|
||||
" subject : ",
|
||||
HeaderParserResult::Rfc(HeaderName::Subject),
|
||||
),
|
||||
("From: ", HeaderParserResult::Rfc(RfcHeader::From)),
|
||||
("receiVED: ", HeaderParserResult::Rfc(RfcHeader::Received)),
|
||||
(" subject : ", HeaderParserResult::Rfc(RfcHeader::Subject)),
|
||||
(
|
||||
"X-Custom-Field : ",
|
||||
HeaderParserResult::Other("X-Custom-Field".into()),
|
||||
@@ -205,7 +182,7 @@ mod tests {
|
||||
),
|
||||
(
|
||||
"MIME-version : ",
|
||||
HeaderParserResult::Rfc(HeaderName::MimeVersion),
|
||||
HeaderParserResult::Rfc(RfcHeader::MimeVersion),
|
||||
),
|
||||
];
|
||||
|
||||
@@ -231,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,
|
||||
@@ -276,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::Other,
|
||||
HeaderName::Sender,
|
||||
HeaderName::Other,
|
||||
HeaderName::Received,
|
||||
HeaderName::Other,
|
||||
HeaderName::References,
|
||||
HeaderName::Other,
|
||||
HeaderName::Cc,
|
||||
HeaderName::Comments,
|
||||
HeaderName::ResentCc,
|
||||
HeaderName::ContentId,
|
||||
HeaderName::Other,
|
||||
HeaderName::ResentMessageId,
|
||||
HeaderName::ReplyTo,
|
||||
HeaderName::ResentTo,
|
||||
HeaderName::ResentBcc,
|
||||
HeaderName::ContentLanguage,
|
||||
HeaderName::Subject,
|
||||
HeaderName::ResentSender,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::ResentDate,
|
||||
HeaderName::To,
|
||||
HeaderName::Bcc,
|
||||
HeaderName::Other,
|
||||
HeaderName::ContentTransferEncoding,
|
||||
HeaderName::ReturnPath,
|
||||
HeaderName::ListId,
|
||||
HeaderName::Keywords,
|
||||
HeaderName::ContentDescription,
|
||||
HeaderName::ListOwner,
|
||||
HeaderName::Other,
|
||||
HeaderName::ContentType,
|
||||
HeaderName::Other,
|
||||
HeaderName::ListHelp,
|
||||
HeaderName::MessageId,
|
||||
HeaderName::ContentLocation,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::ListSubscribe,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::ListPost,
|
||||
HeaderName::Other,
|
||||
HeaderName::ResentFrom,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::ContentDisposition,
|
||||
HeaderName::Other,
|
||||
HeaderName::InReplyTo,
|
||||
HeaderName::ListArchive,
|
||||
HeaderName::Other,
|
||||
HeaderName::From,
|
||||
HeaderName::Other,
|
||||
HeaderName::ListUnsubscribe,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
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 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());
|
||||
}
|
||||
}
|
||||
+236
-153
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -16,8 +16,8 @@ use crate::{
|
||||
base64::decode_base64, charsets::map::get_charset_decoder,
|
||||
quoted_printable::decode_quoted_printable, DecodeFnc, DecodeResult,
|
||||
},
|
||||
ContentType, HeaderName, HeaderValue, Message, MessagePart, MessagePartId, MessageStructure,
|
||||
Part, RfcHeaders,
|
||||
ContentType, HeaderName, HeaderValue, Message, MessageAttachment, MessagePart, MessagePartId,
|
||||
MessageStructure, MultiPart, Part, RawHeaders, RfcHeader, RfcHeaders,
|
||||
};
|
||||
|
||||
use super::{
|
||||
@@ -25,6 +25,16 @@ use super::{
|
||||
mime::{get_bytes_to_boundary, seek_crlf_end, seek_next_part, skip_crlf, skip_multipart_end},
|
||||
};
|
||||
|
||||
const MIME_HEADERS: &[RfcHeader] = &[
|
||||
RfcHeader::ContentType,
|
||||
RfcHeader::ContentDisposition,
|
||||
RfcHeader::ContentId,
|
||||
RfcHeader::ContentLanguage,
|
||||
RfcHeader::ContentLocation,
|
||||
RfcHeader::ContentTransferEncoding,
|
||||
RfcHeader::ContentDescription,
|
||||
];
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
enum MimeType {
|
||||
MultipartMixed,
|
||||
@@ -114,6 +124,24 @@ 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,
|
||||
@@ -176,7 +204,7 @@ impl<'x> Message<'x> {
|
||||
|
||||
/// Returns `false` if at least one header field was successfully parsed.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.headers_rfc.is_empty() && self.headers_other.is_empty()
|
||||
self.headers_rfc.is_empty() && self.headers_raw.is_empty()
|
||||
}
|
||||
|
||||
/// Parses a byte slice containing the RFC5322 raw message and returns a
|
||||
@@ -190,14 +218,12 @@ impl<'x> Message<'x> {
|
||||
|
||||
let mut message = Message::new();
|
||||
let mut message_stack = Vec::new();
|
||||
let mut message_header_stack = Vec::new();
|
||||
|
||||
let mut state = MessageParserState::new();
|
||||
let mut state_stack = Vec::new();
|
||||
|
||||
let mut mime_part_header = RfcHeaders::new();
|
||||
|
||||
message.raw_message = raw_message;
|
||||
let mut mime_part_header_raw = RawHeaders::new();
|
||||
|
||||
'outer: loop {
|
||||
// Parse headers
|
||||
@@ -205,8 +231,7 @@ impl<'x> Message<'x> {
|
||||
message.offset_header = stream.pos;
|
||||
if !parse_headers(
|
||||
&mut message.headers_rfc,
|
||||
Some(&mut message.headers_other),
|
||||
Some(&mut message.headers_offsets),
|
||||
&mut message.headers_raw,
|
||||
&mut stream,
|
||||
) {
|
||||
break;
|
||||
@@ -214,7 +239,11 @@ impl<'x> Message<'x> {
|
||||
message.offset_body = seek_crlf_end(&stream, stream.pos);
|
||||
(true, &mut message.headers_rfc)
|
||||
} else {
|
||||
if !parse_headers(&mut mime_part_header, None, None, &mut stream) {
|
||||
if !parse_headers(
|
||||
&mut mime_part_header,
|
||||
&mut mime_part_header_raw,
|
||||
&mut stream,
|
||||
) {
|
||||
break;
|
||||
}
|
||||
(false, &mut mime_part_header)
|
||||
@@ -223,7 +252,7 @@ impl<'x> Message<'x> {
|
||||
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) =
|
||||
@@ -253,18 +282,10 @@ impl<'x> Message<'x> {
|
||||
..Default::default()
|
||||
};
|
||||
if !is_message {
|
||||
if mime_part_header.is_empty() {
|
||||
mime_part_header.insert(
|
||||
HeaderName::ContentType,
|
||||
HeaderValue::ContentType(ContentType {
|
||||
c_type: "text".into(),
|
||||
c_subtype: Some("plain".into()),
|
||||
attributes: None,
|
||||
}),
|
||||
);
|
||||
}
|
||||
message.parts.push(MessagePart::Multipart(std::mem::take(
|
||||
&mut mime_part_header,
|
||||
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);
|
||||
@@ -276,37 +297,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(),
|
||||
need_html_body: true,
|
||||
need_text_body: true,
|
||||
..Default::default()
|
||||
};
|
||||
if mime_part_header.is_empty() {
|
||||
mime_part_header.insert(
|
||||
HeaderName::ContentType,
|
||||
HeaderValue::ContentType(ContentType {
|
||||
c_type: "message".into(),
|
||||
c_subtype: Some("rfc822".into()),
|
||||
attributes: None,
|
||||
}),
|
||||
);
|
||||
}
|
||||
message_header_stack.push(std::mem::take(&mut mime_part_header));
|
||||
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)
|
||||
@@ -319,6 +315,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,
|
||||
@@ -330,8 +350,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;
|
||||
}
|
||||
|
||||
@@ -359,9 +381,11 @@ impl<'x> Message<'x> {
|
||||
bytes = r_bytes;
|
||||
stream.pos += bytes_read;
|
||||
} else {
|
||||
state.structure.pop();
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
state.structure.pop();
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@@ -375,92 +399,149 @@ 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 MIME_HEADERS {
|
||||
if let Some(value) = message.headers_rfc.remove(header_name) {
|
||||
text_part.headers_rfc.insert(*header_name, value);
|
||||
}
|
||||
}
|
||||
|
||||
for (header_name, offset) in &message.headers_raw {
|
||||
match header_name {
|
||||
HeaderName::Rfc(header_name)
|
||||
if MIME_HEADERS.contains(header_name) =>
|
||||
{
|
||||
text_part
|
||||
.headers_raw
|
||||
.push((HeaderName::Rfc(*header_name), offset.clone()));
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
(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 is_html = mime_type == MimeType::TextHtml;
|
||||
let text_part = Part {
|
||||
body: result_to_string(bytes, stream.data, content_type),
|
||||
headers: 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());
|
||||
}
|
||||
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 {
|
||||
message.attachments.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());
|
||||
message.parts.push(if is_html {
|
||||
MessagePart::Html(text_part)
|
||||
} else {
|
||||
MessagePart::Text(text_part)
|
||||
});
|
||||
} else {
|
||||
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());
|
||||
}
|
||||
state
|
||||
.structure
|
||||
.push(MessageStructure::Part(message.parts.len()));
|
||||
message.parts.push(if is_html {
|
||||
MessagePart::Html(text_part)
|
||||
} else {
|
||||
MessagePart::Text(text_part)
|
||||
});
|
||||
|
||||
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 MIME_HEADERS {
|
||||
if let Some(value) = message.headers_rfc.remove(header_name) {
|
||||
binary_part.headers_rfc.insert(*header_name, value);
|
||||
}
|
||||
}
|
||||
|
||||
for (header_name, offset) in &message.headers_raw {
|
||||
match header_name {
|
||||
HeaderName::Rfc(header_name)
|
||||
if MIME_HEADERS.contains(header_name) =>
|
||||
{
|
||||
binary_part
|
||||
.headers_raw
|
||||
.push((HeaderName::Rfc(*header_name), offset.clone()));
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
message.parts.push(if !is_inline {
|
||||
MessagePart::Binary(binary_part)
|
||||
} else {
|
||||
MessagePart::InlineBinary(binary_part)
|
||||
});
|
||||
};
|
||||
} else {
|
||||
if add_to_html {
|
||||
message.html_body.push(message.parts.len());
|
||||
}
|
||||
if add_to_text {
|
||||
message.text_body.push(message.parts.len());
|
||||
}
|
||||
|
||||
add_missing_type(&mut mime_part_header, "message".into(), "rfc822".into());
|
||||
message.attachments.push(message.parts.len());
|
||||
|
||||
state
|
||||
.structure
|
||||
.push(MessageStructure::Part(message.parts.len()));
|
||||
|
||||
let binary_part = Part::new(
|
||||
message.parts.push(MessagePart::Message(Part::new(
|
||||
std::mem::take(&mut mime_part_header),
|
||||
result_to_bytes(bytes, stream.data),
|
||||
);
|
||||
|
||||
message.parts.push(if !is_inline {
|
||||
MessagePart::Binary(binary_part)
|
||||
} else {
|
||||
MessagePart::InlineBinary(binary_part)
|
||||
});
|
||||
};
|
||||
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
|
||||
@@ -469,17 +550,21 @@ impl<'x> Message<'x> {
|
||||
'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())
|
||||
{
|
||||
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];
|
||||
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(
|
||||
message_header_stack.pop().unwrap(),
|
||||
Box::new(message),
|
||||
headers,
|
||||
headers_raw,
|
||||
MessageAttachment::Parsed(Box::new(message)),
|
||||
false,
|
||||
)));
|
||||
message = prev_message;
|
||||
prev_state.mime_boundary = state.mime_boundary;
|
||||
@@ -543,22 +628,26 @@ impl<'x> Message<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
while let (Some(mut prev_message), Some(prev_state)) =
|
||||
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() {
|
||||
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(
|
||||
message_header_stack.pop().unwrap(),
|
||||
Box::new(message),
|
||||
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;
|
||||
|
||||
@@ -573,9 +662,11 @@ impl<'x> Message<'x> {
|
||||
mod tests {
|
||||
use std::{fs, path::PathBuf};
|
||||
|
||||
use crate::{parsers::message::Message, MessagePart};
|
||||
use serde_json::Value;
|
||||
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----\n".as_bytes();
|
||||
use crate::parsers::message::Message;
|
||||
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----".as_bytes();
|
||||
|
||||
#[test]
|
||||
fn parse_full_messages() {
|
||||
@@ -608,27 +699,18 @@ mod tests {
|
||||
tests_run += 1;
|
||||
|
||||
let input = input.split_at_mut(pos);
|
||||
let mut message = Message::parse(input.0).unwrap();
|
||||
|
||||
// Remove raw message references before comparing
|
||||
message.raw_message = &[];
|
||||
for parts in &mut message.parts {
|
||||
if let MessagePart::Message(part) = parts {
|
||||
part.body.raw_message = &[];
|
||||
for parts in &mut part.body.parts {
|
||||
if let MessagePart::Message(part) = parts {
|
||||
part.body.raw_message = &[];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -646,7 +728,7 @@ mod tests {
|
||||
let mut file_name = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
file_name.push("tests");
|
||||
file_name.push("rfc");
|
||||
file_name.push("007.txt");
|
||||
file_name.push("003.txt");
|
||||
|
||||
let mut input = fs::read(&file_name).unwrap();
|
||||
let mut pos = 0;
|
||||
@@ -675,7 +757,7 @@ mod tests {
|
||||
|
||||
#[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 ["legacy", "malformed", "rfc", "thirdparty"] {
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
@@ -694,6 +776,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() {
|
||||
|
||||
+6
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -62,7 +62,11 @@ pub fn get_bytes_to_boundary<'x>(
|
||||
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.saturating_sub(1)) {
|
||||
match_pos -= 1;
|
||||
}
|
||||
|
||||
return (
|
||||
read_pos - start_pos,
|
||||
|
||||
+3
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -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 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
+35
-38
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@@ -57,35 +57,33 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
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"),
|
||||
]
|
||||
}
|
||||
)
|
||||
])
|
||||
);
|
||||
|
||||
@@ -93,10 +91,12 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
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(),
|
||||
concat!(
|
||||
@@ -105,6 +105,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
" why not do both? ☺</p></html>"
|
||||
)
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
message.get_text_body(0).unwrap(),
|
||||
concat!(
|
||||
@@ -112,34 +113,30 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
" “importing”,\nbut then I thought, why not do both? ☺\n"
|
||||
)
|
||||
);
|
||||
let nested_message = message
|
||||
.get_attachment(0)
|
||||
.unwrap()
|
||||
.unwrap_message()
|
||||
.get_body();
|
||||
|
||||
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(),
|
||||
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
|
||||
);
|
||||
|
||||
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);
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
+41
-153
@@ -42,26 +42,28 @@ QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
|
||||
tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
|
||||
IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- 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"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -75,154 +77,40 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 76
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 84,
|
||||
"end": 125
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 130,
|
||||
"end": 164
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 225
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 238,
|
||||
"end": 244
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 257,
|
||||
"end": 291
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 317,
|
||||
"end": 326
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 346,
|
||||
"end": 385
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 396,
|
||||
"end": 409
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 427,
|
||||
"end": 436
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 445,
|
||||
"end": 498
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 509,
|
||||
"end": 518
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 528,
|
||||
"end": 576
|
||||
}
|
||||
],
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"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,
|
||||
|
||||
+26
-133
@@ -33,18 +33,8 @@ ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein =
|
||||
m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
@@ -57,18 +47,6 @@ m+APw-ssen als wir.+ACI-=20
|
||||
}
|
||||
]
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -82,6 +60,15 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
@@ -89,125 +76,31 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 39
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 42,
|
||||
"end": 146
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 154,
|
||||
"end": 224
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 229,
|
||||
"end": 262
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 273,
|
||||
"end": 322
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 335,
|
||||
"end": 340
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 353,
|
||||
"end": 383
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 409,
|
||||
"end": 427
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 438,
|
||||
"end": 450
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 468,
|
||||
"end": 476
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 485,
|
||||
"end": 537
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 548,
|
||||
"end": 556
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 566,
|
||||
"end": 613
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+38
-125
@@ -35,42 +35,8 @@ wir." <br>
|
||||
</font></html>
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -83,107 +49,54 @@ wir." <br>
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "2 (High)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 192
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 197,
|
||||
"end": 231
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 290
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 295,
|
||||
"end": 332
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 340,
|
||||
"end": 387
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 400,
|
||||
"end": 406
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 419,
|
||||
"end": 453
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 479,
|
||||
"end": 498
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+9
-90
@@ -62,12 +62,8 @@ wir." <br>
|
||||
--=====================_714967308==_.ALT--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -81,6 +77,9 @@ wir." <br>
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
@@ -109,99 +108,17 @@ wir." <br>
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "2 (High)"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 192
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 197,
|
||||
"end": 231
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 290
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 295,
|
||||
"end": 332
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 340,
|
||||
"end": 387
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 400,
|
||||
"end": 406
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 419,
|
||||
"end": 496
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
@@ -215,12 +132,13 @@ wir." <br>
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
@@ -234,6 +152,7 @@ wir." <br>
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+29
-109
@@ -17,9 +17,23 @@ A HARE one day ridiculed the short feet and slow pace of the Tortoise, who repli
|
||||
Slow but steady wins the race.
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- 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"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
@@ -38,124 +52,30 @@ Slow but steady wins the race.
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "5 (Lowest)"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 194
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 199,
|
||||
"end": 233
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 236,
|
||||
"end": 266
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 271,
|
||||
"end": 308
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 316,
|
||||
"end": 344
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 357,
|
||||
"end": 363
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 376,
|
||||
"end": 409
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"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\r\n"
|
||||
}
|
||||
}
|
||||
|
||||
+22
-129
@@ -31,15 +31,8 @@ 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 ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
@@ -59,8 +52,11 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
@@ -68,138 +64,35 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 96
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 104,
|
||||
"end": 175
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 180,
|
||||
"end": 214
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 225,
|
||||
"end": 275
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 288,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 339
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 365,
|
||||
"end": 384
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 395,
|
||||
"end": 408
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 426,
|
||||
"end": 435
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 444,
|
||||
"end": 497
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 508,
|
||||
"end": 517
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 527,
|
||||
"end": 575
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+38
-136
@@ -82,27 +82,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_0004_01BFC037.28F2FA90--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -116,6 +97,24 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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",
|
||||
@@ -129,109 +128,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 76
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 84,
|
||||
"end": 125
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 130,
|
||||
"end": 164
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 225
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 238,
|
||||
"end": 244
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 257,
|
||||
"end": 331
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 342,
|
||||
"end": 355
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 373,
|
||||
"end": 382
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 391,
|
||||
"end": 444
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 455,
|
||||
"end": 464
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 474,
|
||||
"end": 522
|
||||
}
|
||||
],
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0,
|
||||
1
|
||||
@@ -239,18 +137,19 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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",
|
||||
@@ -261,6 +160,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1592,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",
|
||||
@@ -1604,16 +1513,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+28
-135
@@ -30,14 +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 ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -45,14 +41,8 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -67,138 +57,41 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 112
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 120,
|
||||
"end": 194
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 199,
|
||||
"end": 233
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 244,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 313
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 326,
|
||||
"end": 363
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 389,
|
||||
"end": 408
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 419,
|
||||
"end": 432
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 450,
|
||||
"end": 459
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 468,
|
||||
"end": 521
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 532,
|
||||
"end": 541
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 551,
|
||||
"end": 599
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+41
-138
@@ -134,8 +134,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_0002_01BFC036.AE309650--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -143,11 +142,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -174,116 +170,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 99
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 107,
|
||||
"end": 148
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 153,
|
||||
"end": 187
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 198,
|
||||
"end": 248
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 261,
|
||||
"end": 267
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 280,
|
||||
"end": 354
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 365,
|
||||
"end": 378
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 396,
|
||||
"end": 405
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 414,
|
||||
"end": 467
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 478,
|
||||
"end": 487
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 497,
|
||||
"end": 545
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -298,7 +194,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -307,17 +206,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -330,6 +227,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
@@ -339,6 +237,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1670,7 +1569,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1680,18 +1588,11 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -2996,18 +2897,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3016,8 +2906,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+31
-128
@@ -35,33 +35,19 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- 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"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"format": "flowed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -76,125 +62,42 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"Disposition-Notification-To": {
|
||||
"Text": "<dwsauder@example.com>"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "1 (Highest)"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Disposition-Notification-To"
|
||||
},
|
||||
"start": 141,
|
||||
"end": 166
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 223
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 248
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 253,
|
||||
"end": 287
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 290,
|
||||
"end": 373
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 378,
|
||||
"end": 415
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 423,
|
||||
"end": 468
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 481,
|
||||
"end": 487
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 500,
|
||||
"end": 550
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 576,
|
||||
"end": 595
|
||||
}
|
||||
],
|
||||
"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",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+31
-118
@@ -20,28 +20,8 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 10,
|
||||
"second": 27,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche"
|
||||
},
|
||||
@@ -57,118 +37,51 @@ 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"
|
||||
}
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 10,
|
||||
"second": 27,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "1 (Highest)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 195
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 200,
|
||||
"end": 234
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 237,
|
||||
"end": 274
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 279,
|
||||
"end": 316
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 324,
|
||||
"end": 352
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 365,
|
||||
"end": 371
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 384,
|
||||
"end": 419
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 445,
|
||||
"end": 452
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+28
-105
@@ -28,42 +28,20 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -76,97 +54,42 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 209
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 212,
|
||||
"end": 299
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 304,
|
||||
"end": 341
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 349,
|
||||
"end": 396
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 409,
|
||||
"end": 415
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 428,
|
||||
"end": 463
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 489,
|
||||
"end": 508
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+27
-134
@@ -29,9 +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 ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -45,11 +50,8 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -57,147 +59,38 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "Windows-1252"
|
||||
}
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 101
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 109,
|
||||
"end": 185
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 190,
|
||||
"end": 224
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 235,
|
||||
"end": 285
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 298,
|
||||
"end": 304
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 317,
|
||||
"end": 356
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 382,
|
||||
"end": 401
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 412,
|
||||
"end": 425
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 443,
|
||||
"end": 452
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 461,
|
||||
"end": 514
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 525,
|
||||
"end": 534
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 544,
|
||||
"end": 592
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+34
-141
@@ -30,16 +30,25 @@ wenig aufschieben, denn auch uns f
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 13,
|
||||
"second": 51,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
@@ -56,149 +65,33 @@ welche also wohl noch ungl
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 13,
|
||||
"second": 51,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 112
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 120,
|
||||
"end": 194
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 199,
|
||||
"end": 233
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 244,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 313
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 326,
|
||||
"end": 363
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 389,
|
||||
"end": 396
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 407,
|
||||
"end": 420
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 438,
|
||||
"end": 447
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 456,
|
||||
"end": 509
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 520,
|
||||
"end": 529
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 539,
|
||||
"end": 587
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+18
-119
@@ -71,8 +71,7 @@ race. =20
|
||||
|
||||
------=_NextPart_000_0005_01BFC037.799BEF60--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -80,12 +79,15 @@ race. =20
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -99,15 +101,6 @@ race. =20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -116,121 +109,25 @@ race. =20
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 76
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 84,
|
||||
"end": 125
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 130,
|
||||
"end": 164
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 225
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 238,
|
||||
"end": 244
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 257,
|
||||
"end": 337
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 348,
|
||||
"end": 361
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 379,
|
||||
"end": 388
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 397,
|
||||
"end": 450
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 461,
|
||||
"end": 470
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 480,
|
||||
"end": 528
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -244,12 +141,13 @@ race. =20
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -263,6 +161,7 @@ race. =20
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+65
-135
@@ -197,11 +197,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--=====================_715392540==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -216,24 +215,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@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",
|
||||
@@ -242,91 +232,17 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"boundary": "=====================_715392540==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "2 (High)"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 192
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 197,
|
||||
"end": 231
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 288
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 293,
|
||||
"end": 330
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 338,
|
||||
"end": 383
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 396,
|
||||
"end": 402
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 415,
|
||||
"end": 482
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
3
|
||||
],
|
||||
@@ -342,13 +258,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715392540==_.REL"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715392540==_.REL"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -356,12 +274,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392550==_.ALT"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392550==_.ALT"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -369,7 +289,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -383,12 +303,13 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -402,14 +323,21 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"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": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3ed95.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
@@ -423,15 +351,11 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa3ed95.png"
|
||||
}
|
||||
}
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1763,15 +1687,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa3edd1.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1781,6 +1697,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3edd1.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -1788,6 +1713,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -3247,10 +3173,11 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
@@ -3269,6 +3196,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -4600,7 +4528,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4616,12 +4544,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+36
-107
@@ -94,16 +94,15 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
--=====================_716373961==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716373961==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
@@ -112,12 +111,18 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
"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"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -131,89 +136,10 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716373961==_"
|
||||
}
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 209
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 212,
|
||||
"end": 295
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 300,
|
||||
"end": 337
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 345,
|
||||
"end": 390
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 403,
|
||||
"end": 409
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 422,
|
||||
"end": 489
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -227,7 +153,7 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
@@ -241,15 +167,17 @@ JB@ac)(GTFLiL)!d09'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\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
@@ -265,6 +193,7 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
13,
|
||||
10,
|
||||
@@ -2194,14 +2123,22 @@ 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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
@@ -2210,16 +2147,9 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
"name": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
13,
|
||||
10,
|
||||
@@ -3351,8 +3281,7 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
33,
|
||||
58,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+49
-120
@@ -101,8 +101,7 @@ end
|
||||
--=====================_716177458==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -110,30 +109,9 @@ end
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716177458==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -146,81 +124,29 @@ end
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716177458==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 209
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 212,
|
||||
"end": 257
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 262,
|
||||
"end": 299
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 335
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 348,
|
||||
"end": 354
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 367,
|
||||
"end": 434
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -234,7 +160,7 @@ end
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -245,12 +171,22 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
@@ -262,16 +198,9 @@ end
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
13,
|
||||
10,
|
||||
@@ -2126,14 +2055,22 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -2145,16 +2082,9 @@ end
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
13,
|
||||
10,
|
||||
@@ -4047,8 +3977,7 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+74
-150
@@ -137,37 +137,30 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
--=====================_715157131==_.REL--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715157131==_.REL",
|
||||
"type": "multipart/alternative"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"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,
|
||||
@@ -181,93 +174,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "2 (High)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 192
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 197,
|
||||
"end": 231
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 288
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 293,
|
||||
"end": 330
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 338,
|
||||
"end": 383
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 396,
|
||||
"end": 402
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 415,
|
||||
"end": 520
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
2
|
||||
],
|
||||
@@ -281,12 +197,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715157141==_.ALT"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715157141==_.ALT"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -294,7 +212,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -308,12 +226,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -322,31 +244,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -355,8 +261,24 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1688,7 +1610,22 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"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",
|
||||
@@ -1697,22 +1634,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+49
-145
@@ -143,30 +143,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_0008_01BFC037.FDD8EE90--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -188,111 +166,29 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 76
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 84,
|
||||
"end": 125
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 130,
|
||||
"end": 164
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 225
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 238,
|
||||
"end": 244
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 257,
|
||||
"end": 331
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 342,
|
||||
"end": 355
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 373,
|
||||
"end": 382
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 391,
|
||||
"end": 444
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 455,
|
||||
"end": 464
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 474,
|
||||
"end": 522
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
2
|
||||
],
|
||||
@@ -306,12 +202,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0009_01BFC037.FDD8EE90"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0009_01BFC037.FDD8EE90"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -319,7 +217,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -333,12 +231,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -347,28 +249,27 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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><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": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -379,6 +280,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1683,7 +1585,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1696,15 +1601,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+27
-134
@@ -30,18 +30,20 @@ wenig aufschieben, denn auch uns f
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -55,150 +57,41 @@ welche also wohl noch ungl
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 89
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 97,
|
||||
"end": 148
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 153,
|
||||
"end": 187
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 198,
|
||||
"end": 248
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 261,
|
||||
"end": 267
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 280,
|
||||
"end": 317
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 343,
|
||||
"end": 350
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 361,
|
||||
"end": 374
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 392,
|
||||
"end": 401
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 410,
|
||||
"end": 463
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 474,
|
||||
"end": 483
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 493,
|
||||
"end": 541
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+70
-163
@@ -187,30 +187,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_0010_01BFC038.B91BC650--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.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"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -224,6 +202,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -232,111 +216,23 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 76
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 84,
|
||||
"end": 125
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 130,
|
||||
"end": 164
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 225
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 238,
|
||||
"end": 244
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 257,
|
||||
"end": 331
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 342,
|
||||
"end": 355
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 373,
|
||||
"end": 382
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 391,
|
||||
"end": 444
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 455,
|
||||
"end": 464
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 474,
|
||||
"end": 522
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
3
|
||||
],
|
||||
@@ -351,12 +247,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0011_01BFC038.B91BC650"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0011_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -364,12 +262,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_002_0012_01BFC038.B91BC650"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_002_0012_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -377,10 +277,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -389,14 +286,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
@@ -410,18 +311,13 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"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_id": {
|
||||
"Text": "938014623@17052000-0f9b"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -430,8 +326,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "938014623@17052000-0f9b"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1763,7 +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",
|
||||
@@ -1772,19 +1687,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -3089,7 +2994,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3105,12 +3010,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+36
-143
@@ -29,33 +29,8 @@ IHdlbGNoZSBhbHNvIHdvaGwgbm9jaCB1bmds/GNrbGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIu
|
||||
IiANCg==
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -69,135 +44,53 @@ IiANCg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 89
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 97,
|
||||
"end": 148
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 153,
|
||||
"end": 187
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 198,
|
||||
"end": 248
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 261,
|
||||
"end": 267
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 280,
|
||||
"end": 317
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 343,
|
||||
"end": 352
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 363,
|
||||
"end": 376
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 394,
|
||||
"end": 403
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 412,
|
||||
"end": 465
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 476,
|
||||
"end": 485
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 495,
|
||||
"end": 543
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+49
-116
@@ -107,15 +107,20 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
--=====================_716541962==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716541962==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
@@ -125,6 +130,9 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -138,95 +146,13 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716541962==_"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 209
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 212,
|
||||
"end": 295
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 300,
|
||||
"end": 337
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 345,
|
||||
"end": 390
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 403,
|
||||
"end": 409
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 422,
|
||||
"end": 489
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -241,7 +167,7 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
@@ -255,12 +181,22 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "image",
|
||||
@@ -272,16 +208,9 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1613,15 +1542,7 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -1630,17 +1551,24 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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\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_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -1650,15 +1578,20 @@ 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+43
-122
@@ -108,37 +108,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
--=====================_715429112==_.REL--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715429112==_.REL"
|
||||
"boundary": "=====================_715429112==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -152,93 +133,28 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "2 (High)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 192
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 197,
|
||||
"end": 231
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 288
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 293,
|
||||
"end": 330
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 338,
|
||||
"end": 383
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 396,
|
||||
"end": 402
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 415,
|
||||
"end": 508
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -252,7 +168,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"parts": [
|
||||
{
|
||||
"Html": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -266,26 +182,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa48eb6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -294,8 +200,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "2aa48eb6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48eb6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1627,18 +1546,16 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48ec0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3"
|
||||
},
|
||||
@@ -1650,8 +1567,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "2aa48ec0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+63
-136
@@ -170,21 +170,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--=====================_715462801==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -194,15 +181,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -215,91 +202,20 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "2 (High)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 192
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 197,
|
||||
"end": 231
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 288
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 293,
|
||||
"end": 330
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 338,
|
||||
"end": 383
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 396,
|
||||
"end": 402
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 415,
|
||||
"end": 482
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
@@ -315,13 +231,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715462801==_.REL"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715462801==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -329,7 +247,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -338,17 +259,18 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"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.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",
|
||||
@@ -358,21 +280,20 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa51367.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1704,7 +1625,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1723,12 +1644,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa51371.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -3188,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",
|
||||
@@ -3200,16 +3132,9 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -4541,15 +4466,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4561,8 +4478,18 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+44
-113
@@ -83,9 +83,11 @@ Birds of a feather flock together.
|
||||
--=====================_716740438==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -95,14 +97,8 @@ Birds of a feather flock together.
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -117,92 +113,22 @@ Birds of a feather flock together.
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 209
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 212,
|
||||
"end": 266
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 271,
|
||||
"end": 308
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 316,
|
||||
"end": 361
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 374,
|
||||
"end": 380
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 393,
|
||||
"end": 460
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -216,7 +142,10 @@ Birds of a feather flock together.
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -225,17 +154,24 @@ Birds of a feather flock together.
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
@@ -244,27 +180,29 @@ Birds of a feather flock together.
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFr�sche.txt",
|
||||
"x-mac-type": "54455854",
|
||||
"name": "HasenundFr�sche.txt",
|
||||
"x-mac-creator": "74747874"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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\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",
|
||||
@@ -273,17 +211,10 @@ Birds of a feather flock together.
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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\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"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+28
-135
@@ -30,30 +30,8 @@ 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 ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com"
|
||||
},
|
||||
@@ -73,132 +51,47 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 89
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 97,
|
||||
"end": 148
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 153,
|
||||
"end": 187
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 198,
|
||||
"end": 248
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 261,
|
||||
"end": 267
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 280,
|
||||
"end": 317
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 343,
|
||||
"end": 362
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 373,
|
||||
"end": 386
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 404,
|
||||
"end": 413
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 422,
|
||||
"end": 475
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 486,
|
||||
"end": 495
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 505,
|
||||
"end": 553
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+53
-151
@@ -155,9 +155,38 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
------=_NextPart_000_000C_01BFC038.5A5C8E60--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -170,141 +199,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 76
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 84,
|
||||
"end": 125
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 130,
|
||||
"end": 164
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 175,
|
||||
"end": 225
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 238,
|
||||
"end": 244
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 257,
|
||||
"end": 333
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 344,
|
||||
"end": 357
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 375,
|
||||
"end": 384
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 393,
|
||||
"end": 446
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 457,
|
||||
"end": 466
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 476,
|
||||
"end": 524
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
2
|
||||
],
|
||||
@@ -318,12 +214,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_000D_01BFC038.5A5C8E60"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_000D_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -331,7 +229,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -345,12 +243,13 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -364,15 +263,13 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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": {
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f8d"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -384,8 +281,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f8d"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1717,7 +1618,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1727,13 +1628,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f94"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+29
-116
@@ -26,9 +26,20 @@ reached the goal, and was comfortably dozing after her fatigue.
|
||||
|
||||
Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- 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"
|
||||
},
|
||||
@@ -50,131 +61,33 @@ Slow but steady wins the race.
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392362D8.B650789F@example.com"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "1 (Highest)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 305,
|
||||
"end": 319
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 332,
|
||||
"end": 363
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 389,
|
||||
"end": 396
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+46
-113
@@ -110,18 +110,23 @@ Slow but steady wins the race.
|
||||
--------------0BBC657DDC74A0B8454627FD--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
"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",
|
||||
@@ -131,18 +136,12 @@ Slow but steady wins the race.
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -157,79 +156,6 @@ Slow but steady wins the race.
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0,
|
||||
1,
|
||||
@@ -248,10 +174,7 @@ Slow but steady wins the race.
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -260,22 +183,30 @@ Slow but steady wins the race.
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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": {
|
||||
"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",
|
||||
@@ -284,11 +215,9 @@ Slow but steady wins the race.
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1620,7 +1549,19 @@ Slow but steady wins the race.
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1629,19 +1570,9 @@ Slow but steady wins the race.
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -2946,10 +2877,7 @@ Slow but steady wins the race.
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -2960,16 +2888,21 @@ Slow but steady wins the race.
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "hareandtoroise.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+52
-99
@@ -95,13 +95,25 @@ mWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBp
|
||||
Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---1463757054-952513540-958744548=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
"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": {
|
||||
@@ -122,77 +134,13 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 91
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 94,
|
||||
"end": 124
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 132,
|
||||
"end": 157
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 168,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 245,
|
||||
"end": 251
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 264,
|
||||
"end": 332
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -206,7 +154,7 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -217,12 +165,28 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": "This is a test message from PINE MUA.\r\n\r\n\r"
|
||||
"is_encoding_problem": false,
|
||||
"body": "This is a test message from PINE MUA.\r\n\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"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",
|
||||
@@ -232,24 +196,11 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1709,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",
|
||||
@@ -1719,24 +1679,17 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+55
-121
@@ -132,9 +132,14 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------C78F594988075E36AE03C243--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -144,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,
|
||||
@@ -157,101 +174,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235EAD.E48E2160@example.com"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
2,
|
||||
3,
|
||||
@@ -269,12 +195,14 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------D74AE2393FB01D1B284AE257"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------D74AE2393FB01D1B284AE257"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -282,10 +210,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -294,17 +219,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"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": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -313,17 +239,22 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"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\r"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
@@ -342,6 +273,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1646,18 +1578,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1666,8 +1587,21 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+27
-114
@@ -32,21 +32,23 @@ 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 ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "392363E1.2AC47AB3@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
@@ -65,122 +67,33 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "5 (Lowest)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 305,
|
||||
"end": 318
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 331,
|
||||
"end": 359
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 385,
|
||||
"end": 404
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+29
-106
@@ -25,9 +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 ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -41,129 +46,47 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en 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": "UTF-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr+APY-sche"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236497.12FA2A89@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 253
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 261,
|
||||
"end": 293
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 306,
|
||||
"end": 334
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 360,
|
||||
"end": 367
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+81
-139
@@ -211,27 +211,14 @@ YII=
|
||||
--------------A1E83A41894D3755390B838A--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------A1E83A41894D3755390B838A"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -245,92 +232,31 @@ YII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
"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",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------A1E83A41894D3755390B838A"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235FC5.276CCE00@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 266
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 274,
|
||||
"end": 346
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 359,
|
||||
"end": 428
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
3,
|
||||
6,
|
||||
@@ -350,12 +276,14 @@ YII=
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------F03F94BA73D3B9E8C1B94D92"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------F03F94BA73D3B9E8C1B94D92"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -363,7 +291,7 @@ YII=
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -377,17 +305,20 @@ YII=
|
||||
"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": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------C02FA3D0A04E95F295FB25EB"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------C02FA3D0A04E95F295FB25EB"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -395,7 +326,7 @@ YII=
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -409,33 +340,37 @@ YII=
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"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\r"
|
||||
"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"
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailEG.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1767,19 +1702,12 @@ YII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmail39.png"
|
||||
}
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
@@ -1787,8 +1715,18 @@ YII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmail39.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -3248,7 +3186,16 @@ YII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -3260,16 +3207,9 @@ YII=
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -4729,10 +4669,14 @@ YII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
@@ -4746,11 +4690,9 @@ YII=
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+26
-81
@@ -25,12 +25,20 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"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,
|
||||
@@ -44,30 +52,9 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "QUOTED-PRINTABLE"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
@@ -75,73 +62,31 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 91
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 94,
|
||||
"end": 159
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 167,
|
||||
"end": 214
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 225,
|
||||
"end": 289
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 302,
|
||||
"end": 308
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 321,
|
||||
"end": 354
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 380,
|
||||
"end": 399
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+32
-103
@@ -50,24 +50,8 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------E7889DDF0F75D34163841C59--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"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"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -77,6 +61,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392366A7.21929EA7@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -93,83 +86,16 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392366A7.21929EA7@example.com"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0,
|
||||
1
|
||||
@@ -184,7 +110,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
@@ -198,23 +124,16 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": " \r"
|
||||
"is_encoding_problem": false,
|
||||
"body": " "
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -223,8 +142,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+28
-105
@@ -16,33 +16,26 @@ A HARE one day ridiculed the short feet and slow pace of the Tortoise, who repli
|
||||
|
||||
Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "3923625B.59F0C3AC@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"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"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923625B.59F0C3AC@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -56,105 +49,35 @@ Slow but steady wins the race.
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 338
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 364,
|
||||
"end": 371
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"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, 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"
|
||||
}
|
||||
}
|
||||
|
||||
+67
-128
@@ -170,14 +170,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------B7133A01A6B323BF00DBC9A7--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -188,21 +184,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236103.FFE674FC@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -215,81 +205,17 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 277
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 285,
|
||||
"end": 331
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 344,
|
||||
"end": 413
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
1,
|
||||
4,
|
||||
@@ -309,12 +235,14 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------8E6A06810565BCAB5E1F7D97"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------8E6A06810565BCAB5E1F7D97"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -322,10 +250,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -334,35 +259,42 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"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\r"
|
||||
"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": {
|
||||
"content_disposition": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailV0.png"
|
||||
}
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part1.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailV0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1694,28 +1626,31 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailNM.png"
|
||||
}
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part2.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailNM.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -3175,10 +3110,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3191,12 +3123,17 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -4501,10 +4438,11 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
@@ -4523,6 +4461,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+35
-112
@@ -27,39 +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 ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236653.CAA8A090@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -73,99 +42,53 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236653.CAA8A090@example.com"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 277
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 285,
|
||||
"end": 332
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 345,
|
||||
"end": 378
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 404,
|
||||
"end": 423
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+43
-92
@@ -56,39 +56,14 @@ JXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5IFl2ZXMgUGlndWV0NnM7
|
||||
vAAAAABJRU5ErkJggg==
|
||||
---1463757054-170444605-958746196=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-170444605-958746196=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "PNG graphic"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -101,59 +76,32 @@ vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "PNG graphic"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 91
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 94,
|
||||
"end": 150
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 158,
|
||||
"end": 172
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 247
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 260,
|
||||
"end": 266
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 279,
|
||||
"end": 347
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -166,7 +114,7 @@ vAAAAABJRU5ErkJggg==
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -177,20 +125,30 @@ vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": "\r"
|
||||
"is_encoding_problem": false,
|
||||
"body": "\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "red ball"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
"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": {
|
||||
@@ -200,16 +158,9 @@ vAAAAABJRU5ErkJggg==
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+29
-100
@@ -57,9 +57,23 @@ Birds of a feather flock together.
|
||||
--------------77060D866A66DC8D0921E051--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "3923686C.99FB5E36@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"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -73,13 +87,10 @@ Birds of a feather flock together.
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
@@ -90,93 +101,8 @@ Birds of a feather flock together.
|
||||
"boundary": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923686C.99FB5E36@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -189,10 +115,7 @@ Birds of a feather flock together.
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -201,17 +124,22 @@ Birds of a feather flock together.
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
@@ -231,7 +159,8 @@ Birds of a feather flock together.
|
||||
}
|
||||
}
|
||||
},
|
||||
"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\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"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+25
-96
@@ -60,21 +60,17 @@ als wir."
|
||||
|
||||
--------------9D454F23DA86BCD63FA3805F--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "392359CF.DFF4527@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"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,
|
||||
@@ -91,12 +87,6 @@ als wir."
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -105,91 +95,31 @@ als wir."
|
||||
"boundary": "------------9D454F23DA86BCD63FA3805F"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392359CF.DFF4527@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 44
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 49,
|
||||
"end": 83
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 88,
|
||||
"end": 125
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 134,
|
||||
"end": 164
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 182,
|
||||
"end": 187
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 200,
|
||||
"end": 206
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 209,
|
||||
"end": 265
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 273,
|
||||
"end": 348
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 361,
|
||||
"end": 436
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -198,17 +128,15 @@ als wir."
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -222,7 +150,8 @@ als wir."
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"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\r"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+51
-118
@@ -136,23 +136,19 @@ xW62p+lT+Yi747sD/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBi
|
||||
eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------A1FCDEE154E03D875E5D6779--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "39235E1C.1DC7EA90@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"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -163,12 +159,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -181,81 +171,17 @@ 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"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0,
|
||||
1,
|
||||
@@ -276,10 +202,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -288,25 +211,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -315,8 +231,21 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1776,18 +1705,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1796,8 +1714,21 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -3102,18 +3033,19 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3124,6 +3056,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+41
-90
@@ -41,9 +41,29 @@ LCBlaW5pZ2UgVGllcmUsIHdlbGNoZSBhbHNvIHdvaGwgbm9jaCB1bmds/GNr
|
||||
bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
---1463757054-891160829-958746372=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- 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",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-891160829-958746372=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
|
||||
},
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
@@ -56,8 +76,8 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
}
|
||||
]
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -71,80 +91,8 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-891160829-958746372=:8452"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 91
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 94,
|
||||
"end": 185
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 193,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 251,
|
||||
"end": 315
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 328,
|
||||
"end": 334
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 347,
|
||||
"end": 415
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -157,7 +105,7 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -168,12 +116,25 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": "\r"
|
||||
"is_encoding_problem": false,
|
||||
"body": "\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -189,19 +150,9 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+24
-101
@@ -31,17 +31,10 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -56,15 +49,6 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
@@ -77,99 +61,38 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@example.com"
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 277
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 285,
|
||||
"end": 360
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 373,
|
||||
"end": 406
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 432,
|
||||
"end": 451
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+24
-95
@@ -59,9 +59,14 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
--------------CA611088711119FBDB3473B4--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -71,24 +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"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392367BC.3D075C95@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -104,81 +100,11 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -191,7 +117,7 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -205,34 +131,37 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"name": "HasenundFrösche.txt"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
+47
-117
@@ -154,21 +154,11 @@ end
|
||||
--------------177483472E7788F4AD46AB1A--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -178,8 +168,11 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923670C.67D83A99@example.com"
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -194,86 +187,19 @@ end
|
||||
"tz_minute": 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"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923670C.67D83A99@example.com"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0,
|
||||
1,
|
||||
@@ -294,10 +220,7 @@ end
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -306,25 +229,21 @@ end
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -333,8 +252,18 @@ end
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
98,
|
||||
101,
|
||||
@@ -2402,14 +2331,16 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -2419,18 +2350,17 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
98,
|
||||
101,
|
||||
@@ -4280,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",
|
||||
@@ -4309,6 +4239,7 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
98,
|
||||
101,
|
||||
@@ -6196,8 +6127,7 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+26
-105
File diff suppressed because one or more lines are too long
+38
-117
@@ -108,9 +108,11 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
--=====================_715546120==_.REL--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -124,9 +126,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"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",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -139,106 +153,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "2 (High)"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 192
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 197,
|
||||
"end": 231
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 288
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 293,
|
||||
"end": 330
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 338,
|
||||
"end": 383
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 396,
|
||||
"end": 402
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 415,
|
||||
"end": 508
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -252,7 +168,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"parts": [
|
||||
{
|
||||
"Html": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
@@ -266,15 +182,19 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"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",
|
||||
@@ -284,18 +204,17 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa658b6.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1627,7 +1546,19 @@ 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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1637,21 +1568,11 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa658c0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+53
-126
@@ -160,14 +160,13 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--=====================_715515186==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
@@ -187,11 +186,11 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -207,89 +206,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-Priority": {
|
||||
"Text": "2 (High)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
},
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 64
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 113
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 122,
|
||||
"end": 170
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 181,
|
||||
"end": 192
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 197,
|
||||
"end": 231
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 234,
|
||||
"end": 288
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 293,
|
||||
"end": 330
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 338,
|
||||
"end": 383
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 396,
|
||||
"end": 402
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 415,
|
||||
"end": 482
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
@@ -305,13 +221,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/plain",
|
||||
"boundary": "=====================_715515186==_.REL"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715515186==_.REL",
|
||||
"type": "text/plain"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -319,7 +237,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -328,28 +249,24 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"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\n2aa5e03a.png2aa5e044.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e03a.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -361,8 +278,12 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -1694,9 +1615,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e044.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -1707,18 +1634,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa5e044.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -3178,10 +3101,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
@@ -3195,11 +3122,9 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
@@ -4531,10 +4456,11 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
@@ -4553,6 +4479,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
137,
|
||||
80,
|
||||
|
||||
+24
-103
@@ -26,15 +26,26 @@ wenig aufschieben, denn auch uns f
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- 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,118 +58,28 @@ welche also wohl noch ungl
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 82
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 90,
|
||||
"end": 141
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 146,
|
||||
"end": 180
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 191,
|
||||
"end": 241
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 252,
|
||||
"end": 265
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 283,
|
||||
"end": 292
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 301,
|
||||
"end": 354
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 365,
|
||||
"end": 374
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 384,
|
||||
"end": 432
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+27
-134
@@ -31,14 +31,13 @@ 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 ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
@@ -49,21 +48,6 @@ als wir."=20
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -77,129 +61,38 @@ als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
}
|
||||
},
|
||||
"headers_other": {
|
||||
"Importance": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "3 (Normal)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
},
|
||||
"X-MSMail-Priority": {
|
||||
"Text": "Normal"
|
||||
},
|
||||
"X-MimeOLE": {
|
||||
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 40
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 97
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 105,
|
||||
"end": 177
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 182,
|
||||
"end": 216
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 227,
|
||||
"end": 277
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 290,
|
||||
"end": 296
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 309,
|
||||
"end": 341
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 367,
|
||||
"end": 386
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
"start": 397,
|
||||
"end": 410
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
"start": 428,
|
||||
"end": 437
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 446,
|
||||
"end": 499
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "Importance"
|
||||
},
|
||||
"start": 510,
|
||||
"end": 519
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
"start": 529,
|
||||
"end": 577
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
}
|
||||
}
|
||||
|
||||
+7
-48
@@ -9,8 +9,7 @@ Content-Type: text/plain
|
||||
Content-Type: text/html
|
||||
--:foo--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -22,54 +21,14 @@ Content-Type: text/html
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 47
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"body": "Content-Type: text/plain"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": "Content-Type: text/html"
|
||||
}
|
||||
}
|
||||
],
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [],
|
||||
"parts": [],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
"List": []
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 48,
|
||||
"offset_end": 159
|
||||
"offset_end": 160
|
||||
}
|
||||
+20
-17
@@ -9,8 +9,7 @@ Content-Type: text/plain
|
||||
--a
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -22,30 +21,24 @@ Content-Type: text/plain
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,6 +46,16 @@ Content-Type: text/plain
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Content-Type: text/plain\n"
|
||||
}
|
||||
}
|
||||
|
||||
+16
-22
@@ -2,34 +2,28 @@ Content-Type: multipart/mixed; boundary="ab"
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
|
||||
+15
-19
@@ -8,8 +8,7 @@ Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -21,27 +20,22 @@ body
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
],
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,14 +43,16 @@ body
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
|
||||
+13
-11
@@ -8,8 +8,7 @@ Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -21,21 +20,24 @@ body
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
],
|
||||
"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": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
|
||||
}
|
||||
}
|
||||
|
||||
+14
-19
@@ -12,8 +12,7 @@ Content-Type: text/html
|
||||
|
||||
body2
|
||||
--a----
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -25,30 +24,24 @@ body2
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 46
|
||||
}
|
||||
],
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a----"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a----"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -56,14 +49,16 @@ body2
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "body"
|
||||
}
|
||||
}
|
||||
|
||||
+15
-19
@@ -8,8 +8,7 @@ Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -21,27 +20,22 @@ body
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
],
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,14 +43,16 @@ body
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user