mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 00:01:49 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e49dff9e5 | ||
|
|
6b23f08ee0 | ||
|
|
7f86ea13f9 | ||
|
|
371d0ff12e | ||
|
|
5d4c0538ca | ||
|
|
ff1e2ee70a | ||
|
|
aeb02dcc4d | ||
|
|
db61a0364c | ||
|
|
6dc27dd69b | ||
|
|
b76c9f510c | ||
|
|
c391056b92 | ||
|
|
0064d3443a | ||
|
|
e604f8fcec | ||
|
|
907984861e | ||
|
|
28fe4d3aff | ||
|
|
0891cb0292 | ||
|
|
2805e029ff | ||
|
|
35b4846c7e | ||
|
|
75d9a9e96a | ||
|
|
1e8dfd31cf | ||
|
|
0be5ed4a41 | ||
|
|
62057172d0 | ||
|
|
a963f0caa7 | ||
|
|
e2b33a90f3 | ||
|
|
d157525b1c | ||
|
|
9f1edeed33 | ||
|
|
509fb718f3 | ||
|
|
eab28c0b2d | ||
|
|
2cae61c6d2 |
@@ -1,3 +1,27 @@
|
||||
mail-parser 0.5.0
|
||||
================================
|
||||
- `Message` headers are now stored as a `MessagePart` with index 0.
|
||||
- Improved `MessagePart` API.
|
||||
- Nested base64/quoted-printable encoded message/rfc822 parts are automatically parsed when calling `get_message`.
|
||||
- Better handling of malformed MIME messages.
|
||||
- Added raw offsets to MIME parts.
|
||||
|
||||
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.
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
Copyright (C) 2020-2022, Stalwart Labs, Minter Ltd.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Generated
+37
-43
@@ -4,9 +4,9 @@ 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"
|
||||
@@ -36,17 +36,11 @@ dependencies = [
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dtoa"
|
||||
version = "0.4.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0"
|
||||
|
||||
[[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",
|
||||
]
|
||||
@@ -59,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",
|
||||
@@ -69,15 +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.120"
|
||||
version = "0.2.126"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ad5c14e80759d0939d013e6ca49930e59fc53dd8e5009132f76240c179380c09"
|
||||
checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836"
|
||||
|
||||
[[package]]
|
||||
name = "linked-hash-map"
|
||||
@@ -87,7 +81,7 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
|
||||
|
||||
[[package]]
|
||||
name = "mail-parser"
|
||||
version = "0.4.5"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"chrono",
|
||||
@@ -99,9 +93,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "num-integer"
|
||||
version = "0.1.44"
|
||||
version = "0.1.45"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
|
||||
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"num-traits",
|
||||
@@ -109,51 +103,51 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "num-traits"
|
||||
version = "0.2.14"
|
||||
version = "0.2.15"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
|
||||
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.30"
|
||||
version = "1.0.39"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70"
|
||||
checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f"
|
||||
dependencies = [
|
||||
"unicode-xid",
|
||||
"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.136"
|
||||
version = "1.0.137"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789"
|
||||
checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.136"
|
||||
version = "1.0.137"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9"
|
||||
checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@@ -162,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",
|
||||
@@ -173,25 +167,25 @@ 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]]
|
||||
@@ -206,10 +200,10 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unicode-xid"
|
||||
version = "0.2.2"
|
||||
name = "unicode-ident"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
|
||||
checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee"
|
||||
|
||||
[[package]]
|
||||
name = "wasi"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "mail-parser"
|
||||
description = "Fast and robust e-mail parsing library for Rust"
|
||||
version = "0.4.5"
|
||||
version = "0.5.0"
|
||||
edition = "2018"
|
||||
authors = [ "Stalwart Labs <hello@stalw.art>"]
|
||||
license = "Apache-2.0 OR MIT"
|
||||
|
||||
@@ -137,7 +137,8 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
let nested_message = message
|
||||
.get_attachment(0)
|
||||
.unwrap()
|
||||
.unwrap_message();
|
||||
.get_message();
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
@@ -154,7 +155,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
|
||||
);
|
||||
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap();
|
||||
|
||||
assert_eq!(nested_attachment.len(), 42);
|
||||
|
||||
@@ -277,7 +278,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
|
||||
@@ -112,7 +112,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
);
|
||||
|
||||
// Supports nested messages as well as multipart/digest
|
||||
let nested_message = message.get_attachment(0).unwrap().unwrap_message();
|
||||
let nested_message = message.get_attachment(0).unwrap().get_message().unwrap();
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
@@ -129,7 +129,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
|
||||
);
|
||||
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap();
|
||||
|
||||
assert_eq!(nested_attachment.len(), 42);
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -60,30 +60,14 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
|
||||
fn write_attachments(message: &Message) {
|
||||
for attachment in message.get_attachments() {
|
||||
match attachment {
|
||||
MessagePart::Text(text) | MessagePart::Html(text) => write_part(text),
|
||||
MessagePart::Binary(blob) | MessagePart::InlineBinary(blob) => write_part(blob),
|
||||
MessagePart::Message(attached_message) => {
|
||||
// Write attachments of nested messages
|
||||
match &attached_message.body {
|
||||
MessageAttachment::Parsed(message) => write_attachments(message.as_ref()),
|
||||
MessageAttachment::Raw(_) => {
|
||||
write_attachments(&attached_message.parse_raw().unwrap())
|
||||
}
|
||||
}
|
||||
|
||||
// Write raw message
|
||||
write_part(attached_message);
|
||||
}
|
||||
_ => (),
|
||||
if !attachment.is_message() {
|
||||
std::fs::write(
|
||||
attachment.get_attachment_name().unwrap_or("Untitled"),
|
||||
attachment.get_contents(),
|
||||
)
|
||||
.unwrap();
|
||||
} else {
|
||||
write_attachments(&attachment.get_message().unwrap());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn write_part<'x>(part: &'x impl BodyPart<'x>) {
|
||||
std::fs::write(
|
||||
part.get_attachment_name().unwrap_or("Untitled"),
|
||||
part.get_contents(),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
Generated
+1
-11
@@ -42,11 +42,10 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mail-parser"
|
||||
version = "0.4.2"
|
||||
version = "0.5.0"
|
||||
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"
|
||||
|
||||
@@ -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
|
||||
@@ -16,7 +16,7 @@ use super::{
|
||||
DecoderFnc,
|
||||
};
|
||||
|
||||
pub fn get_charset_decoder<'x>(charset: &[u8]) -> Option<DecoderFnc<'x>> {
|
||||
pub fn get_charset_decoder(charset: &[u8]) -> Option<DecoderFnc> {
|
||||
if (2..=45).contains(&charset.len()) {
|
||||
let mut l_charset = [0u8; 45];
|
||||
let mut hash: u32 = charset.len() as u32;
|
||||
@@ -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
|
||||
@@ -14,7 +14,7 @@ pub mod multi_byte;
|
||||
pub mod single_byte;
|
||||
pub mod utf;
|
||||
|
||||
pub type DecoderFnc<'x> = fn(&'x [u8]) -> String;
|
||||
pub type DecoderFnc = fn(&[u8]) -> String;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
@@ -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,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
|
||||
|
||||
+343
-350
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
|
||||
|
||||
+34
-41
@@ -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,64 +24,57 @@ 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 vald
|
||||
/// Returns true if the date is valid
|
||||
pub fn is_valid(&self) -> bool {
|
||||
(0..23).contains(&self.tz_hour)
|
||||
&& (0..59).contains(&self.tz_minute)
|
||||
&& (1970..2500).contains(&self.year)
|
||||
&& (1..12).contains(&self.month)
|
||||
&& (1..31).contains(&self.day)
|
||||
&& (0..23).contains(&self.hour)
|
||||
&& (0..59).contains(&self.minute)
|
||||
&& (0..59).contains(&self.second)
|
||||
(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) -> Option<i64> {
|
||||
pub fn to_timestamp(&self) -> i64 {
|
||||
// Ported from https://github.com/protocolbuffers/upb/blob/22182e6e/upb/json_decode.c#L982-L992
|
||||
if self.is_valid() {
|
||||
let year_base = 4800; /* Before min year, multiple of 400. */
|
||||
let m_adj = self.month.overflowing_sub(3).0; /* March-based month. */
|
||||
let carry = if m_adj > self.month { 1 } else { 0 };
|
||||
let adjust = if carry > 0 { 12 } else { 0 };
|
||||
let y_adj = self.year as i64 + year_base - carry;
|
||||
let month_days = ((m_adj.overflowing_add(adjust).0) * 62719 + 769) / 2048;
|
||||
let leap_days = y_adj / 4 - y_adj / 100 + y_adj / 400;
|
||||
((y_adj * 365 + leap_days + month_days as i64 + (self.day as i64 - 1) - 2472632)
|
||||
* 86400
|
||||
+ self.hour as i64 * 3600
|
||||
+ self.minute as i64 * 60
|
||||
+ self.second as i64
|
||||
+ ((self.tz_hour as i64 * 3600 + self.tz_minute as i64 * 60)
|
||||
* if self.tz_before_gmt { 1 } else { -1 }))
|
||||
.into()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
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> {
|
||||
match self.to_timestamp()? - other.to_timestamp()? {
|
||||
0 => std::cmp::Ordering::Equal,
|
||||
x if x > 0 => std::cmp::Ordering::Greater,
|
||||
_ => std::cmp::Ordering::Less,
|
||||
}
|
||||
.into()
|
||||
self.cmp(other).into()
|
||||
}
|
||||
}
|
||||
|
||||
impl Ord for DateTime {
|
||||
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
||||
match self.to_timestamp().unwrap_or_default() - other.to_timestamp().unwrap_or_default() {
|
||||
match self.to_timestamp() - other.to_timestamp() {
|
||||
0 => std::cmp::Ordering::Equal,
|
||||
x if x > 0 => std::cmp::Ordering::Greater,
|
||||
_ => std::cmp::Ordering::Less,
|
||||
@@ -340,11 +333,11 @@ mod tests {
|
||||
{
|
||||
assert_eq!(
|
||||
chrono_datetime.timestamp(),
|
||||
datetime.to_timestamp().unwrap(),
|
||||
datetime.to_timestamp(),
|
||||
"{} -> {} ({}) -> {} ({})",
|
||||
input.0.escape_debug(),
|
||||
datetime.to_timestamp().unwrap(),
|
||||
Utc.timestamp_opt(datetime.to_timestamp().unwrap(), 0)
|
||||
datetime.to_timestamp(),
|
||||
Utc.timestamp_opt(datetime.to_timestamp(), 0)
|
||||
.unwrap()
|
||||
.to_rfc3339_opts(SecondsFormat::Secs, true),
|
||||
chrono_datetime.timestamp(),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
+11
-11
@@ -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
|
||||
@@ -49,13 +49,13 @@ pub fn parse_headers<'x>(
|
||||
|
||||
let from_offset = stream.pos;
|
||||
let value = parser(stream);
|
||||
headers_raw
|
||||
.entry(HeaderName::Rfc(name))
|
||||
.or_insert_with(Vec::new)
|
||||
.push(HeaderOffset {
|
||||
headers_raw.push((
|
||||
HeaderName::Rfc(name),
|
||||
HeaderOffset {
|
||||
start: from_offset,
|
||||
end: stream.pos,
|
||||
});
|
||||
},
|
||||
));
|
||||
|
||||
if !value.is_empty() {
|
||||
match headers_rfc.entry(name) {
|
||||
@@ -77,13 +77,13 @@ pub fn parse_headers<'x>(
|
||||
HeaderParserResult::Other(name) => {
|
||||
let from_offset = stream.pos;
|
||||
parse_and_ignore(stream);
|
||||
headers_raw
|
||||
.entry(HeaderName::Other(name))
|
||||
.or_insert_with(Vec::new)
|
||||
.push(HeaderOffset {
|
||||
headers_raw.push((
|
||||
HeaderName::Other(name),
|
||||
HeaderOffset {
|
||||
start: from_offset,
|
||||
end: stream.pos,
|
||||
});
|
||||
},
|
||||
));
|
||||
}
|
||||
HeaderParserResult::Lf => return true,
|
||||
HeaderParserResult::Eof => return false,
|
||||
|
||||
+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
|
||||
|
||||
+242
-239
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
|
||||
* file at the top-level directory of this distribution.
|
||||
* Copyright Stalwart Labs Ltd. See the COPYING
|
||||
* file at the top-level dir&ectory 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
|
||||
@@ -16,13 +16,13 @@ use crate::{
|
||||
base64::decode_base64, charsets::map::get_charset_decoder,
|
||||
quoted_printable::decode_quoted_printable, DecodeFnc, DecodeResult,
|
||||
},
|
||||
ContentType, HeaderName, HeaderValue, Message, MessageAttachment, MessagePart, MessagePartId,
|
||||
MessageStructure, MultiPart, Part, RawHeaders, RfcHeader, RfcHeaders,
|
||||
ContentType, HeaderValue, Message, MessageAttachment, MessagePart, MessagePartId, PartType,
|
||||
RawHeaders, RfcHeader, RfcHeaders,
|
||||
};
|
||||
|
||||
use super::{
|
||||
header::parse_headers,
|
||||
mime::{get_bytes_to_boundary, seek_crlf_end, seek_next_part, skip_crlf, skip_multipart_end},
|
||||
mime::{get_bytes_to_boundary, seek_crlf, seek_next_part, skip_crlf, skip_multipart_end},
|
||||
};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
@@ -102,7 +102,7 @@ fn get_mime_type(
|
||||
_ => (false, false, true, MimeType::TextOther),
|
||||
},
|
||||
"image" | "audio" | "video" => (false, true, false, MimeType::Inline),
|
||||
"message" if content_type.get_subtype() == Some("rfc822") => {
|
||||
"message" if [Some("rfc822"), Some("global")].contains(&content_type.get_subtype()) => {
|
||||
(false, false, false, MimeType::Message)
|
||||
}
|
||||
_ => (false, false, false, MimeType::Other),
|
||||
@@ -132,7 +132,7 @@ fn add_missing_type<'x>(
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
#[derive(Default, Debug)]
|
||||
struct MessageParserState {
|
||||
mime_type: MimeType,
|
||||
mime_boundary: Option<Vec<u8>>,
|
||||
@@ -142,8 +142,11 @@ struct MessageParserState {
|
||||
text_parts: usize,
|
||||
need_html_body: bool,
|
||||
need_text_body: bool,
|
||||
header_id: Option<MessagePartId>,
|
||||
structure: Vec<MessageStructure>,
|
||||
part_id: MessagePartId,
|
||||
sub_part_ids: Vec<MessagePartId>,
|
||||
offset_header: usize,
|
||||
offset_body: usize,
|
||||
offset_end: usize,
|
||||
}
|
||||
|
||||
impl MessageParserState {
|
||||
@@ -160,18 +163,6 @@ impl MessageParserState {
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_structure(&mut self) -> MessageStructure {
|
||||
if let Some(header_id) = self.header_id {
|
||||
MessageStructure::MultiPart((header_id, std::mem::take(&mut self.structure)))
|
||||
} else if self.structure.len() > 1 {
|
||||
MessageStructure::List(std::mem::take(&mut self.structure))
|
||||
} else if self.structure.len() == 1 {
|
||||
self.structure.pop().unwrap()
|
||||
} else {
|
||||
MessageStructure::List(vec![])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct MessageStream<'x> {
|
||||
@@ -194,7 +185,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_raw.is_empty()
|
||||
self.parts.is_empty()
|
||||
}
|
||||
|
||||
/// Parses a byte slice containing the RFC5322 raw message and returns a
|
||||
@@ -207,41 +198,24 @@ impl<'x> Message<'x> {
|
||||
let mut stream = MessageStream::new(raw_message);
|
||||
|
||||
let mut message = Message::new();
|
||||
let mut message_stack = Vec::new();
|
||||
|
||||
let mut state = MessageParserState::new();
|
||||
let mut state_stack = Vec::new();
|
||||
let mut state_stack = Vec::with_capacity(4);
|
||||
|
||||
let mut mime_part_header = RfcHeaders::new();
|
||||
let mut mime_part_header_raw = RawHeaders::new();
|
||||
let mut part_header = RfcHeaders::new();
|
||||
let mut part_header_raw = RawHeaders::new();
|
||||
|
||||
'outer: loop {
|
||||
// Parse headers
|
||||
let (is_message, header) = if let MimeType::Message = state.mime_type {
|
||||
message.offset_header = stream.pos;
|
||||
if !parse_headers(
|
||||
&mut message.headers_rfc,
|
||||
&mut message.headers_raw,
|
||||
&mut stream,
|
||||
) {
|
||||
break;
|
||||
}
|
||||
message.offset_body = seek_crlf_end(&stream, stream.pos);
|
||||
(true, &mut message.headers_rfc)
|
||||
} else {
|
||||
if !parse_headers(
|
||||
&mut mime_part_header,
|
||||
&mut mime_part_header_raw,
|
||||
&mut stream,
|
||||
) {
|
||||
break;
|
||||
}
|
||||
(false, &mut mime_part_header)
|
||||
};
|
||||
state.offset_header = stream.pos;
|
||||
if !parse_headers(&mut part_header, &mut part_header_raw, &mut stream) {
|
||||
break;
|
||||
}
|
||||
|
||||
state.parts += 1;
|
||||
state.sub_part_ids.push(message.parts.len());
|
||||
|
||||
let content_type = header
|
||||
let content_type = part_header
|
||||
.get(&RfcHeader::ContentType)
|
||||
.and_then(|c| c.as_content_type_ref());
|
||||
|
||||
@@ -252,9 +226,11 @@ impl<'x> Message<'x> {
|
||||
if let Some(mime_boundary) =
|
||||
content_type.map_or_else(|| None, |f| f.get_attribute("boundary"))
|
||||
{
|
||||
let mime_boundary = ("\n--".to_string() + mime_boundary).into_bytes();
|
||||
let mime_boundary = format!("\n--{}", mime_boundary).into_bytes();
|
||||
state.offset_body = seek_crlf(&stream, stream.pos);
|
||||
|
||||
if seek_next_part(&mut stream, mime_boundary.as_ref()) {
|
||||
let part_id = message.parts.len();
|
||||
let new_state = MessageParserState {
|
||||
in_alternative: state.in_alternative
|
||||
|| mime_type == MimeType::MultipartAlernative,
|
||||
@@ -264,21 +240,20 @@ impl<'x> Message<'x> {
|
||||
text_parts: message.text_body.len(),
|
||||
need_html_body: state.need_html_body,
|
||||
need_text_body: state.need_text_body,
|
||||
header_id: if !is_message {
|
||||
Some(message.parts.len())
|
||||
} else {
|
||||
None
|
||||
},
|
||||
part_id,
|
||||
..Default::default()
|
||||
};
|
||||
if !is_message {
|
||||
add_missing_type(&mut mime_part_header, "text".into(), "plain".into());
|
||||
message.parts.push(MessagePart::Multipart(MultiPart::new(
|
||||
std::mem::take(&mut mime_part_header),
|
||||
std::mem::take(&mut mime_part_header_raw),
|
||||
)));
|
||||
}
|
||||
state_stack.push(state);
|
||||
add_missing_type(&mut part_header, "text".into(), "plain".into());
|
||||
message.parts.push(MessagePart {
|
||||
headers_rfc: std::mem::take(&mut part_header),
|
||||
headers_raw: std::mem::take(&mut part_header_raw),
|
||||
offset_header: state.offset_header,
|
||||
offset_body: state.offset_body,
|
||||
offset_end: 0,
|
||||
is_encoding_problem: false,
|
||||
body: PartType::default(),
|
||||
});
|
||||
state_stack.push((state, None));
|
||||
state = new_state;
|
||||
skip_crlf(&mut stream);
|
||||
continue;
|
||||
@@ -290,8 +265,9 @@ impl<'x> Message<'x> {
|
||||
}
|
||||
|
||||
skip_crlf(&mut stream);
|
||||
state.offset_body = stream.pos;
|
||||
|
||||
let (is_binary, decode_fnc): (bool, DecodeFnc) = match header
|
||||
let (is_binary, decode_fnc): (bool, DecodeFnc) = match part_header
|
||||
.get(&RfcHeader::ContentTransferEncoding)
|
||||
{
|
||||
Some(HeaderValue::Text(encoding)) if encoding.eq_ignore_ascii_case("base64") => {
|
||||
@@ -305,25 +281,27 @@ 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,
|
||||
part_id: message.parts.len(),
|
||||
..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);
|
||||
add_missing_type(&mut part_header, "message".into(), "rfc822".into());
|
||||
message.attachments.push(message.parts.len());
|
||||
message.parts.push(MessagePart {
|
||||
headers_rfc: std::mem::take(&mut part_header),
|
||||
headers_raw: std::mem::take(&mut part_header_raw),
|
||||
is_encoding_problem: false,
|
||||
offset_header: state.offset_header,
|
||||
offset_body: state.offset_body,
|
||||
offset_end: 0,
|
||||
body: PartType::default(), // Temp value, will be replaced later.
|
||||
});
|
||||
state_stack.push((state, message.into()));
|
||||
message = Message::new();
|
||||
state = new_state;
|
||||
continue;
|
||||
@@ -342,56 +320,77 @@ impl<'x> Message<'x> {
|
||||
// Attempt to recover contents of an invalid message
|
||||
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;
|
||||
}
|
||||
let did_recover = if !(stream.pos >= stream.data.len()
|
||||
|| (is_binary && state.mime_boundary.is_none()))
|
||||
{
|
||||
// Get raw MIME part
|
||||
let (bytes_read, r_bytes) = if !is_binary {
|
||||
get_bytes_to_boundary(
|
||||
&stream,
|
||||
stream.pos,
|
||||
state
|
||||
.mime_boundary
|
||||
.as_ref()
|
||||
.map_or_else(|| &[][..], |b| &b[..]),
|
||||
false,
|
||||
)
|
||||
} else {
|
||||
(0, DecodeResult::Empty)
|
||||
};
|
||||
|
||||
// Get raw MIME part
|
||||
let (bytes_read, r_bytes) = if !is_binary {
|
||||
get_bytes_to_boundary(
|
||||
&stream,
|
||||
stream.pos,
|
||||
state
|
||||
.mime_boundary
|
||||
.as_ref()
|
||||
.map_or_else(|| &[][..], |b| &b[..]),
|
||||
false,
|
||||
)
|
||||
} else {
|
||||
(0, DecodeResult::Empty)
|
||||
};
|
||||
|
||||
if bytes_read == 0 {
|
||||
// If there is MIME boundary, ignore it and get raw message
|
||||
if state.mime_boundary.is_some() {
|
||||
let (bytes_read, r_bytes) =
|
||||
get_bytes_to_boundary(&stream, stream.pos, &[][..], false);
|
||||
if bytes_read > 0 {
|
||||
bytes = r_bytes;
|
||||
stream.pos += bytes_read;
|
||||
if bytes_read == 0 {
|
||||
// If there is a MIME boundary, ignore it and get raw message
|
||||
if state.mime_boundary.is_some() {
|
||||
let (bytes_read, r_bytes) =
|
||||
get_bytes_to_boundary(&stream, stream.pos, &[][..], false);
|
||||
if bytes_read > 0 {
|
||||
bytes = r_bytes;
|
||||
stream.pos += bytes_read;
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
} else {
|
||||
state.structure.pop();
|
||||
break;
|
||||
false
|
||||
}
|
||||
} else {
|
||||
state.structure.pop();
|
||||
break;
|
||||
bytes = r_bytes;
|
||||
stream.pos += bytes_read;
|
||||
true
|
||||
}
|
||||
} else {
|
||||
bytes = r_bytes;
|
||||
stream.pos += bytes_read;
|
||||
false
|
||||
};
|
||||
|
||||
if did_recover {
|
||||
mime_type = MimeType::TextOther;
|
||||
is_inline = false;
|
||||
is_text = true;
|
||||
} else {
|
||||
// Could not recover error, add part and abort
|
||||
message.parts.push(MessagePart {
|
||||
headers_rfc: std::mem::take(&mut part_header),
|
||||
headers_raw: std::mem::take(&mut part_header_raw),
|
||||
is_encoding_problem: true,
|
||||
body: PartType::Binary((&[][..]).into()),
|
||||
offset_header: state.offset_header,
|
||||
offset_body: state.offset_body,
|
||||
offset_end: stream.pos,
|
||||
});
|
||||
break;
|
||||
}
|
||||
mime_type = MimeType::TextOther;
|
||||
is_inline = false;
|
||||
is_text = true;
|
||||
} else {
|
||||
stream.pos += bytes_read;
|
||||
}
|
||||
state.offset_end = state
|
||||
.mime_boundary
|
||||
.as_ref()
|
||||
.map(|b| stream.pos.saturating_sub(b.len() - 1))
|
||||
.unwrap_or(stream.pos);
|
||||
|
||||
if mime_type != MimeType::Message {
|
||||
let body_part = if mime_type != MimeType::Message {
|
||||
let is_inline = is_inline
|
||||
&& header
|
||||
&& part_header
|
||||
.get(&RfcHeader::ContentDisposition)
|
||||
.map_or_else(|| true, |d| !d.get_content_type().is_attachment())
|
||||
&& (state.parts == 1
|
||||
@@ -425,39 +424,10 @@ impl<'x> Message<'x> {
|
||||
};
|
||||
|
||||
if is_text {
|
||||
let text = result_to_string(bytes, stream.data, content_type);
|
||||
let is_html = mime_type == MimeType::TextHtml;
|
||||
let mut text_part = Part {
|
||||
body: result_to_string(bytes, stream.data, content_type),
|
||||
headers_rfc: std::mem::take(&mut mime_part_header),
|
||||
headers_raw: std::mem::take(&mut mime_part_header_raw),
|
||||
is_encoding_problem,
|
||||
};
|
||||
|
||||
// If there is a single part in the message, move MIME headers
|
||||
// to the part
|
||||
if is_message {
|
||||
for header_name in [
|
||||
RfcHeader::ContentType,
|
||||
RfcHeader::ContentDisposition,
|
||||
RfcHeader::ContentId,
|
||||
RfcHeader::ContentLanguage,
|
||||
RfcHeader::ContentLocation,
|
||||
RfcHeader::ContentTransferEncoding,
|
||||
RfcHeader::ContentDescription,
|
||||
] {
|
||||
if let Some(value) = message.headers_rfc.remove(&header_name) {
|
||||
text_part.headers_rfc.insert(header_name, value);
|
||||
}
|
||||
if let Some(value) =
|
||||
message.headers_raw.get(&HeaderName::Rfc(header_name))
|
||||
{
|
||||
text_part
|
||||
.headers_raw
|
||||
.insert(HeaderName::Rfc(header_name), value.to_vec());
|
||||
}
|
||||
}
|
||||
}
|
||||
add_missing_type(&mut text_part.headers_rfc, "text".into(), "plain".into());
|
||||
add_missing_type(&mut part_header, "text".into(), "plain".into());
|
||||
|
||||
if add_to_html && !is_html {
|
||||
message.html_body.push(message.parts.len());
|
||||
@@ -473,11 +443,11 @@ impl<'x> Message<'x> {
|
||||
message.attachments.push(message.parts.len());
|
||||
}
|
||||
|
||||
message.parts.push(if is_html {
|
||||
MessagePart::Html(text_part)
|
||||
if is_html {
|
||||
PartType::Html(text)
|
||||
} else {
|
||||
MessagePart::Text(text_part)
|
||||
});
|
||||
PartType::Text(text)
|
||||
}
|
||||
} else {
|
||||
if add_to_html {
|
||||
message.html_body.push(message.parts.len());
|
||||
@@ -488,78 +458,52 @@ impl<'x> Message<'x> {
|
||||
|
||||
message.attachments.push(message.parts.len());
|
||||
|
||||
let mut binary_part = Part::new(
|
||||
std::mem::take(&mut mime_part_header),
|
||||
std::mem::take(&mut mime_part_header_raw),
|
||||
result_to_bytes(bytes, stream.data),
|
||||
is_encoding_problem,
|
||||
);
|
||||
|
||||
// If there is a single part in the message, move MIME headers
|
||||
// to the part
|
||||
if is_message {
|
||||
for header_name in [
|
||||
RfcHeader::ContentType,
|
||||
RfcHeader::ContentDisposition,
|
||||
RfcHeader::ContentId,
|
||||
RfcHeader::ContentLanguage,
|
||||
RfcHeader::ContentLocation,
|
||||
RfcHeader::ContentTransferEncoding,
|
||||
RfcHeader::ContentDescription,
|
||||
] {
|
||||
if let Some(value) = message.headers_rfc.remove(&header_name) {
|
||||
binary_part.headers_rfc.insert(header_name, value);
|
||||
}
|
||||
if let Some(value) =
|
||||
message.headers_raw.get(&HeaderName::Rfc(header_name))
|
||||
{
|
||||
binary_part
|
||||
.headers_raw
|
||||
.insert(HeaderName::Rfc(header_name), value.to_vec());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
message.parts.push(if !is_inline {
|
||||
MessagePart::Binary(binary_part)
|
||||
let bytes = result_to_bytes(bytes, stream.data);
|
||||
if !is_inline {
|
||||
PartType::Binary(bytes)
|
||||
} else {
|
||||
MessagePart::InlineBinary(binary_part)
|
||||
});
|
||||
};
|
||||
PartType::InlineBinary(bytes)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
add_missing_type(&mut mime_part_header, "message".into(), "rfc822".into());
|
||||
add_missing_type(&mut part_header, "message".into(), "rfc822".into());
|
||||
message.attachments.push(message.parts.len());
|
||||
message.parts.push(MessagePart::Message(Part::new(
|
||||
std::mem::take(&mut mime_part_header),
|
||||
std::mem::take(&mut mime_part_header_raw),
|
||||
MessageAttachment::Raw(result_to_bytes(bytes, stream.data)),
|
||||
is_encoding_problem,
|
||||
)));
|
||||
}
|
||||
PartType::Message(MessageAttachment::Raw(result_to_bytes(bytes, stream.data)))
|
||||
};
|
||||
|
||||
// Add part
|
||||
message.parts.push(MessagePart {
|
||||
headers_rfc: std::mem::take(&mut part_header),
|
||||
headers_raw: std::mem::take(&mut part_header_raw),
|
||||
is_encoding_problem,
|
||||
body: body_part,
|
||||
offset_header: state.offset_header,
|
||||
offset_body: state.offset_body,
|
||||
offset_end: state.offset_end,
|
||||
});
|
||||
|
||||
if state.mime_boundary.is_some() {
|
||||
// Currently processing a MIME part
|
||||
let mut last_part_offset = stream.pos;
|
||||
|
||||
'inner: loop {
|
||||
if let MimeType::Message = state.mime_type {
|
||||
// Finished processing nested message, restore parent message from stack
|
||||
if let (
|
||||
Some((mut prev_message, 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);
|
||||
// Finished processing a nested message, restore parent message from stack
|
||||
if let Some((mut prev_state, Some(mut prev_message))) = state_stack.pop() {
|
||||
let offset_end = state
|
||||
.mime_boundary
|
||||
.as_ref()
|
||||
.map(|b| stream.pos.saturating_sub(b.len() - 1))
|
||||
.unwrap_or(stream.pos);
|
||||
message.raw_message =
|
||||
raw_message[message.offset_header..message.offset_end].into();
|
||||
prev_message.attachments.push(prev_message.parts.len());
|
||||
prev_message.parts.push(MessagePart::Message(Part::new(
|
||||
headers,
|
||||
headers_raw,
|
||||
MessageAttachment::Parsed(Box::new(message)),
|
||||
false,
|
||||
)));
|
||||
raw_message[state.offset_header..offset_end].as_ref().into();
|
||||
|
||||
if let Some(part) = prev_message.parts.get_mut(state.part_id) {
|
||||
part.body =
|
||||
PartType::Message(MessageAttachment::Parsed(Box::new(message)));
|
||||
part.offset_end = offset_end;
|
||||
} else {
|
||||
debug_assert!(false, "Invalid part ID, could not find message.");
|
||||
}
|
||||
|
||||
message = prev_message;
|
||||
prev_state.mime_boundary = state.mime_boundary;
|
||||
state = prev_state;
|
||||
@@ -595,13 +539,19 @@ impl<'x> Message<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(mut prev_state) = state_stack.pop() {
|
||||
if let Some(part) = message.parts.get_mut(state.part_id) {
|
||||
// Update end offset
|
||||
part.offset_end = seek_crlf(&stream, stream.pos);
|
||||
// Add headers and substructure to parent part
|
||||
prev_state.structure.push(state.get_structure());
|
||||
part.body =
|
||||
PartType::Multipart(std::mem::take(&mut state.sub_part_ids));
|
||||
} else {
|
||||
debug_assert!(false, "Invalid part ID, could not find multipart.");
|
||||
}
|
||||
|
||||
if let Some((prev_state, _)) = state_stack.pop() {
|
||||
// Restore ancestor's state
|
||||
state = prev_state;
|
||||
last_part_offset = stream.pos;
|
||||
|
||||
if let Some(ref mime_boundary) = state.mime_boundary {
|
||||
// Ancestor has a MIME boundary, seek it.
|
||||
@@ -610,6 +560,7 @@ impl<'x> Message<'x> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break 'outer;
|
||||
} else {
|
||||
skip_crlf(&mut stream);
|
||||
@@ -622,28 +573,29 @@ impl<'x> Message<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
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(
|
||||
headers,
|
||||
headers_raw,
|
||||
MessageAttachment::Parsed(Box::new(message)),
|
||||
false,
|
||||
)));
|
||||
// Corrupted MIME message, try to recover whatever is possible.
|
||||
while let Some((prev_state, prev_message)) = state_stack.pop() {
|
||||
if let Some(mut prev_message) = prev_message {
|
||||
message.raw_message = raw_message[state.offset_header..stream.pos].as_ref().into();
|
||||
|
||||
if let Some(part) = prev_message.parts.get_mut(state.part_id) {
|
||||
part.body = PartType::Message(MessageAttachment::Parsed(Box::new(message)));
|
||||
part.offset_end = stream.pos;
|
||||
} else {
|
||||
debug_assert!(false, "Invalid part ID, could not find message.");
|
||||
}
|
||||
|
||||
message = prev_message;
|
||||
} else if let Some(part) = message.parts.get_mut(state.part_id) {
|
||||
part.offset_end = stream.pos;
|
||||
part.body = PartType::Multipart(state.sub_part_ids);
|
||||
} else {
|
||||
debug_assert!(false, "This should not have happened.");
|
||||
}
|
||||
message = prev_message;
|
||||
state = prev_state;
|
||||
}
|
||||
|
||||
message.raw_message = raw_message.into();
|
||||
message.structure = state.get_structure();
|
||||
message.offset_end = stream.pos;
|
||||
|
||||
if !message.is_empty() {
|
||||
Some(message)
|
||||
@@ -652,19 +604,68 @@ impl<'x> Message<'x> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::{fs, path::PathBuf};
|
||||
use std::{collections::BTreeMap, fs, path::PathBuf};
|
||||
|
||||
use serde::Serialize;
|
||||
use serde_json::Value;
|
||||
|
||||
use crate::parsers::message::Message;
|
||||
use crate::{
|
||||
parsers::message::Message, HeaderValue, MessagePart, MessagePartId, PartType, RawHeaders,
|
||||
RfcHeader,
|
||||
};
|
||||
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----".as_bytes();
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct SortedMessage<'x> {
|
||||
pub html_body: Vec<MessagePartId>,
|
||||
pub text_body: Vec<MessagePartId>,
|
||||
pub attachments: Vec<MessagePartId>,
|
||||
pub parts: Vec<SortedMessagePart<'x>>,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct SortedMessagePart<'x> {
|
||||
pub headers_rfc: BTreeMap<RfcHeader, HeaderValue<'x>>,
|
||||
pub headers_raw: RawHeaders<'x>,
|
||||
pub is_encoding_problem: bool,
|
||||
pub body: PartType<'x>,
|
||||
pub offset_header: usize,
|
||||
pub offset_body: usize,
|
||||
pub offset_end: usize,
|
||||
}
|
||||
|
||||
impl<'x> From<Message<'x>> for SortedMessage<'x> {
|
||||
fn from(message: Message<'x>) -> Self {
|
||||
SortedMessage {
|
||||
html_body: message.html_body,
|
||||
text_body: message.text_body,
|
||||
attachments: message.attachments,
|
||||
parts: message.parts.into_iter().map(|p| p.into()).collect(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'x> From<MessagePart<'x>> for SortedMessagePart<'x> {
|
||||
fn from(part: MessagePart<'x>) -> Self {
|
||||
SortedMessagePart {
|
||||
headers_rfc: part.headers_rfc.into_iter().collect(),
|
||||
headers_raw: part.headers_raw,
|
||||
is_encoding_problem: part.is_encoding_problem,
|
||||
body: part.body,
|
||||
offset_header: part.offset_header,
|
||||
offset_body: part.offset_body,
|
||||
offset_end: part.offset_end,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_full_messages() {
|
||||
for test_suite in ["rfc", "legacy", "thirdparty", "malformed"] {
|
||||
for test_suite in ["malformed", "rfc", "legacy", "thirdparty", "malformed"] {
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
test_dir.push("tests");
|
||||
test_dir.push(test_suite);
|
||||
@@ -692,14 +693,14 @@ mod tests {
|
||||
|
||||
tests_run += 1;
|
||||
|
||||
let input = input.split_at_mut(pos);
|
||||
let message = Message::parse(input.0).unwrap();
|
||||
let (raw_message, expected_result) = input.split_at_mut(pos);
|
||||
let message = SortedMessage::from(Message::parse(raw_message).unwrap());
|
||||
let json_message = serde_json::to_string_pretty(&message).unwrap();
|
||||
|
||||
assert_eq!(
|
||||
serde_json::from_str::<Value>(&json_message).unwrap(),
|
||||
serde_json::from_str::<Value>(
|
||||
std::str::from_utf8(&input.1[SEPARATOR.len()..]).unwrap()
|
||||
std::str::from_utf8(&expected_result[SEPARATOR.len()..]).unwrap()
|
||||
)
|
||||
.unwrap(),
|
||||
"Test failed for '{}', result was:\n{}",
|
||||
@@ -791,9 +792,11 @@ mod tests {
|
||||
output.extend_from_slice(input.0);
|
||||
output.extend_from_slice(SEPARATOR);
|
||||
output.extend_from_slice(
|
||||
serde_json::to_string_pretty(&Message::parse(input.0).unwrap())
|
||||
.unwrap()
|
||||
.as_bytes(),
|
||||
serde_json::to_string_pretty(&SortedMessage::from(
|
||||
Message::parse(input.0).unwrap(),
|
||||
))
|
||||
.unwrap()
|
||||
.as_bytes(),
|
||||
);
|
||||
fs::write(file_name.as_ref().unwrap().path(), &output).unwrap();
|
||||
}
|
||||
|
||||
+18
-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
|
||||
@@ -64,7 +64,7 @@ pub fn get_bytes_to_boundary<'x>(
|
||||
if is_boundary_end(stream, read_pos) {
|
||||
let mut match_pos = read_pos - match_count;
|
||||
|
||||
if let Some(b'\r') = stream.data.get(match_pos - 1) {
|
||||
if let Some(b'\r') = stream.data.get(match_pos.saturating_sub(1)) {
|
||||
match_pos -= 1;
|
||||
}
|
||||
|
||||
@@ -150,3 +150,19 @@ pub fn seek_crlf_end(stream: &MessageStream, mut start_pos: usize) -> usize {
|
||||
}
|
||||
start_pos
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn seek_crlf(stream: &MessageStream, mut start_pos: usize) -> usize {
|
||||
for ch in &stream.data[start_pos..] {
|
||||
match ch {
|
||||
b'\r' | b' ' | b'\t' => start_pos += 1,
|
||||
b'\n' => {
|
||||
start_pos += 1;
|
||||
break;
|
||||
}
|
||||
_ => break,
|
||||
}
|
||||
}
|
||||
|
||||
start_pos
|
||||
}
|
||||
|
||||
+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,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,9 +57,11 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
let message = Message::parse(input).unwrap();
|
||||
|
||||
assert_eq!(
|
||||
bincode::deserialize::<RfcHeaders>(&bincode::serialize(&message.headers_rfc).unwrap())
|
||||
.unwrap(),
|
||||
message.headers_rfc
|
||||
bincode::deserialize::<RfcHeaders>(
|
||||
&bincode::serialize(&message.parts[0].headers_rfc).unwrap()
|
||||
)
|
||||
.unwrap(),
|
||||
message.parts[0].headers_rfc
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
@@ -114,7 +116,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
)
|
||||
);
|
||||
|
||||
let nested_message = message.get_attachment(0).unwrap().unwrap_message();
|
||||
let nested_message = message.get_attachment(0).unwrap().get_message().unwrap();
|
||||
|
||||
assert_eq!(
|
||||
nested_message.get_subject().unwrap(),
|
||||
@@ -131,7 +133,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
|
||||
);
|
||||
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
|
||||
let nested_attachment = nested_message.get_attachment(0).unwrap();
|
||||
|
||||
assert_eq!(nested_attachment.len(), 42);
|
||||
|
||||
|
||||
+190
-67
@@ -43,42 +43,6 @@ tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
|
||||
IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 35,
|
||||
"second": 5,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
@@ -86,32 +50,194 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
],
|
||||
"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"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 35,
|
||||
"second": 5,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 76
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 84,
|
||||
"end": 125
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 130,
|
||||
"end": 164
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 225
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 238,
|
||||
"end": 244
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 257,
|
||||
"end": 291
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 317,
|
||||
"end": 326
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 346,
|
||||
"end": 385
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 396,
|
||||
"end": 409
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 427,
|
||||
"end": 436
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 445,
|
||||
"end": 498
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 509,
|
||||
"end": 518
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 528,
|
||||
"end": 576
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1566,13 +1692,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 578,
|
||||
"offset_end": 2570
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 578,
|
||||
"offset_end": 2570
|
||||
]
|
||||
}
|
||||
+179
-65
@@ -34,48 +34,6 @@ m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
},
|
||||
{
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 18,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -85,30 +43,186 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
},
|
||||
{
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 18,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 39
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 42,
|
||||
"end": 146
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 154,
|
||||
"end": 224
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 229,
|
||||
"end": 262
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 273,
|
||||
"end": 322
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 335,
|
||||
"end": 340
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 353,
|
||||
"end": 383
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 409,
|
||||
"end": 427
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 438,
|
||||
"end": 450
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 468,
|
||||
"end": 476
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 485,
|
||||
"end": 537
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 548,
|
||||
"end": 556
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 566,
|
||||
"end": 613
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 614,
|
||||
"offset_end": 1491
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 614,
|
||||
"offset_end": 1491
|
||||
]
|
||||
}
|
||||
+155
-59
@@ -36,42 +36,6 @@ wir." <br>
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 31,
|
||||
"second": 0,
|
||||
"tz_before_gmt": true,
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -81,30 +45,162 @@ wir." <br>
|
||||
"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"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 31,
|
||||
"second": 0,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 192
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 197,
|
||||
"end": 231
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 290
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 295,
|
||||
"end": 332
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 340,
|
||||
"end": 387
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 400,
|
||||
"end": 406
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 419,
|
||||
"end": 453
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 479,
|
||||
"end": 498
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 500,
|
||||
"offset_end": 1499
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 500,
|
||||
"offset_end": 1499
|
||||
]
|
||||
}
|
||||
+230
-93
@@ -63,111 +63,248 @@ wir." <br>
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 29,
|
||||
"second": 55,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519002557.00a88870@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_714967308==_.ALT"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 29,
|
||||
"second": 55,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519002557.00a88870@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_714967308==_.ALT"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 192
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 197,
|
||||
"end": 231
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 290
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 295,
|
||||
"end": 332
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 340,
|
||||
"end": 387
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 400,
|
||||
"end": 406
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 419,
|
||||
"end": 496
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 498,
|
||||
"offset_end": 2625
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"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": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 498,
|
||||
"offset_end": 2623
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 553,
|
||||
"end": 588
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 614,
|
||||
"end": 633
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 540,
|
||||
"offset_body": 635,
|
||||
"offset_end": 1446
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1501,
|
||||
"end": 1535
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1561,
|
||||
"end": 1580
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<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"
|
||||
},
|
||||
"offset_header": 1488,
|
||||
"offset_body": 1582,
|
||||
"offset_end": 2581
|
||||
}
|
||||
]
|
||||
}
|
||||
+143
-56
@@ -18,42 +18,6 @@ Slow but steady wins the race.
|
||||
|
||||
|
||||
---- 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"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 13,
|
||||
"second": 19,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -63,27 +27,150 @@ Slow but steady wins the race.
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 13,
|
||||
"second": 19,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 194
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 199,
|
||||
"end": 233
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 236,
|
||||
"end": 266
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 271,
|
||||
"end": 308
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 316,
|
||||
"end": 344
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 357,
|
||||
"end": 363
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 376,
|
||||
"end": 409
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 411,
|
||||
"offset_end": 1177
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 413,
|
||||
"offset_end": 1177
|
||||
]
|
||||
}
|
||||
+173
-59
@@ -32,42 +32,6 @@ ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein =
|
||||
m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 20,
|
||||
"second": 24,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -77,30 +41,180 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 20,
|
||||
"second": 24,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 96
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 104,
|
||||
"end": 175
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 180,
|
||||
"end": 214
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 225,
|
||||
"end": 275
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 288,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 339
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 365,
|
||||
"end": 384
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 395,
|
||||
"end": 408
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 426,
|
||||
"end": 435
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 444,
|
||||
"end": 497
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 508,
|
||||
"end": 517
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 527,
|
||||
"end": 575
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 577,
|
||||
"offset_end": 1470
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 577,
|
||||
"offset_end": 1470
|
||||
]
|
||||
}
|
||||
+279
-106
@@ -83,85 +83,236 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
------=_NextPart_000_0004_01BFC037.28F2FA90--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 36,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0,
|
||||
1
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 36,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
{
|
||||
"start": 43,
|
||||
"end": 76
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 84,
|
||||
"end": 125
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 130,
|
||||
"end": 164
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 225
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 238,
|
||||
"end": 244
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 257,
|
||||
"end": 331
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 342,
|
||||
"end": 355
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 373,
|
||||
"end": 382
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 391,
|
||||
"end": 444
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 455,
|
||||
"end": 464
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 474,
|
||||
"end": 522
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 4809
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 630,
|
||||
"end": 665
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 691,
|
||||
"end": 700
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 720,
|
||||
"end": 760
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1488,35 +1639,67 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 617,
|
||||
"offset_body": 762,
|
||||
"offset_end": 2580
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 2638,
|
||||
"end": 2672
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 2698,
|
||||
"end": 2707
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 2727,
|
||||
"end": 2766
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2971,20 +3154,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 4807
|
||||
"offset_header": 2625,
|
||||
"offset_body": 2768,
|
||||
"offset_end": 4762
|
||||
}
|
||||
]
|
||||
}
|
||||
+173
-59
@@ -31,42 +31,6 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 15,
|
||||
"second": 35,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -76,30 +40,180 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 15,
|
||||
"second": 35,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 112
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 120,
|
||||
"end": 194
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 199,
|
||||
"end": 233
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 244,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 313
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 326,
|
||||
"end": 363
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 389,
|
||||
"end": 408
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 419,
|
||||
"end": 432
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 450,
|
||||
"end": 459
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 468,
|
||||
"end": 521
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 532,
|
||||
"end": 541
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 551,
|
||||
"end": 599
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 601,
|
||||
"offset_end": 1410
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 601,
|
||||
"offset_end": 1410
|
||||
]
|
||||
}
|
||||
+379
-155
@@ -135,110 +135,286 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
------=_NextPart_000_0002_01BFC036.AE309650--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 32,
|
||||
"second": 47,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0002_01BFC036.AE309650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 32,
|
||||
"second": 47,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0002_01BFC036.AE309650"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 99
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 107,
|
||||
"end": 148
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 153,
|
||||
"end": 187
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 198,
|
||||
"end": 248
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 261,
|
||||
"end": 267
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 280,
|
||||
"end": 354
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 365,
|
||||
"end": 378
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 396,
|
||||
"end": 405
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 414,
|
||||
"end": 467
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 478,
|
||||
"end": 487
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 497,
|
||||
"end": 545
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 547,
|
||||
"offset_end": 7747
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
{
|
||||
"start": 653,
|
||||
"end": 690
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 716,
|
||||
"end": 735
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 640,
|
||||
"offset_body": 737,
|
||||
"offset_end": 1538
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1596,
|
||||
"end": 1631
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1657,
|
||||
"end": 1666
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1686,
|
||||
"end": 1726
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1565,35 +1741,67 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1583,
|
||||
"offset_body": 1728,
|
||||
"offset_end": 3546
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3604,
|
||||
"end": 3640
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3666,
|
||||
"end": 3675
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3695,
|
||||
"end": 3736
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2893,35 +3101,67 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3591,
|
||||
"offset_body": 3738,
|
||||
"offset_end": 5518
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"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": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5576,
|
||||
"end": 5610
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5636,
|
||||
"end": 5645
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5665,
|
||||
"end": 5704
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4376,26 +4616,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5563,
|
||||
"offset_body": 5706,
|
||||
"offset_end": 7700
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 547,
|
||||
"offset_end": 7745
|
||||
]
|
||||
}
|
||||
+165
-60
@@ -36,42 +36,6 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010441.00a8d140@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 6,
|
||||
"second": 18,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -81,31 +45,172 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 6,
|
||||
"second": 18,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Disposition-Notification-To"
|
||||
},
|
||||
{
|
||||
"start": 141,
|
||||
"end": 166
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 223
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 248
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 253,
|
||||
"end": 287
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 290,
|
||||
"end": 373
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 378,
|
||||
"end": 415
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 423,
|
||||
"end": 468
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 481,
|
||||
"end": 487
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 500,
|
||||
"end": 550
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 576,
|
||||
"end": 595
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 597,
|
||||
"offset_end": 1422
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 597,
|
||||
"offset_end": 1422
|
||||
]
|
||||
}
|
||||
+155
-59
@@ -21,42 +21,6 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -66,30 +30,162 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 200,
|
||||
"end": 234
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 237,
|
||||
"end": 274
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 279,
|
||||
"end": 316
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 324,
|
||||
"end": 352
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 365,
|
||||
"end": 371
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 384,
|
||||
"end": 419
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 445,
|
||||
"end": 452
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 454,
|
||||
"offset_end": 1203
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 454,
|
||||
"offset_end": 1203
|
||||
]
|
||||
}
|
||||
+146
-59
@@ -29,42 +29,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 17,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -74,30 +38,153 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 17,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519001217.00a85b60@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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 209
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 212,
|
||||
"end": 299
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 304,
|
||||
"end": 341
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 349,
|
||||
"end": 396
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 409,
|
||||
"end": 415
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 428,
|
||||
"end": 463
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 489,
|
||||
"end": 508
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 1321
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 1321
|
||||
]
|
||||
}
|
||||
+173
-59
@@ -30,42 +30,6 @@ ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
|
||||
Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 30,
|
||||
"second": 20,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -75,30 +39,180 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "Windows-1252"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 30,
|
||||
"second": 20,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "Windows-1252"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 101
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 109,
|
||||
"end": 185
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 190,
|
||||
"end": 224
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 235,
|
||||
"end": 285
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 298,
|
||||
"end": 304
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 317,
|
||||
"end": 356
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 382,
|
||||
"end": 401
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 412,
|
||||
"end": 425
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 443,
|
||||
"end": 452
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 461,
|
||||
"end": 514
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 525,
|
||||
"end": 534
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 544,
|
||||
"end": 592
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 594,
|
||||
"offset_end": 1401
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 594,
|
||||
"offset_end": 1401
|
||||
]
|
||||
}
|
||||
+173
-59
@@ -31,42 +31,6 @@ welche also wohl noch ungl
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"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": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -76,30 +40,180 @@ welche also wohl noch ungl
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 13,
|
||||
"second": 51,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 112
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 120,
|
||||
"end": 194
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 199,
|
||||
"end": 233
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 244,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 313
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 326,
|
||||
"end": 363
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 389,
|
||||
"end": 396
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 407,
|
||||
"end": 420
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 438,
|
||||
"end": 447
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 456,
|
||||
"end": 509
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 520,
|
||||
"end": 529
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 539,
|
||||
"end": 587
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 589,
|
||||
"offset_end": 1341
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 589,
|
||||
"offset_end": 1341
|
||||
]
|
||||
}
|
||||
+249
-94
@@ -72,111 +72,266 @@ race. =20
|
||||
------=_NextPart_000_0005_01BFC037.799BEF60--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 38,
|
||||
"second": 28,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"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"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 38,
|
||||
"second": 28,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 76
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 84,
|
||||
"end": 125
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 130,
|
||||
"end": 164
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 225
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 238,
|
||||
"end": 244
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 257,
|
||||
"end": 337
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 348,
|
||||
"end": 361
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 379,
|
||||
"end": 388
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 397,
|
||||
"end": 450
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 461,
|
||||
"end": 470
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 480,
|
||||
"end": 528
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 530,
|
||||
"offset_end": 2903
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 530,
|
||||
"offset_end": 2901
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 636,
|
||||
"end": 673
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 699,
|
||||
"end": 718
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 623,
|
||||
"offset_body": 720,
|
||||
"offset_end": 1523
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1581,
|
||||
"end": 1617
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1643,
|
||||
"end": 1662
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<!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"
|
||||
},
|
||||
"offset_header": 1568,
|
||||
"offset_body": 1664,
|
||||
"offset_end": 2856
|
||||
}
|
||||
]
|
||||
}
|
||||
+539
-242
@@ -198,165 +198,393 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 36,
|
||||
"second": 58,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392540==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
3
|
||||
4
|
||||
],
|
||||
"text_body": [
|
||||
2
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7
|
||||
7,
|
||||
8
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715392540==_.REL"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 36,
|
||||
"second": 58,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392540==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 192
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 197,
|
||||
"end": 231
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 288
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 293,
|
||||
"end": 330
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 338,
|
||||
"end": 383
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 396,
|
||||
"end": 402
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 415,
|
||||
"end": 482
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
7,
|
||||
8
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 11500
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392550==_.ALT"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715392540==_.REL"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 535,
|
||||
"end": 640
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
5,
|
||||
6
|
||||
]
|
||||
},
|
||||
"offset_header": 522,
|
||||
"offset_body": 642,
|
||||
"offset_end": 7504
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392550==_.ALT"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa3ed95.png2aa3edd1.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 697,
|
||||
"end": 774
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 684,
|
||||
"offset_body": 776,
|
||||
"offset_end": 3160
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.2\" width=27 height=27 alt=\"2aa3ed95.png\"><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.3\" width=27 height=27 alt=\"2aa3edd1.png\"></html>\n"
|
||||
}
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 831,
|
||||
"end": 866
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 892,
|
||||
"end": 911
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 818,
|
||||
"offset_body": 913,
|
||||
"offset_end": 1748
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3ed95.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
{
|
||||
"start": 1803,
|
||||
"end": 1837
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa3ed95.png"
|
||||
}
|
||||
{
|
||||
"start": 1863,
|
||||
"end": 1882
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<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"
|
||||
},
|
||||
"offset_header": 1790,
|
||||
"offset_body": 1884,
|
||||
"offset_end": 3116
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa3ed95.png"
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3ed95.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3217,
|
||||
"end": 3250
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 3261,
|
||||
"end": 3316
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3342,
|
||||
"end": 3351
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3371,
|
||||
"end": 3405
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1683,38 +1911,79 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3204,
|
||||
"offset_body": 3407,
|
||||
"offset_end": 5223
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa3edd1.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa3edd1.png"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3edd1.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3edd1.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5278,
|
||||
"end": 5311
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 5322,
|
||||
"end": 5377
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5403,
|
||||
"end": 5412
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5432,
|
||||
"end": 5466
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3169,35 +3438,67 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5265,
|
||||
"offset_body": 5468,
|
||||
"offset_end": 7460
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 7557,
|
||||
"end": 7590
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 7616,
|
||||
"end": 7625
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 7645,
|
||||
"end": 7683
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4524,35 +4825,67 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 7544,
|
||||
"offset_body": 7685,
|
||||
"offset_end": 9501
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 9552,
|
||||
"end": 9586
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 9612,
|
||||
"end": 9621
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 9641,
|
||||
"end": 9680
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5852,46 +6185,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 9539,
|
||||
"offset_body": 9682,
|
||||
"offset_end": 11460
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 11498
|
||||
]
|
||||
}
|
||||
+271
-122
@@ -95,106 +95,245 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716373961==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 53,
|
||||
"second": 25,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 53,
|
||||
"second": 25,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716373961==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 209
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 212,
|
||||
"end": 295
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 300,
|
||||
"end": 337
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 345,
|
||||
"end": 390
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 403,
|
||||
"end": 409
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 422,
|
||||
"end": 489
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 491,
|
||||
"offset_end": 4871
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "mac-binhex40",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
{
|
||||
"start": 542,
|
||||
"end": 577
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 603,
|
||||
"end": 622
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 529,
|
||||
"offset_body": 624,
|
||||
"offset_end": 1435
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "mac-binhex40",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1486,
|
||||
"end": 1534
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1554,
|
||||
"end": 1592
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
13,
|
||||
10,
|
||||
40,
|
||||
@@ -2125,32 +2264,55 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
13,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1473,
|
||||
"offset_body": 1594,
|
||||
"offset_end": 3525
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "mac-binhex40",
|
||||
"attributes": {
|
||||
"name": "HasenundFr�sche.txt"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "mac-binhex40",
|
||||
"attributes": {
|
||||
"name": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3576,
|
||||
"end": 3631
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3651,
|
||||
"end": 3696
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
13,
|
||||
10,
|
||||
40,
|
||||
@@ -3283,23 +3445,10 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
13,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3563,
|
||||
"offset_body": 3698,
|
||||
"offset_end": 4831
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 491,
|
||||
"offset_end": 4869
|
||||
]
|
||||
}
|
||||
+283
-125
@@ -102,106 +102,245 @@ end
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 50,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"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==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 50,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716177458==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 209
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 212,
|
||||
"end": 257
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 262,
|
||||
"end": 299
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 335
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 348,
|
||||
"end": 354
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 367,
|
||||
"end": 434
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 436,
|
||||
"offset_end": 5446
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
{
|
||||
"start": 487,
|
||||
"end": 520
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 474,
|
||||
"offset_body": 522,
|
||||
"offset_end": 1288
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1339,
|
||||
"end": 1373
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1399,
|
||||
"end": 1412
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1432,
|
||||
"end": 1471
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
13,
|
||||
10,
|
||||
98,
|
||||
@@ -2057,35 +2196,67 @@ end
|
||||
13,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1326,
|
||||
"offset_body": 1473,
|
||||
"offset_end": 3329
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3380,
|
||||
"end": 3413
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3439,
|
||||
"end": 3452
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3472,
|
||||
"end": 3510
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
13,
|
||||
10,
|
||||
98,
|
||||
@@ -3979,23 +4150,10 @@ end
|
||||
13,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3367,
|
||||
"offset_body": 3512,
|
||||
"offset_end": 5406
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 436,
|
||||
"offset_end": 5444
|
||||
]
|
||||
}
|
||||
+402
-176
@@ -138,148 +138,356 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715157131==_.REL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 33,
|
||||
"second": 1,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
2
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4
|
||||
4,
|
||||
5
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715157141==_.ALT"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 33,
|
||||
"second": 1,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715157131==_.REL"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 192
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 197,
|
||||
"end": 231
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 288
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 293,
|
||||
"end": 330
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 338,
|
||||
"end": 383
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 396,
|
||||
"end": 402
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 415,
|
||||
"end": 520
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
4,
|
||||
5
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 522,
|
||||
"offset_end": 7393
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715157141==_.ALT"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
{
|
||||
"start": 577,
|
||||
"end": 654
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 564,
|
||||
"offset_body": 656,
|
||||
"offset_end": 3051
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 711,
|
||||
"end": 746
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 772,
|
||||
"end": 791
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 698,
|
||||
"offset_body": 793,
|
||||
"offset_end": 1631
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1686,
|
||||
"end": 1720
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1746,
|
||||
"end": 1765
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<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"
|
||||
},
|
||||
"offset_header": 1673,
|
||||
"offset_body": 1767,
|
||||
"offset_end": 3007
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.0\" width=27 height=27 alt=\"blueball.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.1\" width=27 height=27 alt=\"redball.png\"></font></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"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"
|
||||
}
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3108,
|
||||
"end": 3141
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 3152,
|
||||
"end": 3207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3233,
|
||||
"end": 3242
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3262,
|
||||
"end": 3296
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1606,38 +1814,79 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3095,
|
||||
"offset_body": 3298,
|
||||
"offset_end": 5114
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"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",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5169,
|
||||
"end": 5201
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 5212,
|
||||
"end": 5267
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5293,
|
||||
"end": 5302
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5322,
|
||||
"end": 5355
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3092,33 +3341,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5156,
|
||||
"offset_body": 5357,
|
||||
"offset_end": 7349
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 522,
|
||||
"offset_end": 7391
|
||||
]
|
||||
}
|
||||
+395
-169
@@ -144,144 +144,361 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
------=_NextPart_000_0008_01BFC037.FDD8EE90--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0008_01BFC037.FDD8EE90"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 42,
|
||||
"second": 10,
|
||||
"tz_before_gmt": true,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
2
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4
|
||||
4,
|
||||
5
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0009_01BFC037.FDD8EE90"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 42,
|
||||
"second": 10,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0008_01BFC037.FDD8EE90"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 76
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 84,
|
||||
"end": 125
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 130,
|
||||
"end": 164
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 225
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 238,
|
||||
"end": 244
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 257,
|
||||
"end": 331
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 342,
|
||||
"end": 355
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 373,
|
||||
"end": 382
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 391,
|
||||
"end": 444
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 455,
|
||||
"end": 464
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 474,
|
||||
"end": 522
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
4,
|
||||
5
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 7242
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0009_01BFC037.FDD8EE90"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
{
|
||||
"start": 630,
|
||||
"end": 710
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 617,
|
||||
"offset_body": 712,
|
||||
"offset_end": 3039
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 772,
|
||||
"end": 809
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 835,
|
||||
"end": 854
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 759,
|
||||
"offset_body": 856,
|
||||
"offset_end": 1659
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1717,
|
||||
"end": 1753
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1779,
|
||||
"end": 1798
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<!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"
|
||||
},
|
||||
"offset_header": 1704,
|
||||
"offset_body": 1800,
|
||||
"offset_end": 2992
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><BR><FONT face=Arial size=2>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3099,
|
||||
"end": 3135
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3161,
|
||||
"end": 3170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3190,
|
||||
"end": 3231
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1581,35 +1798,67 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3086,
|
||||
"offset_body": 3233,
|
||||
"offset_end": 5013
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5071,
|
||||
"end": 5105
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5131,
|
||||
"end": 5140
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5160,
|
||||
"end": 5199
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3064,33 +3313,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5058,
|
||||
"offset_body": 5201,
|
||||
"offset_end": 7195
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 7240
|
||||
]
|
||||
}
|
||||
+173
-59
@@ -31,42 +31,6 @@ welche also wohl noch ungl
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"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,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 8,
|
||||
"second": 29,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -76,30 +40,180 @@ welche also wohl noch ungl
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 8,
|
||||
"second": 29,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 89
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 97,
|
||||
"end": 148
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 153,
|
||||
"end": 187
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 198,
|
||||
"end": 248
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 261,
|
||||
"end": 267
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 280,
|
||||
"end": 317
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 343,
|
||||
"end": 350
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 361,
|
||||
"end": 374
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 392,
|
||||
"end": 401
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 410,
|
||||
"end": 463
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 474,
|
||||
"end": 483
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 493,
|
||||
"end": 541
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 543,
|
||||
"offset_end": 1295
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 543,
|
||||
"offset_end": 1295
|
||||
]
|
||||
}
|
||||
+473
-206
@@ -188,154 +188,390 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
------=_NextPart_000_0010_01BFC038.B91BC650--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 47,
|
||||
"second": 24,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
3
|
||||
4
|
||||
],
|
||||
"text_body": [
|
||||
2
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
4,
|
||||
5,
|
||||
6
|
||||
6,
|
||||
7
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0011_01BFC038.B91BC650"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 47,
|
||||
"second": 24,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 76
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 84,
|
||||
"end": 125
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 130,
|
||||
"end": 164
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 225
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 238,
|
||||
"end": 244
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 257,
|
||||
"end": 331
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 342,
|
||||
"end": 355
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 373,
|
||||
"end": 382
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 391,
|
||||
"end": 444
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 455,
|
||||
"end": 464
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 474,
|
||||
"end": 522
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
6,
|
||||
7
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 9627
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"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": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_0011_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 630,
|
||||
"end": 706
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
5
|
||||
]
|
||||
},
|
||||
"offset_header": 617,
|
||||
"offset_body": 708,
|
||||
"offset_end": 5424
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_002_0012_01BFC038.B91BC650"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 768,
|
||||
"end": 848
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 755,
|
||||
"offset_body": 850,
|
||||
"offset_end": 3388
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"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": "<!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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 910,
|
||||
"end": 947
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 973,
|
||||
"end": 992
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 897,
|
||||
"offset_body": 994,
|
||||
"offset_end": 1801
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "938014623@17052000-0f9b"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1859,
|
||||
"end": 1895
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1921,
|
||||
"end": 1940
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<!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"
|
||||
},
|
||||
"offset_header": 1846,
|
||||
"offset_body": 1942,
|
||||
"offset_end": 3341
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "938014623@17052000-0f9b"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3448,
|
||||
"end": 3483
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3509,
|
||||
"end": 3518
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 3529,
|
||||
"end": 3557
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1662,35 +1898,67 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3435,
|
||||
"offset_body": 3559,
|
||||
"offset_end": 5377
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5484,
|
||||
"end": 5520
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5546,
|
||||
"end": 5555
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5575,
|
||||
"end": 5616
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2990,35 +3258,67 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5471,
|
||||
"offset_body": 5618,
|
||||
"offset_end": 7398
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 7456,
|
||||
"end": 7490
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 7516,
|
||||
"end": 7525
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 7545,
|
||||
"end": 7584
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4473,43 +4773,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 7443,
|
||||
"offset_body": 7586,
|
||||
"offset_end": 9580
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 9625
|
||||
]
|
||||
}
|
||||
+173
-59
@@ -30,42 +30,6 @@ IiANCg==
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 11,
|
||||
"second": 50,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -75,30 +39,180 @@ IiANCg==
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 11,
|
||||
"second": 50,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 89
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 97,
|
||||
"end": 148
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 153,
|
||||
"end": 187
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 198,
|
||||
"end": 248
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 261,
|
||||
"end": 267
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 280,
|
||||
"end": 317
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 343,
|
||||
"end": 352
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 363,
|
||||
"end": 376
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 394,
|
||||
"end": 403
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 412,
|
||||
"end": 465
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 476,
|
||||
"end": 485
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 495,
|
||||
"end": 543
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 545,
|
||||
"offset_end": 1571
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 545,
|
||||
"offset_end": 1571
|
||||
]
|
||||
}
|
||||
+340
-152
@@ -108,110 +108,259 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"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"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 56,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 56,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716541962==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 209
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 212,
|
||||
"end": 295
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 300,
|
||||
"end": 337
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 345,
|
||||
"end": 390
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 403,
|
||||
"end": 409
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 422,
|
||||
"end": 489
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 491,
|
||||
"offset_end": 5435
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
{
|
||||
"start": 542,
|
||||
"end": 577
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 603,
|
||||
"end": 622
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 529,
|
||||
"offset_body": 624,
|
||||
"offset_end": 1435
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1486,
|
||||
"end": 1519
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1545,
|
||||
"end": 1554
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1574,
|
||||
"end": 1612
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1538,81 +1687,120 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1473,
|
||||
"offset_body": 1614,
|
||||
"offset_end": 3430
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3481,
|
||||
"end": 3514
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3534,
|
||||
"end": 3578
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 3468,
|
||||
"offset_body": 3580,
|
||||
"offset_end": 4386
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 4437,
|
||||
"end": 4472
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 4498,
|
||||
"end": 4517
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 4537,
|
||||
"end": 4582
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 4424,
|
||||
"offset_body": 4584,
|
||||
"offset_end": 5395
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 491,
|
||||
"offset_end": 5433
|
||||
]
|
||||
}
|
||||
+329
-135
@@ -109,113 +109,279 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715429112==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 37,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 37,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 192
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 197,
|
||||
"end": 231
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 288
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 293,
|
||||
"end": 330
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 338,
|
||||
"end": 383
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 396,
|
||||
"end": 402
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 415,
|
||||
"end": 508
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 6229
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa48eb6.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48eb6.png"
|
||||
}
|
||||
{
|
||||
"start": 565,
|
||||
"end": 599
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 625,
|
||||
"end": 644
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<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"
|
||||
},
|
||||
"offset_header": 552,
|
||||
"offset_body": 646,
|
||||
"offset_end": 1887
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa48eb6.png"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48eb6.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1942,
|
||||
"end": 1975
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 1986,
|
||||
"end": 2041
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 2067,
|
||||
"end": 2076
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 2096,
|
||||
"end": 2130
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1542,38 +1708,79 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1929,
|
||||
"offset_body": 2132,
|
||||
"offset_end": 3948
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48ec0.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa48ec0.png"
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa48ec0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48ec0.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 4003,
|
||||
"end": 4036
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 4047,
|
||||
"end": 4102
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 4128,
|
||||
"end": 4137
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 4157,
|
||||
"end": 4191
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3028,23 +3235,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3990,
|
||||
"offset_body": 4193,
|
||||
"offset_end": 6185
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 6227
|
||||
]
|
||||
}
|
||||
+474
-209
@@ -171,130 +171,316 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715462801==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 38,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
5,
|
||||
6
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715462801==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 38,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715462801==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 192
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 197,
|
||||
"end": 231
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 288
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 293,
|
||||
"end": 330
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 338,
|
||||
"end": 383
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 396,
|
||||
"end": 402
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 415,
|
||||
"end": 482
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
5,
|
||||
6
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 10336
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715462801==_.REL"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
{
|
||||
"start": 535,
|
||||
"end": 628
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 522,
|
||||
"offset_body": 630,
|
||||
"offset_end": 6340
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 685,
|
||||
"end": 719
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 745,
|
||||
"end": 764
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<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"
|
||||
},
|
||||
"offset_header": 672,
|
||||
"offset_body": 766,
|
||||
"offset_end": 1998
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa51367.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa51367.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa51367.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 2053,
|
||||
"end": 2086
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 2097,
|
||||
"end": 2152
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 2178,
|
||||
"end": 2187
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 2207,
|
||||
"end": 2241
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1621,38 +1807,79 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 2040,
|
||||
"offset_body": 2243,
|
||||
"offset_end": 4059
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa51371.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa51371.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa51371.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa51371.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 4114,
|
||||
"end": 4147
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 4158,
|
||||
"end": 4213
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 4239,
|
||||
"end": 4248
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 4268,
|
||||
"end": 4302
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3107,35 +3334,67 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 4101,
|
||||
"offset_body": 4304,
|
||||
"offset_end": 6296
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 6393,
|
||||
"end": 6426
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 6452,
|
||||
"end": 6461
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 6481,
|
||||
"end": 6519
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4462,35 +4721,67 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 6380,
|
||||
"offset_body": 6521,
|
||||
"offset_end": 8337
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 8388,
|
||||
"end": 8422
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 8448,
|
||||
"end": 8457
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 8477,
|
||||
"end": 8516
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5790,36 +6081,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 8375,
|
||||
"offset_body": 8518,
|
||||
"offset_end": 10296
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 10334
|
||||
]
|
||||
}
|
||||
+288
-130
@@ -84,154 +84,312 @@ Birds of a feather flock together.
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716740438==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 59,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 59,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716740438==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 209
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 212,
|
||||
"end": 266
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 271,
|
||||
"end": 308
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 316,
|
||||
"end": 361
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 374,
|
||||
"end": 380
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 393,
|
||||
"end": 460
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 462,
|
||||
"offset_end": 3741
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"x-mac-type": "54455854",
|
||||
"name": "HasenundFr�sche.txt",
|
||||
"x-mac-creator": "74747874"
|
||||
}
|
||||
"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": "\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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 513,
|
||||
"end": 548
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 574,
|
||||
"end": 593
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 500,
|
||||
"offset_body": 595,
|
||||
"offset_end": 1406
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"x-mac-creator": "74747874",
|
||||
"x-mac-type": "54455854",
|
||||
"name": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1457,
|
||||
"end": 1549
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1575,
|
||||
"end": 1588
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1608,
|
||||
"end": 1653
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 1444,
|
||||
"offset_body": 1655,
|
||||
"offset_end": 2745
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 2796,
|
||||
"end": 2829
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 2849,
|
||||
"end": 2893
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 2783,
|
||||
"offset_body": 2895,
|
||||
"offset_end": 3701
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 462,
|
||||
"offset_end": 3739
|
||||
]
|
||||
}
|
||||
+173
-59
@@ -31,42 +31,6 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 10,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -76,30 +40,180 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"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"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 10,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 89
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 97,
|
||||
"end": 148
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 153,
|
||||
"end": 187
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 198,
|
||||
"end": 248
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 261,
|
||||
"end": 267
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 280,
|
||||
"end": 317
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 343,
|
||||
"end": 362
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 373,
|
||||
"end": 386
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 404,
|
||||
"end": 413
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 422,
|
||||
"end": 475
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 486,
|
||||
"end": 495
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 505,
|
||||
"end": 553
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 555,
|
||||
"offset_end": 1364
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 555,
|
||||
"offset_end": 1364
|
||||
]
|
||||
}
|
||||
+385
-159
@@ -156,138 +156,355 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
------=_NextPart_000_000C_01BFC038.5A5C8E60--
|
||||
|
||||
---- 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,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 44,
|
||||
"second": 45,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
2
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4
|
||||
4,
|
||||
5
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_000D_01BFC038.5A5C8E60"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 44,
|
||||
"second": 45,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 76
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 84,
|
||||
"end": 125
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 130,
|
||||
"end": 164
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 175,
|
||||
"end": 225
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 238,
|
||||
"end": 244
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 257,
|
||||
"end": 333
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 344,
|
||||
"end": 357
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 375,
|
||||
"end": 384
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 393,
|
||||
"end": 446
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 457,
|
||||
"end": 466
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 476,
|
||||
"end": 524
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
4,
|
||||
5
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 526,
|
||||
"offset_end": 7633
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_001_000D_01BFC038.5A5C8E60"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n\n\n \nSlow but steady wins the race. \n\n\n\n"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 632,
|
||||
"end": 712
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 619,
|
||||
"offset_body": 714,
|
||||
"offset_end": 3435
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. </FONT></DIV>\n<DIV><FONT face=Arial size=2></FONT> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f8d\"><BR> <BR>Slow but steady wins \nthe race. </FONT></DIV>\n<DIV> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"red ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f94\"><BR></DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 774,
|
||||
"end": 811
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 837,
|
||||
"end": 856
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 761,
|
||||
"offset_body": 858,
|
||||
"offset_end": 1669
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f8d"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1727,
|
||||
"end": 1763
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1789,
|
||||
"end": 1808
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<!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"
|
||||
},
|
||||
"offset_header": 1714,
|
||||
"offset_body": 1810,
|
||||
"offset_end": 3388
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f8d"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3495,
|
||||
"end": 3530
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3556,
|
||||
"end": 3565
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 3576,
|
||||
"end": 3604
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1614,29 +1831,61 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3482,
|
||||
"offset_body": 3606,
|
||||
"offset_end": 5424
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f94"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f94"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5482,
|
||||
"end": 5516
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5542,
|
||||
"end": 5551
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 5562,
|
||||
"end": 5590
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3091,33 +3340,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5469,
|
||||
"offset_body": 5592,
|
||||
"offset_end": 7586
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 526,
|
||||
"offset_end": 7631
|
||||
]
|
||||
}
|
||||
+155
-59
@@ -27,42 +27,6 @@ reached the goal, and was comfortably dozing after her fatigue.
|
||||
Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "392362D8.B650789F@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 26,
|
||||
"second": 16,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -72,30 +36,162 @@ Slow but steady wins the race.
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 26,
|
||||
"second": 16,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392362D8.B650789F@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 305,
|
||||
"end": 319
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 332,
|
||||
"end": 363
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 389,
|
||||
"end": 396
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 398,
|
||||
"offset_end": 1167
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 400,
|
||||
"offset_end": 1167
|
||||
]
|
||||
}
|
||||
+358
-161
@@ -111,114 +111,263 @@ Slow but steady wins the race.
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923635B.85C58444@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------0BBC657DDC74A0B8454627FD"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 28,
|
||||
"second": 27,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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."
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 28,
|
||||
"second": 27,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923635B.85C58444@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------0BBC657DDC74A0B8454627FD"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 6292
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
{
|
||||
"start": 477,
|
||||
"end": 508
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
{
|
||||
"start": 534,
|
||||
"end": 541
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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."
|
||||
},
|
||||
"offset_header": 464,
|
||||
"offset_body": 543,
|
||||
"offset_end": 1312
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1365,
|
||||
"end": 1400
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1426,
|
||||
"end": 1435
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1455,
|
||||
"end": 1491
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1545,35 +1694,67 @@ Slow but steady wins the race.
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1352,
|
||||
"offset_body": 1493,
|
||||
"offset_end": 3311
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"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",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3364,
|
||||
"end": 3400
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3426,
|
||||
"end": 3435
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3455,
|
||||
"end": 3492
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2873,56 +3054,72 @@ Slow but steady wins the race.
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3351,
|
||||
"offset_body": 3494,
|
||||
"offset_end": 5276
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii",
|
||||
"name": "hareandtoroise.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "hareandtoroise.txt"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "hareandtoroise.txt",
|
||||
"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"
|
||||
}
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "hareandtoroise.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5329,
|
||||
"end": 5389
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5415,
|
||||
"end": 5422
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5442,
|
||||
"end": 5484
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 5316,
|
||||
"offset_body": 5486,
|
||||
"offset_end": 6250
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 6290
|
||||
]
|
||||
}
|
||||
+313
-137
@@ -96,112 +96,251 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---1463757054-952513540-958744548=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 9,
|
||||
"minute": 55,
|
||||
"second": 48,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from PINE"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190951410.8452-102000@penguin.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-952513540-958744548=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from PINE"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "This is a test message from PINE MUA.\r\n\r\n"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 9,
|
||||
"minute": 55,
|
||||
"second": 48,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190951410.8452-102000@penguin.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-952513540-958744548=:8452"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 91
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 94,
|
||||
"end": 124
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 132,
|
||||
"end": 157
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 168,
|
||||
"end": 232
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 245,
|
||||
"end": 251
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 264,
|
||||
"end": 332
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 334,
|
||||
"offset_end": 5171
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"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"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
{
|
||||
"start": 608,
|
||||
"end": 639
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "This is a test message from PINE MUA.\r\n\r\n"
|
||||
},
|
||||
"offset_header": 595,
|
||||
"offset_body": 641,
|
||||
"offset_end": 684
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 738,
|
||||
"end": 785
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 811,
|
||||
"end": 820
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 831,
|
||||
"end": 888
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_description"
|
||||
},
|
||||
{
|
||||
"start": 908,
|
||||
"end": 929
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 949,
|
||||
"end": 986
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1656,41 +1795,91 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 725,
|
||||
"offset_body": 988,
|
||||
"offset_end": 2994
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"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",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3048,
|
||||
"end": 3096
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3122,
|
||||
"end": 3131
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 3142,
|
||||
"end": 3199
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_description"
|
||||
},
|
||||
{
|
||||
"start": 3219,
|
||||
"end": 3240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3260,
|
||||
"end": 3298
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3017,23 +3206,10 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3035,
|
||||
"offset_body": 3300,
|
||||
"offset_end": 5128
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 336,
|
||||
"offset_end": 5169
|
||||
]
|
||||
}
|
||||
+367
-168
@@ -133,148 +133,338 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------C78F594988075E36AE03C243"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 8,
|
||||
"second": 29,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235EAD.E48E2160@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
2,
|
||||
3,
|
||||
4
|
||||
4,
|
||||
5
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
3,
|
||||
4
|
||||
2,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"attachments": [
|
||||
3,
|
||||
4
|
||||
4,
|
||||
5
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------D74AE2393FB01D1B284AE257"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 8,
|
||||
"second": 29,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235EAD.E48E2160@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------C78F594988075E36AE03C243"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
4,
|
||||
5
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 6608
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------D74AE2393FB01D1B284AE257"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 477,
|
||||
"end": 552
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 464,
|
||||
"offset_body": 554,
|
||||
"offset_end": 2600
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 609,
|
||||
"end": 642
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 668,
|
||||
"end": 687
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 596,
|
||||
"offset_body": 689,
|
||||
"offset_end": 1489
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
{
|
||||
"start": 1542,
|
||||
"end": 1572
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1598,
|
||||
"end": 1605
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<!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"
|
||||
},
|
||||
"offset_header": 1529,
|
||||
"offset_body": 1607,
|
||||
"offset_end": 2558
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 2655,
|
||||
"end": 2691
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 2717,
|
||||
"end": 2726
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 2746,
|
||||
"end": 2783
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1574,35 +1764,67 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 2642,
|
||||
"offset_body": 2785,
|
||||
"offset_end": 4567
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 4620,
|
||||
"end": 4655
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 4681,
|
||||
"end": 4690
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 4710,
|
||||
"end": 4746
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -2929,33 +3151,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 4607,
|
||||
"offset_body": 4748,
|
||||
"offset_end": 6566
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 6606
|
||||
]
|
||||
}
|
||||
+155
-59
@@ -33,42 +33,6 @@ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "392363E1.2AC47AB3@example.com"
|
||||
},
|
||||
"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",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 30,
|
||||
"second": 41,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -78,30 +42,162 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 30,
|
||||
"second": 41,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392363E1.2AC47AB3@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 305,
|
||||
"end": 318
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 331,
|
||||
"end": 359
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 385,
|
||||
"end": 404
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 406,
|
||||
"offset_end": 1208
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 406,
|
||||
"offset_end": 1208
|
||||
]
|
||||
}
|
||||
+146
-59
@@ -26,42 +26,6 @@ wenig aufschieben, denn auch uns f+vGM-hten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 33,
|
||||
"second": 43,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr+APY-sche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236497.12FA2A89@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -71,30 +35,153 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr+APY-sche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 33,
|
||||
"second": 43,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236497.12FA2A89@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-7"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 253
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 261,
|
||||
"end": 293
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 306,
|
||||
"end": 334
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 360,
|
||||
"end": 367
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 369,
|
||||
"offset_end": 1158
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 369,
|
||||
"offset_end": 1158
|
||||
]
|
||||
}
|
||||
+532
-244
@@ -212,166 +212,385 @@ YII=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 13,
|
||||
"second": 9,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------A1E83A41894D3755390B838A"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235FC5.276CCE00@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
3,
|
||||
6,
|
||||
7
|
||||
4,
|
||||
7,
|
||||
8
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
6,
|
||||
7
|
||||
2,
|
||||
7,
|
||||
8
|
||||
],
|
||||
"attachments": [
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7
|
||||
7,
|
||||
8
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------F03F94BA73D3B9E8C1B94D92"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 13,
|
||||
"second": 9,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235FC5.276CCE00@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------A1E83A41894D3755390B838A"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 266
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 274,
|
||||
"end": 346
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 359,
|
||||
"end": 428
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
7,
|
||||
8
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 430,
|
||||
"offset_end": 11447
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------C02FA3D0A04E95F295FB25EB"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------F03F94BA73D3B9E8C1B94D92"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 529,
|
||||
"end": 604
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 516,
|
||||
"offset_body": 606,
|
||||
"offset_end": 7265
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 661,
|
||||
"end": 694
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 720,
|
||||
"end": 739
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "[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"
|
||||
},
|
||||
"offset_header": 648,
|
||||
"offset_body": 741,
|
||||
"offset_end": 1567
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "part1.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------C02FA3D0A04E95F295FB25EB"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailEG.png"
|
||||
}
|
||||
{
|
||||
"start": 1620,
|
||||
"end": 1691
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
4,
|
||||
5,
|
||||
6
|
||||
]
|
||||
},
|
||||
"offset_header": 1607,
|
||||
"offset_body": 1693,
|
||||
"offset_end": 7221
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
{
|
||||
"start": 1748,
|
||||
"end": 1778
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1804,
|
||||
"end": 1811
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<!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"
|
||||
},
|
||||
"offset_header": 1735,
|
||||
"offset_body": 1813,
|
||||
"offset_end": 2937
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "part1.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailEG.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 2990,
|
||||
"end": 3002
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 3013,
|
||||
"end": 3053
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3079,
|
||||
"end": 3088
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3108,
|
||||
"end": 3150
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1698,36 +1917,77 @@ YII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 2977,
|
||||
"offset_body": 3152,
|
||||
"offset_end": 4970
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part2.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmail39.png"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "part2.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmail39.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5023,
|
||||
"end": 5035
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 5046,
|
||||
"end": 5086
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5112,
|
||||
"end": 5121
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5141,
|
||||
"end": 5183
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3182,35 +3442,67 @@ YII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5010,
|
||||
"offset_body": 5185,
|
||||
"offset_end": 7179
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 7320,
|
||||
"end": 7354
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 7380,
|
||||
"end": 7389
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 7409,
|
||||
"end": 7444
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4665,35 +4957,67 @@ YII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 7307,
|
||||
"offset_body": 7446,
|
||||
"offset_end": 9440
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 9493,
|
||||
"end": 9529
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 9555,
|
||||
"end": 9564
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 9584,
|
||||
"end": 9621
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5993,46 +6317,10 @@ YII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 9480,
|
||||
"offset_body": 9623,
|
||||
"offset_end": 11405
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
2,
|
||||
[
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 430,
|
||||
"offset_end": 11445
|
||||
]
|
||||
}
|
||||
+128
-59
@@ -26,42 +26,6 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
---- 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,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 18,
|
||||
"second": 3,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -71,30 +35,135 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 18,
|
||||
"second": 3,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 91
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 94,
|
||||
"end": 159
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 167,
|
||||
"end": 214
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 225,
|
||||
"end": 289
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 302,
|
||||
"end": 308
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 321,
|
||||
"end": 354
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 380,
|
||||
"end": 399
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 401,
|
||||
"offset_end": 1212
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 401,
|
||||
"offset_end": 1212
|
||||
]
|
||||
}
|
||||
+239
-102
@@ -51,110 +51,257 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------E7889DDF0F75D34163841C59"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392366A7.21929EA7@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 42,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0,
|
||||
1
|
||||
1,
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1
|
||||
1,
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": " "
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 42,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392366A7.21929EA7@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------E7889DDF0F75D34163841C59"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2587
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
{
|
||||
"start": 477,
|
||||
"end": 508
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 534,
|
||||
"end": 541
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": " "
|
||||
},
|
||||
"offset_header": 464,
|
||||
"offset_body": 543,
|
||||
"offset_end": 546
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 599,
|
||||
"end": 634
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 660,
|
||||
"end": 669
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 689,
|
||||
"end": 725
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1481,20 +1628,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2585
|
||||
"offset_header": 586,
|
||||
"offset_body": 727,
|
||||
"offset_end": 2545
|
||||
}
|
||||
]
|
||||
}
|
||||
+146
-59
@@ -17,42 +17,6 @@ A HARE one day ridiculed the short feet and slow pace of the Tortoise, who repli
|
||||
Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 24,
|
||||
"second": 11,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -62,30 +26,153 @@ Slow but steady wins the race.
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 24,
|
||||
"second": 11,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923625B.59F0C3AC@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 338
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 364,
|
||||
"end": 371
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 373,
|
||||
"offset_end": 1133
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 375,
|
||||
"offset_end": 1133
|
||||
]
|
||||
}
|
||||
+462
-206
@@ -171,131 +171,308 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------B7133A01A6B323BF00DBC9A7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236103.FFE674FC@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 18,
|
||||
"second": 27,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1,
|
||||
4,
|
||||
5
|
||||
2,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
4,
|
||||
5
|
||||
2,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"attachments": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
5,
|
||||
6
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------8E6A06810565BCAB5E1F7D97"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 18,
|
||||
"second": 27,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236103.FFE674FC@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------B7133A01A6B323BF00DBC9A7"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 277
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 285,
|
||||
"end": 331
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 344,
|
||||
"end": 413
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
5,
|
||||
6
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 415,
|
||||
"offset_end": 10135
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------8E6A06810565BCAB5E1F7D97"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39236103.1B697A54@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b><font size=+2>Die Hasen und die Frösche</font></b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 514,
|
||||
"end": 585
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 501,
|
||||
"offset_body": 587,
|
||||
"offset_end": 6127
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part1.39236103.1B697A54@example.com"
|
||||
{
|
||||
"start": 642,
|
||||
"end": 672
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailV0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
{
|
||||
"start": 698,
|
||||
"end": 705
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<!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"
|
||||
},
|
||||
"offset_header": 629,
|
||||
"offset_body": 707,
|
||||
"offset_end": 1843
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "part1.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailV0.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1896,
|
||||
"end": 1908
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 1919,
|
||||
"end": 1959
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1985,
|
||||
"end": 1994
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 2014,
|
||||
"end": 2056
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1622,36 +1799,77 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1883,
|
||||
"offset_body": 2058,
|
||||
"offset_end": 3876
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part2.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailNM.png"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "part2.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailNM.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3929,
|
||||
"end": 3941
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 3952,
|
||||
"end": 3992
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 4018,
|
||||
"end": 4027
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 4047,
|
||||
"end": 4089
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3106,35 +3324,67 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3916,
|
||||
"offset_body": 4091,
|
||||
"offset_end": 6085
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 6182,
|
||||
"end": 6218
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 6244,
|
||||
"end": 6253
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 6273,
|
||||
"end": 6310
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4434,35 +4684,67 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 6169,
|
||||
"offset_body": 6312,
|
||||
"offset_end": 8094
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 8147,
|
||||
"end": 8182
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 8208,
|
||||
"end": 8217
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 8237,
|
||||
"end": 8273
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5789,36 +6071,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 8134,
|
||||
"offset_body": 8275,
|
||||
"offset_end": 10093
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 415,
|
||||
"offset_end": 10133
|
||||
]
|
||||
}
|
||||
+146
-59
@@ -28,42 +28,6 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 41,
|
||||
"second": 7,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -73,30 +37,153 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
"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"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 41,
|
||||
"second": 7,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236653.CAA8A090@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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 277
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 285,
|
||||
"end": 332
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 345,
|
||||
"end": 378
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 404,
|
||||
"end": 423
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 425,
|
||||
"offset_end": 1231
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 425,
|
||||
"offset_end": 1231
|
||||
]
|
||||
}
|
||||
+231
-103
@@ -57,111 +57,249 @@ vAAAAABJRU5ErkJggg==
|
||||
---1463757054-170444605-958746196=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 23,
|
||||
"second": 16,
|
||||
"tz_before_gmt": true,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "PNG graphic"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\n"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 23,
|
||||
"second": 16,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-170444605-958746196=:8452"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 91
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 94,
|
||||
"end": 150
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 158,
|
||||
"end": 172
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 247
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 260,
|
||||
"end": 266
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 279,
|
||||
"end": 347
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 349,
|
||||
"offset_end": 3001
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "red ball"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
{
|
||||
"start": 623,
|
||||
"end": 654
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\n"
|
||||
},
|
||||
"offset_header": 610,
|
||||
"offset_body": 656,
|
||||
"offset_end": 658
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_description": {
|
||||
"Text": "red ball"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 712,
|
||||
"end": 759
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 785,
|
||||
"end": 794
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 805,
|
||||
"end": 862
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_description"
|
||||
},
|
||||
{
|
||||
"start": 882,
|
||||
"end": 893
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 913,
|
||||
"end": 950
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1616,20 +1754,10 @@ vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 351,
|
||||
"offset_end": 2999
|
||||
"offset_header": 699,
|
||||
"offset_body": 952,
|
||||
"offset_end": 2958
|
||||
}
|
||||
]
|
||||
}
|
||||
+237
-100
@@ -58,123 +58,260 @@ Birds of a feather flock together.
|
||||
|
||||
|
||||
---- 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,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 50,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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."
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 50,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923686C.99FB5E36@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2370
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
{
|
||||
"start": 477,
|
||||
"end": 508
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii",
|
||||
"name": "farmerandstork.txt"
|
||||
}
|
||||
{
|
||||
"start": 534,
|
||||
"end": 541
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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."
|
||||
},
|
||||
"offset_header": 464,
|
||||
"offset_body": 543,
|
||||
"offset_end": 1312
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "farmerandstork.txt",
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2368
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1365,
|
||||
"end": 1425
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1451,
|
||||
"end": 1458
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1478,
|
||||
"end": 1520
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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"
|
||||
},
|
||||
"offset_header": 1352,
|
||||
"offset_body": 1522,
|
||||
"offset_end": 2328
|
||||
}
|
||||
]
|
||||
}
|
||||
+222
-94
@@ -61,111 +61,239 @@ als wir."
|
||||
--------------9D454F23DA86BCD63FA3805F--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 22,
|
||||
"minute": 47,
|
||||
"second": 43,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------9D454F23DA86BCD63FA3805F"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392359CF.DFF4527@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 22,
|
||||
"minute": 47,
|
||||
"second": 43,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392359CF.DFF4527@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------9D454F23DA86BCD63FA3805F"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 44
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 49,
|
||||
"end": 83
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 88,
|
||||
"end": 125
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 134,
|
||||
"end": 164
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 182,
|
||||
"end": 187
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 200,
|
||||
"end": 206
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 209,
|
||||
"end": 265
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 273,
|
||||
"end": 348
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 361,
|
||||
"end": 436
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 438,
|
||||
"offset_end": 2484
|
||||
},
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 440,
|
||||
"offset_end": 2482
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 493,
|
||||
"end": 526
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 552,
|
||||
"end": 571
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 480,
|
||||
"offset_body": 573,
|
||||
"offset_end": 1373
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1426,
|
||||
"end": 1456
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1482,
|
||||
"end": 1489
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<!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"
|
||||
},
|
||||
"offset_header": 1413,
|
||||
"offset_body": 1491,
|
||||
"offset_end": 2442
|
||||
}
|
||||
]
|
||||
}
|
||||
+353
-156
@@ -137,116 +137,265 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
--------------A1FCDEE154E03D875E5D6779--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "39235E1C.1DC7EA90@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------A1FCDEE154E03D875E5D6779"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 6,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
3,
|
||||
4
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
3,
|
||||
4
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 6,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235E1C.1DC7EA90@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------A1FCDEE154E03D875E5D6779"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 7536
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
{
|
||||
"start": 477,
|
||||
"end": 510
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
{
|
||||
"start": 536,
|
||||
"end": 555
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 464,
|
||||
"offset_body": 557,
|
||||
"offset_end": 1357
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1410,
|
||||
"end": 1444
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1470,
|
||||
"end": 1479
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1499,
|
||||
"end": 1534
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1701,35 +1850,67 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1397,
|
||||
"offset_body": 1536,
|
||||
"offset_end": 3530
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3583,
|
||||
"end": 3619
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3645,
|
||||
"end": 3654
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3674,
|
||||
"end": 3711
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3029,35 +3210,67 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3570,
|
||||
"offset_body": 3713,
|
||||
"offset_end": 5495
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5548,
|
||||
"end": 5583
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5609,
|
||||
"end": 5618
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5638,
|
||||
"end": 5674
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4384,26 +4597,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5535,
|
||||
"offset_body": 5676,
|
||||
"offset_end": 7494
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 7534
|
||||
]
|
||||
}
|
||||
+238
-110
@@ -42,132 +42,260 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
---1463757054-891160829-958746372=:8452--
|
||||
|
||||
---- 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": [
|
||||
{
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
},
|
||||
{
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 26,
|
||||
"second": 12,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\n"
|
||||
}
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
},
|
||||
{
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 26,
|
||||
"second": 12,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-891160829-958746372=:8452"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 91
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 94,
|
||||
"end": 185
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 193,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 251,
|
||||
"end": 315
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 328,
|
||||
"end": 334
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 347,
|
||||
"end": 415
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 417,
|
||||
"offset_end": 2170
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFrösche.txt",
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
{
|
||||
"start": 691,
|
||||
"end": 722
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\n"
|
||||
},
|
||||
"offset_header": 678,
|
||||
"offset_body": 724,
|
||||
"offset_end": 726
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_description": {
|
||||
"Text": "Short story in German"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"name": "HasenundFrösche.txt"
|
||||
}
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "Short story in German"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\r\r\n\r\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\r\n\r\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\r\n\r\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\r\n\r\r\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 419,
|
||||
"offset_end": 2168
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 780,
|
||||
"end": 856
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 882,
|
||||
"end": 891
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 902,
|
||||
"end": 959
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_description"
|
||||
},
|
||||
{
|
||||
"start": 979,
|
||||
"end": 1003
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1023,
|
||||
"end": 1083
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 767,
|
||||
"offset_body": 1085,
|
||||
"offset_end": 2127
|
||||
}
|
||||
]
|
||||
}
|
||||
+146
-59
@@ -32,42 +32,6 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 22,
|
||||
"minute": 31,
|
||||
"second": 57,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -77,30 +41,153 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 22,
|
||||
"minute": 31,
|
||||
"second": 57,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 277
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 285,
|
||||
"end": 360
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 373,
|
||||
"end": 406
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 432,
|
||||
"end": 451
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 453,
|
||||
"offset_end": 1251
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 453,
|
||||
"offset_end": 1251
|
||||
]
|
||||
}
|
||||
+237
-100
@@ -60,123 +60,260 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------CA611088711119FBDB3473B4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392367BC.3D075C95@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 47,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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."
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 47,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392367BC.3D075C95@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------CA611088711119FBDB3473B4"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2436
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFrösche.txt",
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
{
|
||||
"start": 477,
|
||||
"end": 508
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
{
|
||||
"start": 534,
|
||||
"end": 541
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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."
|
||||
},
|
||||
"offset_header": 464,
|
||||
"offset_body": 543,
|
||||
"offset_end": 1312
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFrösche.txt",
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2434
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1365,
|
||||
"end": 1449
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1475,
|
||||
"end": 1494
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1514,
|
||||
"end": 1578
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 1352,
|
||||
"offset_body": 1580,
|
||||
"offset_end": 2394
|
||||
}
|
||||
]
|
||||
}
|
||||
+354
-157
@@ -155,116 +155,265 @@ end
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------177483472E7788F4AD46AB1A"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 44,
|
||||
"second": 12,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923670C.67D83A99@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
3,
|
||||
4
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
3,
|
||||
4
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
3,
|
||||
4
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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."
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 44,
|
||||
"second": 12,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923670C.67D83A99@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------177483472E7788F4AD46AB1A"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 45
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 50,
|
||||
"end": 84
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 89,
|
||||
"end": 126
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 135,
|
||||
"end": 165
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
{
|
||||
"start": 183,
|
||||
"end": 188
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 201,
|
||||
"end": 207
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 210,
|
||||
"end": 240
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 248,
|
||||
"end": 294
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 7718
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
{
|
||||
"start": 477,
|
||||
"end": 508
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 534,
|
||||
"end": 541
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "\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."
|
||||
},
|
||||
"offset_header": 464,
|
||||
"offset_body": 543,
|
||||
"offset_end": 1312
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1365,
|
||||
"end": 1399
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1425,
|
||||
"end": 1438
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1458,
|
||||
"end": 1493
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
98,
|
||||
101,
|
||||
103,
|
||||
@@ -2333,35 +2482,67 @@ end
|
||||
13,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1352,
|
||||
"offset_body": 1495,
|
||||
"offset_end": 3564
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3617,
|
||||
"end": 3653
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3679,
|
||||
"end": 3692
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3712,
|
||||
"end": 3749
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
98,
|
||||
101,
|
||||
103,
|
||||
@@ -4212,35 +4393,67 @@ end
|
||||
13,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3604,
|
||||
"offset_body": 3751,
|
||||
"offset_end": 5602
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"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",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5655,
|
||||
"end": 5690
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 5716,
|
||||
"end": 5729
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 5749,
|
||||
"end": 5785
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"InlineBinary": [
|
||||
98,
|
||||
101,
|
||||
103,
|
||||
@@ -6129,26 +6342,10 @@ end
|
||||
13,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5642,
|
||||
"offset_body": 5787,
|
||||
"offset_end": 7676
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 7716
|
||||
]
|
||||
}
|
||||
+131
-51
File diff suppressed because one or more lines are too long
+329
-135
@@ -109,113 +109,279 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715546120==_.REL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 39,
|
||||
"second": 36,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 39,
|
||||
"second": 36,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715546120==_.REL"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 192
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 197,
|
||||
"end": 231
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 288
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 293,
|
||||
"end": 330
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 338,
|
||||
"end": 383
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 396,
|
||||
"end": 402
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 415,
|
||||
"end": 508
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 6229
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"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",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa658b6.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa658b6.png"
|
||||
}
|
||||
{
|
||||
"start": 565,
|
||||
"end": 599
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 625,
|
||||
"end": 644
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Html": "<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"
|
||||
},
|
||||
"offset_header": 552,
|
||||
"offset_body": 646,
|
||||
"offset_end": 1887
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa658b6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa658b6.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1942,
|
||||
"end": 1975
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 1986,
|
||||
"end": 2041
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 2067,
|
||||
"end": 2076
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 2096,
|
||||
"end": 2130
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1542,38 +1708,79 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1929,
|
||||
"offset_body": 2132,
|
||||
"offset_end": 3948
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"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"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa658c0.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa658c0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa658c0.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 4003,
|
||||
"end": 4036
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 4047,
|
||||
"end": 4102
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 4128,
|
||||
"end": 4137
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 4157,
|
||||
"end": 4191
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3028,23 +3235,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3990,
|
||||
"offset_body": 4193,
|
||||
"offset_end": 6185
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 6227
|
||||
]
|
||||
}
|
||||
+474
-209
@@ -161,130 +161,316 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715515186==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 39,
|
||||
"second": 5,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
5,
|
||||
6
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715515186==_.REL",
|
||||
"type": "text/plain"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 39,
|
||||
"second": 5,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715515186==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 11,
|
||||
"end": 64
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Sender"
|
||||
},
|
||||
{
|
||||
"start": 73,
|
||||
"end": 113
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 122,
|
||||
"end": 170
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 181,
|
||||
"end": 192
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 197,
|
||||
"end": 231
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 234,
|
||||
"end": 288
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 293,
|
||||
"end": 330
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 338,
|
||||
"end": 383
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 396,
|
||||
"end": 402
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 415,
|
||||
"end": 482
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1,
|
||||
5,
|
||||
6
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 9941
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/plain",
|
||||
"boundary": "=====================_715515186==_.REL"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
{
|
||||
"start": 535,
|
||||
"end": 629
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
},
|
||||
"offset_header": 522,
|
||||
"offset_body": 631,
|
||||
"offset_end": 5945
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 686,
|
||||
"end": 721
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 747,
|
||||
"end": 766
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 673,
|
||||
"offset_body": 768,
|
||||
"offset_end": 1603
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa5e03a.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e03a.png"
|
||||
}
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e03a.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa5e03a.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 1658,
|
||||
"end": 1691
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 1702,
|
||||
"end": 1757
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 1783,
|
||||
"end": 1792
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 1812,
|
||||
"end": 1846
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -1611,38 +1797,79 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 1645,
|
||||
"offset_body": 1848,
|
||||
"offset_end": 3664
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e044.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa5e044.png"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa5e044.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e044.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 3719,
|
||||
"end": 3752
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_id"
|
||||
},
|
||||
{
|
||||
"start": 3763,
|
||||
"end": 3818
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 3844,
|
||||
"end": 3853
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 3873,
|
||||
"end": 3907
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -3097,35 +3324,67 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 3706,
|
||||
"offset_body": 3909,
|
||||
"offset_end": 5901
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 5998,
|
||||
"end": 6031
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 6057,
|
||||
"end": 6066
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 6086,
|
||||
"end": 6124
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -4452,35 +4711,67 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 5985,
|
||||
"offset_body": 6126,
|
||||
"offset_end": 7942
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": [
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 7993,
|
||||
"end": 8027
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 8053,
|
||||
"end": 8062
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
{
|
||||
"start": 8082,
|
||||
"end": 8121
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Binary": [
|
||||
137,
|
||||
80,
|
||||
78,
|
||||
@@ -5780,36 +6071,10 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
96,
|
||||
130
|
||||
]
|
||||
}
|
||||
},
|
||||
"offset_header": 7980,
|
||||
"offset_body": 8123,
|
||||
"offset_end": 9901
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 9939
|
||||
]
|
||||
}
|
||||
+131
-51
@@ -27,39 +27,6 @@ welche also wohl noch ungl
|
||||
|
||||
|
||||
---- 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,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 28,
|
||||
"second": 40,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -69,25 +36,138 @@ welche also wohl noch ungl
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 28,
|
||||
"second": 40,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 82
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 90,
|
||||
"end": 141
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 146,
|
||||
"end": 180
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 191,
|
||||
"end": 241
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 252,
|
||||
"end": 265
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 283,
|
||||
"end": 292
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 301,
|
||||
"end": 354
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 365,
|
||||
"end": 374
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 384,
|
||||
"end": 432
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 434,
|
||||
"offset_end": 1186
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 434,
|
||||
"offset_end": 1186
|
||||
]
|
||||
}
|
||||
+173
-59
@@ -32,42 +32,6 @@ einige Tiere, welche also wohl noch ungl=C3=BCcklicher sein m=C3=BCssen =
|
||||
als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 27,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
@@ -77,30 +41,180 @@ als wir."=20
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 27,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"start": 5,
|
||||
"end": 40
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "to"
|
||||
},
|
||||
{
|
||||
"start": 43,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "subject"
|
||||
},
|
||||
{
|
||||
"start": 105,
|
||||
"end": 177
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "date"
|
||||
},
|
||||
{
|
||||
"start": 182,
|
||||
"end": 216
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
{
|
||||
"start": 227,
|
||||
"end": 277
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 290,
|
||||
"end": 296
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 309,
|
||||
"end": 341
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
{
|
||||
"start": 367,
|
||||
"end": 386
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Priority"
|
||||
},
|
||||
{
|
||||
"start": 397,
|
||||
"end": 410
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MSMail-Priority"
|
||||
},
|
||||
{
|
||||
"start": 428,
|
||||
"end": 437
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
{
|
||||
"start": 446,
|
||||
"end": 499
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "Importance"
|
||||
},
|
||||
{
|
||||
"start": 510,
|
||||
"end": 519
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Other": "X-MimeOLE"
|
||||
},
|
||||
{
|
||||
"start": 529,
|
||||
"end": 577
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "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"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 579,
|
||||
"offset_end": 1440
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 579,
|
||||
"offset_end": 1440
|
||||
]
|
||||
}
|
||||
+33
-18
@@ -10,25 +10,40 @@ Content-Type: text/html
|
||||
--:foo--
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": ":foo"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [],
|
||||
"parts": [],
|
||||
"structure": {
|
||||
"List": []
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 48,
|
||||
"offset_end": 160
|
||||
"parts": [
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": ":foo"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 13,
|
||||
"end": 47
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": []
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 48,
|
||||
"offset_end": 160
|
||||
}
|
||||
]
|
||||
}
|
||||
+91
-48
@@ -10,67 +10,110 @@ Content-Type: text/plain
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"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": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 13,
|
||||
"end": 45
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 132
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "Content-Type: text/plain\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 132
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 64,
|
||||
"end": 95
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"offset_header": 51,
|
||||
"offset_body": 96,
|
||||
"offset_end": 132
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "Content-Type: text/plain\n"
|
||||
},
|
||||
"offset_header": 99,
|
||||
"offset_body": 101,
|
||||
"offset_end": 127
|
||||
},
|
||||
{
|
||||
"headers_rfc": {},
|
||||
"headers_raw": [],
|
||||
"is_encoding_problem": true,
|
||||
"body": {
|
||||
"Binary": []
|
||||
},
|
||||
"offset_header": 131,
|
||||
"offset_body": 132,
|
||||
"offset_end": 132
|
||||
}
|
||||
]
|
||||
}
|
||||
+28
-21
@@ -3,7 +3,6 @@ Content-Type: multipart/mixed; boundary="ab"
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
@@ -11,27 +10,35 @@ body
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 13,
|
||||
"end": 45
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "body\n"
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 51
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 51
|
||||
]
|
||||
}
|
||||
+88
-47
@@ -9,65 +9,106 @@ Content-Type: text/plain
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 129
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 129
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 62,
|
||||
"end": 93
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 49,
|
||||
"offset_body": 94,
|
||||
"offset_end": 129
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 111,
|
||||
"end": 123
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": true,
|
||||
"body": {
|
||||
"Text": "body\n"
|
||||
},
|
||||
"offset_header": 98,
|
||||
"offset_body": 124,
|
||||
"offset_end": 126
|
||||
}
|
||||
]
|
||||
}
|
||||
+50
-30
@@ -9,43 +9,63 @@ Content-Type: text/plain
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
0
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 131
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [],
|
||||
"is_encoding_problem": true,
|
||||
"body": {
|
||||
"Text": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
|
||||
},
|
||||
"offset_header": 48,
|
||||
"offset_body": 50,
|
||||
"offset_end": 128
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 131
|
||||
]
|
||||
}
|
||||
+89
-48
@@ -13,67 +13,108 @@ Content-Type: text/html
|
||||
body2
|
||||
--a----
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a--"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"attachments": [],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"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--"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 13,
|
||||
"end": 46
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 47,
|
||||
"offset_end": 189
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a----"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "body"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 47,
|
||||
"offset_end": 189
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 66,
|
||||
"end": 101
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 53,
|
||||
"offset_body": 102,
|
||||
"offset_end": 151
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 123,
|
||||
"end": 135
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Text": "body"
|
||||
},
|
||||
"offset_header": 110,
|
||||
"offset_body": 136,
|
||||
"offset_end": 141
|
||||
}
|
||||
]
|
||||
}
|
||||
+88
-47
@@ -9,65 +9,106 @@ Content-Type: text/plain
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"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": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 131
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "body\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 131
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 62,
|
||||
"end": 94
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 49,
|
||||
"offset_body": 95,
|
||||
"offset_end": 131
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 113,
|
||||
"end": 125
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": true,
|
||||
"body": {
|
||||
"Text": "body\n"
|
||||
},
|
||||
"offset_header": 100,
|
||||
"offset_body": 126,
|
||||
"offset_end": 127
|
||||
}
|
||||
]
|
||||
}
|
||||
+90
-50
@@ -11,68 +11,108 @@ Content-Type: text/plain
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
"text_body": [],
|
||||
"attachments": [
|
||||
1
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"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": "a"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 157
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
"body": "--a--\n\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 157
|
||||
},
|
||||
"headers_raw": [
|
||||
[
|
||||
{
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
{
|
||||
"start": 62,
|
||||
"end": 94
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
{
|
||||
"start": 107,
|
||||
"end": 112
|
||||
}
|
||||
]
|
||||
],
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"Multipart": [
|
||||
2
|
||||
]
|
||||
},
|
||||
"offset_header": 49,
|
||||
"offset_body": 117,
|
||||
"offset_end": 157
|
||||
},
|
||||
{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"headers_raw": [],
|
||||
"is_encoding_problem": true,
|
||||
"body": {
|
||||
"Text": "--a--\n\n"
|
||||
},
|
||||
"offset_header": 147,
|
||||
"offset_body": 150,
|
||||
"offset_end": 153
|
||||
}
|
||||
]
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user