Compare commits

...
6 Commits
Author SHA1 Message Date
Mauro D 715fbbab46 Lazy decoding of nested messages. 2021-12-16 15:54:18 +00:00
Mauro D 09ae0216ca Lazy decoding of nested messages. 2021-12-16 15:53:03 +00:00
Mauro D d88bc20336 Improved API. 2021-12-16 10:01:32 +00:00
Mauro D 3f99761706 Improved storage of headers. 2021-12-15 14:24:57 +00:00
Mauro D ac87792052 Improved storage of headers. 2021-12-15 14:24:28 +00:00
Mauro D 3ebe77098a Lazy HTML/text body conversion. 2021-12-14 15:23:07 +00:00
101 changed files with 12833 additions and 17510 deletions
+11
View File
@@ -1,3 +1,14 @@
mail-parser 0.4.1
================================
- Lazy parsing of nested e-mail messages.
- Support for base64/quoted-printable nested messages.
mail-parser 0.4.0
================================
- Lazy conversion to/from HTML an plain text parts.
- Improved API.
- Parts are now generics.
mail-parser 0.3.1
================================
- Support for non-standard headers.
Generated
+1 -1
View File
@@ -59,7 +59,7 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
[[package]]
name = "mail-parser"
version = "0.3.1"
version = "0.4.1"
dependencies = [
"encoding_rs",
"serde",
+1 -1
View File
@@ -1,7 +1,7 @@
[package]
name = "mail-parser"
description = "Fast and robust e-mail parsing library for Rust"
version = "0.3.1"
version = "0.4.1"
edition = "2018"
authors = [ "Stalwart Labs <hello@stalw.art>"]
license = "Apache-2.0 OR MIT"
+50 -49
View File
@@ -35,42 +35,46 @@ Performance and memory safety were two important factors while designing _mail-p
## Usage Example
```rust
let input = concat!(
"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)\n",
"To: \"Colleagues\": \"James Smythe\" <james@vandelay.com>; Friends:\n",
" jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;\n",
"Date: Sat, 20 Nov 2021 14:22:01 -0800\n",
"Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=\n",
"Content-Type: multipart/mixed; boundary=\"festivus\";\n\n",
"--festivus\n",
"Content-Type: text/html; charset=\"us-ascii\"\n",
"Content-Transfer-Encoding: base64\n\n",
"PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle\n",
"HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm\n",
"cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8\n",
"gJiN4MjYzQTs8L3A+PC9odG1sPg==\n",
"--festivus\n",
"Content-Type: message/rfc822\n\n",
"From: \"Cosmo Kramer\" <kramer@kramerica.com>\n",
"Subject: Exporting my book about coffee tables\n",
"Content-Type: multipart/mixed; boundary=\"giddyup\";\n\n",
"--giddyup\n",
"Content-Type: text/plain; charset=\"utf-16\"\n",
"Content-Transfer-Encoding: quoted-printable\n\n",
"=FF=FE=0C!5=D8\"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8\"=DD =005=D8\"=\n",
"=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =\n",
"=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8\"=\n",
"=DD5=D8=1E=DD5=D80=DD5=D8\"=DD!=00\n",
"--giddyup\n",
"Content-Type: image/gif; name*1=\"about \"; name*0=\"Book \";\n",
" name*2*=utf-8''%e2%98%95 tables.gif\n",
"Content-Transfer-Encoding: Base64\n",
"Content-Disposition: attachment\n\n",
"R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\n",
"--giddyup--\n",
"--festivus--\n",
)
.as_bytes();
let input = br#"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)
To: "Colleagues": "James Smythe" <james@vandelay.com>; Friends:
jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;
Date: Sat, 20 Nov 2021 14:22:01 -0800
Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=
Content-Type: multipart/mixed; boundary="festivus";
--festivus
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: base64
PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle
HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm
cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8
gJiN4MjYzQTs8L3A+PC9odG1sPg==
--festivus
Content-Type: message/rfc822
From: "Cosmo Kramer" <kramer@kramerica.com>
Subject: Exporting my book about coffee tables
Content-Type: multipart/mixed; boundary="giddyup";
--giddyup
Content-Type: text/plain; charset="utf-16"
Content-Transfer-Encoding: quoted-printable
=FF=FE=0C!5=D8"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8"=DD =005=D8"=
=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =
=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8"=
=DD5=D8=1E=DD5=D80=DD5=D8"=DD!=00
--giddyup
Content-Type: image/gif; name*1="about "; name*0="Book ";
name*2*=utf-8''%e2%98%95 tables.gif
Content-Transfer-Encoding: Base64
Content-Disposition: attachment
R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
--giddyup--
--festivus--
"#;
let message = Message::parse(input).unwrap();
@@ -119,9 +123,9 @@ Performance and memory safety were two important factors while designing _mail-p
"Why not both importing AND exporting? ☺"
);
// HTML and text body parts are returned conforming to RFC8621, Section 4.1.4
// HTML and text body parts are returned conforming to RFC8621, Section 4.1.4
assert_eq!(
message.get_html_body(0).unwrap().to_string(),
message.get_html_body(0).unwrap(),
concat!(
"<html><p>I was thinking about quitting the &ldquo;exporting&rdquo; to ",
"focus just on the &ldquo;importing&rdquo;,</p><p>but then I thought,",
@@ -131,7 +135,7 @@ Performance and memory safety were two important factors while designing _mail-p
// HTML parts are converted to plain text (and viceversa) when missing
assert_eq!(
message.get_text_body(0).unwrap().to_string(),
message.get_text_body(0).unwrap(),
concat!(
"I was thinking about quitting the “exporting” to focus just on the",
" “importing”,\nbut then I thought, why not do both? ☺\n"
@@ -139,10 +143,10 @@ Performance and memory safety were two important factors while designing _mail-p
);
// Supports nested messages as well as multipart/digest
let nested_message = match message.get_attachment(0).unwrap() {
MessagePart::Message(v) => v,
_ => unreachable!(),
};
let nested_message = message
.get_attachment(0)
.unwrap()
.unwrap_message();
assert_eq!(
nested_message.get_subject().unwrap(),
@@ -151,18 +155,15 @@ Performance and memory safety were two important factors while designing _mail-p
// Handles UTF-* as well as many legacy encodings
assert_eq!(
nested_message.get_text_body(0).unwrap().to_string(),
nested_message.get_text_body(0).unwrap(),
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
);
assert_eq!(
nested_message.get_html_body(0).unwrap().to_string(),
nested_message.get_html_body(0).unwrap(),
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
);
let nested_attachment = match nested_message.get_attachment(0).unwrap() {
MessagePart::Binary(v) => v,
_ => unreachable!(),
};
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
assert_eq!(nested_attachment.len(), 42);
@@ -102,7 +102,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
// HTML and text body parts are returned conforming to RFC8621, Section 4.1.4
assert_eq!(
message.get_html_body(0).unwrap().to_string(),
message.get_html_body(0).unwrap(),
concat!(
"<html><p>I was thinking about quitting the &ldquo;exporting&rdquo; to ",
"focus just on the &ldquo;importing&rdquo;,</p><p>but then I thought,",
@@ -112,7 +112,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
// HTML parts are converted to plain text (and viceversa) when missing
assert_eq!(
message.get_text_body(0).unwrap().to_string(),
message.get_text_body(0).unwrap(),
concat!(
"I was thinking about quitting the “exporting” to focus just on the",
" “importing”,\nbut then I thought, why not do both? ☺\n"
@@ -120,10 +120,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
);
// Supports nested messages as well as multipart/digest
let nested_message = match message.get_attachment(0).unwrap() {
MessagePart::Message(v) => v,
_ => unreachable!(),
};
let nested_message = message.get_attachment(0).unwrap().unwrap_message();
assert_eq!(
nested_message.get_subject().unwrap(),
@@ -132,18 +129,15 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
// Handles UTF-* as well as many legacy encodings
assert_eq!(
nested_message.get_text_body(0).unwrap().to_string(),
nested_message.get_text_body(0).unwrap(),
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
);
assert_eq!(
nested_message.get_html_body(0).unwrap().to_string(),
nested_message.get_html_body(0).unwrap(),
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
);
let nested_attachment = match nested_message.get_attachment(0).unwrap() {
MessagePart::Binary(v) => v,
_ => unreachable!(),
};
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
assert_eq!(nested_attachment.len(), 42);
+87
View File
@@ -0,0 +1,87 @@
/*
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
* file at the top-level directory of this distribution.
*
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
* option. This file may not be copied, modified, or distributed
* except according to those terms.
*/
use mail_parser::*;
fn main() {
let input = br#"From: Art Vandelay <art@vandelay.com> (Vandelay Industries)
To: "Colleagues": "James Smythe" <james@vandelay.com>; Friends:
jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;
Date: Sat, 20 Nov 2021 14:22:01 -0800
Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=
Content-Type: multipart/mixed; boundary="festivus";
--festivus
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: base64
PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle
HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm
cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8
gJiN4MjYzQTs8L3A+PC9odG1sPg==
--festivus
Content-Type: message/rfc822; name="Exporting my book about coffee tables.eml"
Content-Disposition: inline; filename="Exporting my book about coffee tables.eml"
Content-Transfer-Encoding: 7bit
From: "Cosmo Kramer" <kramer@kramerica.com>
Subject: Exporting my book about coffee tables
Content-Type: multipart/mixed; boundary="giddyup";
--giddyup
Content-Type: text/plain; charset="utf-16"
Content-Transfer-Encoding: quoted-printable
=FF=FE=0C!5=D8"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8"=DD =005=D8"=
=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =
=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8"=
=DD5=D8=1E=DD5=D80=DD5=D8"=DD!=00
--giddyup
Content-Type: image/gif; name*1="about "; name*0="Book ";
name*2*=utf-8''%e2%98%95 tables.gif
Content-Transfer-Encoding: Base64
Content-Disposition: attachment
R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
--giddyup--
--festivus--
"#;
write_attachments(&Message::parse(input).unwrap());
}
fn write_attachments(message: &Message) {
for attachment in message.get_attachments() {
match attachment {
MessagePart::Text(text) | MessagePart::Html(text) => write_part(text),
MessagePart::Binary(blob) | MessagePart::InlineBinary(blob) => write_part(blob),
MessagePart::Message(raw_message) => {
write_part(raw_message);
write_attachments(&raw_message.parse().unwrap());
}
_ => (),
}
}
}
fn write_part<'x>(part: &'x impl BodyPart<'x>) {
std::fs::write(
part.get_content_disposition()
.and_then(|cd| cd.get_attribute("filename"))
.unwrap_or_else(|| {
part.get_content_type()
.and_then(|ct| ct.get_attribute("name"))
.unwrap_or("Untitled")
}),
part.get_contents(),
)
.unwrap();
}
+284 -307
View File
File diff suppressed because it is too large Load Diff
+42 -30
View File
@@ -11,7 +11,7 @@
use std::{borrow::Cow, collections::hash_map::Entry};
use crate::{HeaderName, HeaderOffset, HeaderOffsetName, HeaderValue, Headers};
use crate::{HeaderName, HeaderOffset, HeaderOffsetName, HeaderValue, OtherHeaders, RfcHeaders};
use super::{
fields::{
@@ -29,7 +29,12 @@ pub enum HeaderParserResult<'x> {
Eof,
}
pub fn parse_headers<'x>(headers: &mut Headers<'x>, stream: &mut MessageStream<'x>) -> bool {
pub fn parse_headers<'x>(
headers_rfc: &mut RfcHeaders<'x>,
mut headers_other: Option<&mut OtherHeaders<'x>>,
mut headers_offsets: Option<&mut Vec<HeaderOffset<'x>>>,
stream: &mut MessageStream<'x>,
) -> bool {
loop {
let (bytes_read, result) = parse_header_name(&stream.data[stream.pos..]);
stream.pos += bytes_read;
@@ -40,21 +45,23 @@ pub fn parse_headers<'x>(headers: &mut Headers<'x>, stream: &mut MessageStream<'
let from_offset = stream.pos;
let value = parser(stream);
headers.offsets.push(HeaderOffset {
name: HeaderOffsetName::Rfc(name),
start: from_offset,
end: stream.pos,
});
if let Some(headers_offsets) = headers_offsets.as_mut() {
headers_offsets.push(HeaderOffset {
name: HeaderOffsetName::Rfc(name),
start: from_offset,
end: stream.pos,
});
}
if !value.is_empty() {
if is_many {
match headers.values.entry(name) {
match headers_rfc.entry(name) {
Entry::Occupied(mut e) => {
if let HeaderValue::Collection(col) = e.get_mut() {
col.push(value);
} else {
let old_value = e.remove();
headers.values.insert(
headers_rfc.insert(
name,
HeaderValue::Collection(vec![old_value, value]),
);
@@ -65,33 +72,38 @@ pub fn parse_headers<'x>(headers: &mut Headers<'x>, stream: &mut MessageStream<'
}
}
} else {
headers.values.insert(name, value);
headers_rfc.insert(name, value);
}
}
}
HeaderParserResult::Other(name) => {
let from_offset = stream.pos;
let value = parse_raw(stream);
headers.offsets.push(HeaderOffset {
name: HeaderOffsetName::Other(name.clone()),
start: from_offset,
end: stream.pos,
});
if let Some(headers_other) = headers_other.as_mut() {
let from_offset = stream.pos;
let value = parse_raw(stream);
if let Some(headers_offsets) = headers_offsets.as_mut() {
headers_offsets.push(HeaderOffset {
name: HeaderOffsetName::Other(name.clone()),
start: from_offset,
end: stream.pos,
});
}
if !value.is_empty() {
match headers.other_values.entry(name.clone()) {
Entry::Occupied(mut e) => {
if let HeaderValue::Collection(col) = e.get_mut() {
col.push(value);
} else {
let old_value = e.remove();
headers
.other_values
.insert(name, HeaderValue::Collection(vec![old_value, value]));
if !value.is_empty() {
match headers_other.entry(name.clone()) {
Entry::Occupied(mut e) => {
if let HeaderValue::Collection(col) = e.get_mut() {
col.push(value);
} else {
let old_value = e.remove();
headers_other.insert(
name,
HeaderValue::Collection(vec![old_value, value]),
);
}
}
Entry::Vacant(e) => {
e.insert(value);
}
}
Entry::Vacant(e) => {
e.insert(value);
}
}
}
+148 -240
View File
@@ -13,14 +13,11 @@ use std::borrow::Cow;
use crate::{
decoders::{
base64::decode_base64,
charsets::map::get_charset_decoder,
html::{html_to_text, text_to_html},
quoted_printable::decode_quoted_printable,
DecodeFnc, DecodeResult,
base64::decode_base64, charsets::map::get_charset_decoder,
quoted_printable::decode_quoted_printable, DecodeFnc, DecodeResult,
},
AttachmentType, BinaryPart, ContentType, HeaderName, HeaderValue, Headers, Message,
MessagePart, MessagePartId, MessageStructure, TextPart,
ContentType, HeaderName, HeaderValue, Message, MessagePart, MessagePartId, MessageStructure,
Part, RfcHeaders,
};
use super::{
@@ -117,6 +114,24 @@ fn get_mime_type(
}
}
#[inline(always)]
fn add_missing_type<'x>(
headers: &mut RfcHeaders<'x>,
c_type: Cow<'x, str>,
c_subtype: Cow<'x, str>,
) {
if headers.is_empty() {
headers.insert(
HeaderName::ContentType,
HeaderValue::ContentType(ContentType {
c_type,
c_subtype: Some(c_subtype),
attributes: None,
}),
);
}
}
#[derive(Default)]
struct MessageParserState {
mime_type: MimeType,
@@ -173,14 +188,13 @@ impl<'x> MessageStream<'x> {
impl<'x> Message<'x> {
fn new() -> Message<'x> {
Message {
headers: Headers::new(),
..Default::default()
}
}
/// Returns `false` if at least one header field was successfully parsed.
pub fn is_empty(&self) -> bool {
self.headers.is_empty()
self.headers_rfc.is_empty() && self.headers_other.is_empty()
}
/// Parses a byte slice containing the RFC5322 raw message and returns a
@@ -189,37 +203,39 @@ impl<'x> Message<'x> {
/// This function never panics, a best-effort is made to parse the message and
/// if no headers are found None is returned.
///
pub fn parse(bytes: &'x [u8]) -> Option<Message<'x>> {
let mut stream = MessageStream::new(bytes);
pub fn parse(raw_message: &'x [u8]) -> Option<Message<'x>> {
let mut stream = MessageStream::new(raw_message);
let mut message = Message::new();
let mut message_stack = Vec::new();
let mut state = MessageParserState::new();
let mut state_stack = Vec::new();
let mut mime_part_header = Headers::new();
let mut mime_part_header = RfcHeaders::new();
'outer: loop {
// Obtain reference to either the message or the MIME part's header
// Parse headers
let (is_message, header) = if let MimeType::Message = state.mime_type {
message.offset_header = stream.pos;
(true, &mut message.headers)
if !parse_headers(
&mut message.headers_rfc,
Some(&mut message.headers_other),
Some(&mut message.headers_offsets),
&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, None, None, &mut stream) {
break;
}
(false, &mut mime_part_header)
};
// Parse headers
if !parse_headers(header, &mut stream) {
break;
} else if is_message {
message.offset_body = seek_crlf_end(&stream, stream.pos);
}
state.parts += 1;
let content_type = header
.values
.get(&HeaderName::ContentType)
.and_then(|c| c.as_content_type_ref());
@@ -250,16 +266,7 @@ impl<'x> Message<'x> {
..Default::default()
};
if !is_message {
if mime_part_header.is_empty() {
mime_part_header.values.insert(
HeaderName::ContentType,
HeaderValue::ContentType(ContentType {
c_type: "text".into(),
c_subtype: Some("plain".into()),
attributes: None,
}),
);
}
add_missing_type(&mut mime_part_header, "text".into(), "plain".into());
message.parts.push(MessagePart::Multipart(std::mem::take(
&mut mime_part_header,
)));
@@ -273,42 +280,11 @@ impl<'x> Message<'x> {
is_text = true;
}
}
} else if mime_type == MimeType::Message {
let new_state = MessageParserState {
mime_type: MimeType::Message,
mime_boundary: state.mime_boundary.take(),
need_html_body: true,
need_text_body: true,
..Default::default()
};
if mime_part_header.is_empty() {
mime_part_header.values.insert(
HeaderName::ContentType,
HeaderValue::ContentType(ContentType {
c_type: "message".into(),
c_subtype: Some("rfc822".into()),
attributes: None,
}),
);
}
state
.structure
.push(MessageStructure::Part(message.parts.len()));
message.parts.push(MessagePart::Multipart(std::mem::take(
&mut mime_part_header,
)));
message_stack.push(message);
state_stack.push(state);
message = Message::new();
state = new_state;
skip_crlf(&mut stream);
continue;
}
skip_crlf(&mut stream);
let (is_binary, decode_fnc): (bool, DecodeFnc) = match header
.values
.get(&HeaderName::ContentTransferEncoding)
{
Some(HeaderValue::Text(encoding)) if encoding.eq_ignore_ascii_case("base64") => {
@@ -378,132 +354,106 @@ impl<'x> Message<'x> {
stream.pos += bytes_read;
}
let is_inline = is_inline
&& header
.values
.get(&HeaderName::ContentDisposition)
.map_or_else(|| true, |d| !d.get_content_type().is_attachment())
&& (state.parts == 1
|| (state.mime_type != MimeType::MultipartRelated
&& (mime_type == MimeType::Inline
|| content_type.map_or_else(|| true, |c| !c.has_attribute("name")))));
state
.structure
.push(MessageStructure::Part(message.parts.len()));
let (add_to_html, add_to_text) = if let MimeType::MultipartAlernative = state.mime_type
{
match mime_type {
MimeType::TextHtml => (true, false),
MimeType::TextPlain => (false, true),
_ => (false, false),
}
} else if is_inline {
if state.in_alternative && (state.need_text_body || state.need_html_body) {
match mime_type {
MimeType::TextHtml => {
state.need_text_body = false;
if mime_type != MimeType::Message {
let is_inline = is_inline
&& header
.get(&HeaderName::ContentDisposition)
.map_or_else(|| true, |d| !d.get_content_type().is_attachment())
&& (state.parts == 1
|| (state.mime_type != MimeType::MultipartRelated
&& (mime_type == MimeType::Inline
|| content_type
.map_or_else(|| true, |c| !c.has_attribute("name")))));
let (add_to_html, add_to_text) =
if let MimeType::MultipartAlernative = state.mime_type {
match mime_type {
MimeType::TextHtml => (true, false),
MimeType::TextPlain => (false, true),
_ => (false, false),
}
MimeType::TextPlain => {
state.need_html_body = false;
} else if is_inline {
if state.in_alternative && (state.need_text_body || state.need_html_body) {
match mime_type {
MimeType::TextHtml => {
state.need_text_body = false;
}
MimeType::TextPlain => {
state.need_html_body = false;
}
_ => (),
}
}
_ => (),
(state.need_html_body, state.need_text_body)
} else {
(false, false)
};
if is_text {
let is_html = mime_type == MimeType::TextHtml;
let text_part = Part {
body: result_to_string(bytes, stream.data, content_type),
headers: std::mem::take(&mut mime_part_header),
};
if add_to_html && !is_html {
message.html_body.push(message.parts.len());
} else if add_to_text && is_html {
message.text_body.push(message.parts.len());
}
}
(state.need_html_body, state.need_text_body)
} else {
(false, false)
};
if is_text {
let text_part = TextPart {
contents: result_to_string(bytes, stream.data, content_type),
headers: if !mime_part_header.is_empty() {
Some(std::mem::take(&mut mime_part_header))
if add_to_html && is_html {
message.html_body.push(message.parts.len());
} else if add_to_text && !is_html {
message.text_body.push(message.parts.len());
} else {
None
},
message.attachments.push(message.parts.len());
}
message.parts.push(if is_html {
MessagePart::Html(text_part)
} else {
MessagePart::Text(text_part)
});
} else {
if add_to_html {
message.html_body.push(message.parts.len());
}
if add_to_text {
message.text_body.push(message.parts.len());
}
message.attachments.push(message.parts.len());
let binary_part = Part::new(
std::mem::take(&mut mime_part_header),
result_to_bytes(bytes, stream.data),
);
message.parts.push(if !is_inline {
MessagePart::Binary(binary_part)
} else {
MessagePart::InlineBinary(binary_part)
});
};
let is_html = mime_type == MimeType::TextHtml;
if add_to_html && !is_html {
message.html_body.push(message.parts.len());
message.parts.push(MessagePart::Text(TextPart {
headers: None,
contents: text_to_html(&text_part.contents).into(),
}));
} else if add_to_text && is_html {
message.text_body.push(message.parts.len());
message.parts.push(MessagePart::Text(TextPart {
headers: None,
contents: html_to_text(&text_part.contents).into(),
}));
}
if add_to_html && is_html {
message.html_body.push(message.parts.len());
} else if add_to_text && !is_html {
message.text_body.push(message.parts.len());
} else {
message
.attachments
.push(AttachmentType::Attachment(message.parts.len()));
}
state
.structure
.push(MessageStructure::Part(message.parts.len()));
message.parts.push(MessagePart::Text(text_part));
} else {
if add_to_html {
message.html_body.push(message.parts.len());
}
if add_to_text {
message.text_body.push(message.parts.len());
}
message.attachments.push(if is_inline {
AttachmentType::Inline(message.parts.len())
} else {
AttachmentType::Attachment(message.parts.len())
});
state
.structure
.push(MessageStructure::Part(message.parts.len()));
message.parts.push(MessagePart::Binary(BinaryPart {
headers: if !mime_part_header.is_empty() {
Some(std::mem::take(&mut mime_part_header))
} else {
None
add_missing_type(&mut mime_part_header, "message".into(), "rfc822".into());
message.attachments.push(message.parts.len());
message.parts.push(MessagePart::Message(Part::new(
std::mem::take(&mut mime_part_header),
crate::MessageAttachment {
raw_message: result_to_bytes(bytes, stream.data),
},
contents: result_to_bytes(bytes, stream.data),
}));
};
)));
}
if state.mime_boundary.is_some() {
// Currently processing a MIME part
let mut last_part_offset = stream.pos;
'inner: loop {
if let MimeType::Message = state.mime_type {
// Finished processing nested message, restore parent message from stack
if let (Some(mut prev_message), Some(mut prev_state)) =
(message_stack.pop(), state_stack.pop())
{
message.structure = state.get_structure();
message.offset_end = seek_crlf_end(&stream, last_part_offset);
prev_message
.attachments
.push(AttachmentType::Attachment(prev_message.parts.len()));
prev_message.parts.push(MessagePart::Message(message));
message = prev_message;
prev_state.mime_boundary = state.mime_boundary;
state = prev_state;
} else {
debug_assert!(false, "Failed to restore parent message. Aborting.");
break 'outer;
}
}
if skip_multipart_end(&mut stream) {
// End of MIME part reached
@@ -515,24 +465,8 @@ impl<'x> Message<'x> {
if state.text_parts == message.text_body.len()
&& state.html_parts != message.html_body.len()
{
for part_id in message.html_body[state.html_parts..].iter() {
message.text_body.push(
match message.parts.get(*part_id).unwrap() {
MessagePart::Text(text) => {
let part_id = message.parts.len();
let text = MessagePart::Text(TextPart {
headers: None,
contents: html_to_text(&text.contents).into(),
});
message.parts.push(text);
part_id
}
MessagePart::Binary(_) => *part_id,
_ => {
panic!("Unexpected part type");
}
},
);
for &part_id in &message.html_body[state.html_parts..] {
message.text_body.push(part_id);
}
}
@@ -540,24 +474,8 @@ impl<'x> Message<'x> {
if state.html_parts == message.html_body.len()
&& state.text_parts != message.text_body.len()
{
for part_id in message.text_body[state.html_parts..].iter() {
message.html_body.push(
match message.parts.get(*part_id).unwrap() {
MessagePart::Text(text) => {
let part_id = message.parts.len();
let text = MessagePart::Text(TextPart {
headers: None,
contents: text_to_html(&text.contents).into(),
});
message.parts.push(text);
part_id
}
MessagePart::Binary(_) => *part_id,
_ => {
panic!("Unexpected part type");
}
},
);
for &part_id in &message.text_body[state.html_parts..] {
message.html_body.push(part_id);
}
}
}
@@ -568,7 +486,6 @@ impl<'x> Message<'x> {
// 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.
@@ -589,21 +506,6 @@ impl<'x> Message<'x> {
}
}
while let (Some(mut prev_message), Some(prev_state)) =
(message_stack.pop(), state_stack.pop())
{
message.offset_end = stream.pos;
if !message.is_empty() {
message.structure = state.get_structure();
prev_message
.attachments
.push(AttachmentType::Attachment(prev_message.parts.len()));
prev_message.parts.push(MessagePart::Message(message));
}
message = prev_message;
state = prev_state;
}
message.structure = state.get_structure();
message.offset_end = stream.pos;
@@ -618,6 +520,8 @@ impl<'x> Message<'x> {
mod tests {
use std::{fs, path::PathBuf};
use serde_json::Value;
use crate::parsers::message::Message;
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----\n".as_bytes();
@@ -654,13 +558,17 @@ mod tests {
let input = input.split_at_mut(pos);
let message = Message::parse(input.0).unwrap();
let json_message = serde_json::to_string_pretty(&message).unwrap();
assert_eq!(
message,
serde_json::from_slice::<Message>(&input.1[SEPARATOR.len()..]).unwrap(),
serde_json::from_str::<Value>(&json_message).unwrap(),
serde_json::from_str::<Value>(
std::str::from_utf8(&input.1[SEPARATOR.len()..]).unwrap()
)
.unwrap(),
"Test failed for '{}', result was:\n{}",
file_name.display(),
serde_json::to_string_pretty(&message).unwrap()
json_message
);
}
}
@@ -677,8 +585,8 @@ mod tests {
fn message_to_yaml() {
let mut file_name = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
file_name.push("tests");
file_name.push("legacy");
file_name.push("000.txt");
file_name.push("rfc");
file_name.push("003.txt");
let mut input = fs::read(&file_name).unwrap();
let mut pos = 0;
@@ -696,13 +604,13 @@ mod tests {
file_name.display()
);
let input = input.split_at_mut(pos);
let message = Message::parse(input.0).unwrap();
let result = serde_json::to_string_pretty(&message).unwrap(); //serde_yaml::to_string(&message).unwrap();
let input = input.split_at_mut(pos).0;
let message = Message::parse(input).unwrap();
let result = serde_yaml::to_string(&message).unwrap();
//fs::write("test.yaml", &result).unwrap();
fs::write("test.yaml", &result).unwrap();
println!("{}", result);
println!("{:}", result);
}
#[test]
+6 -12
View File
@@ -98,7 +98,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
"Why not both importing AND exporting? ☺"
);
assert_eq!(
message.get_html_body(0).unwrap().to_string(),
message.get_html_body(0).unwrap(),
concat!(
"<html><p>I was thinking about quitting the &ldquo;exporting&rdquo; to ",
"focus just on the &ldquo;importing&rdquo;,</p><p>but then I thought,",
@@ -106,32 +106,26 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
)
);
assert_eq!(
message.get_text_body(0).unwrap().to_string(),
message.get_text_body(0).unwrap(),
concat!(
"I was thinking about quitting the “exporting” to focus just on the",
" “importing”,\nbut then I thought, why not do both? ☺\n"
)
);
let nested_message = match message.get_attachment(0).unwrap() {
MessagePart::Message(v) => v,
_ => unreachable!(),
};
let nested_message = message.get_attachment(0).unwrap().unwrap_message();
assert_eq!(
nested_message.get_subject().unwrap(),
"Exporting my book about coffee tables"
);
assert_eq!(
nested_message.get_text_body(0).unwrap().to_string(),
nested_message.get_text_body(0).unwrap(),
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
);
assert_eq!(
nested_message.get_html_body(0).unwrap().to_string(),
nested_message.get_html_body(0).unwrap(),
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
);
let nested_attachment = match nested_message.get_attachment(0).unwrap() {
MessagePart::Binary(v) => v,
_ => unreachable!(),
};
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
assert_eq!(nested_attachment.len(), 42);
assert_eq!(
nested_attachment
+169 -173
View File
@@ -44,190 +44,186 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "redball.png"
}
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 35,
"second": 5,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
"headers_rfc": {
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "redball.png"
}
}
},
"other_values": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"Importance": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MSMail-Priority": {
"Text": "Normal"
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 35,
"second": 5,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 291
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 317,
"end": 326
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 346,
"end": 385
},
{
"name": {
"Other": "X-Priority"
},
"start": 396,
"end": 409
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 427,
"end": 436
},
{
"name": {
"Other": "X-Mailer"
},
"start": 445,
"end": 498
},
{
"name": {
"Other": "Importance"
},
"start": 509,
"end": 518
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 528,
"end": 576
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
]
},
"attachments": [
{
"Attachment": 0
}
},
"headers_other": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 291
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 317,
"end": 326
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 346,
"end": 385
},
{
"name": {
"Other": "X-Priority"
},
"start": 396,
"end": 409
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 427,
"end": 436
},
{
"name": {
"Other": "X-Mailer"
},
"start": 445,
"end": 498
},
{
"name": {
"Other": "Importance"
},
"start": 509,
"end": 518
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 528,
"end": 576
}
],
"attachments": [
0
],
"parts": [
{
"Binary": {
"contents": [
"body": [
137,
80,
78,
+160 -167
View File
@@ -35,192 +35,185 @@ m+APw-ssen als wir.+ACI-=20
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 18,
"second": 39,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"to": {
"AddressList": [
{
"name": "Joe Blow",
"address": "jblow@example.com"
},
{
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"AddressList": [
{
"name": "Joe Blow",
"address": "jblow@example.com"
},
{
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
]
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-7"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
]
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-7"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 18,
"second": 39,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 39
},
{
"name": {
"Rfc": "to"
},
"start": 42,
"end": 146
},
{
"name": {
"Rfc": "subject"
},
"start": 154,
"end": 224
},
{
"name": {
"Rfc": "date"
},
"start": 229,
"end": 262
},
{
"name": {
"Rfc": "message_id"
},
"start": 273,
"end": 322
},
{
"name": {
"Rfc": "mime_version"
},
"start": 335,
"end": 340
},
{
"name": {
"Rfc": "content_type"
},
"start": 353,
"end": 383
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 409,
"end": 427
},
{
"name": {
"Other": "X-Priority"
},
"start": 438,
"end": 450
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 468,
"end": 476
},
{
"name": {
"Other": "X-Mailer"
},
"start": 485,
"end": 537
},
{
"name": {
"Other": "Importance"
},
"start": 548,
"end": 556
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 566,
"end": 613
}
]
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 39
},
{
"name": {
"Rfc": "to"
},
"start": 42,
"end": 146
},
{
"name": {
"Rfc": "subject"
},
"start": 154,
"end": 224
},
{
"name": {
"Rfc": "date"
},
"start": 229,
"end": 262
},
{
"name": {
"Rfc": "message_id"
},
"start": 273,
"end": 322
},
{
"name": {
"Rfc": "mime_version"
},
"start": 335,
"end": 340
},
{
"name": {
"Rfc": "content_type"
},
"start": 353,
"end": 383
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 409,
"end": 427
},
{
"name": {
"Other": "X-Priority"
},
"start": 438,
"end": 450
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 468,
"end": 476
},
{
"name": {
"Other": "X-Mailer"
},
"start": 485,
"end": 537
},
{
"name": {
"Other": "Importance"
},
"start": 548,
"end": 556
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 566,
"end": 613
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 614,
+136 -143
View File
@@ -37,166 +37,159 @@ wir.&quot; <br>
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 31,
"second": 0,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"other_values": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "2 (High)"
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 290
},
{
"name": {
"Rfc": "from"
},
"start": 295,
"end": 332
},
{
"name": {
"Rfc": "subject"
},
"start": 340,
"end": 387
},
{
"name": {
"Rfc": "mime_version"
},
"start": 400,
"end": 406
},
{
"name": {
"Rfc": "content_type"
},
"start": 419,
"end": 453
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 479,
"end": 498
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"message_id": {
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
]
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 31,
"second": 0,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 290
},
{
"name": {
"Rfc": "from"
},
"start": 295,
"end": 332
},
{
"name": {
"Rfc": "subject"
},
"start": 340,
"end": 387
},
{
"name": {
"Rfc": "mime_version"
},
"start": 400,
"end": 406
},
{
"name": {
"Rfc": "content_type"
},
"start": 419,
"end": 453
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 479,
"end": 498
}
],
"html_body": [
1
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
}
},
{
"Text": {
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <br>\n<br>\n</font></html>\n\n"
"Html": {
"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; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <br>\n<br>\n</font></html>\n\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 500,
+145 -183
View File
@@ -64,136 +64,134 @@ wir.&quot; <br>
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
},
"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": "alternative",
"attributes": {
"boundary": "=====================_714967308==_.ALT"
}
}
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
"headers_rfc": {
"subject": {
"Text": "Die Hasen und die Frösche"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 29,
"second": 55,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"other_values": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "2 (High)"
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 290
},
{
"name": {
"Rfc": "from"
},
"start": 295,
"end": 332
},
{
"name": {
"Rfc": "subject"
},
"start": 340,
"end": 387
},
{
"name": {
"Rfc": "mime_version"
},
"start": 400,
"end": 406
},
{
"name": {
"Rfc": "content_type"
},
"start": 419,
"end": 496
"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"
}
}
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 290
},
{
"name": {
"Rfc": "from"
},
"start": 295,
"end": 332
},
{
"name": {
"Rfc": "subject"
},
"start": 340,
"end": 387
},
{
"name": {
"Rfc": "mime_version"
},
"start": 400,
"end": 406
},
{
"name": {
"Rfc": "content_type"
},
"start": 419,
"end": 496
}
],
"html_body": [
1
],
@@ -204,75 +202,39 @@ wir.&quot; <br>
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 553,
"end": 588
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 614,
"end": 633
}
]
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1501,
"end": 1535
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1561,
"end": 1580
}
]
}
},
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <br>\n<br>\n</font></html>\n"
"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; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <br>\n<br>\n</font></html>\n"
}
}
],
+125 -132
View File
@@ -19,156 +19,149 @@ Slow but steady wins the race.
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"subject": {
"Text": "The Hare and the Tortoise"
},
"mime_version": {
"Text": "1.0"
"headers_rfc": {
"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
}
},
"other_values": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "5 (Lowest)"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 194
},
{
"name": {
"Rfc": "date"
},
"start": 199,
"end": 233
},
{
"name": {
"Rfc": "to"
},
"start": 236,
"end": 266
},
{
"name": {
"Rfc": "from"
},
"start": 271,
"end": 308
},
{
"name": {
"Rfc": "subject"
},
"start": 316,
"end": 344
},
{
"name": {
"Rfc": "mime_version"
},
"start": 357,
"end": 363
},
{
"name": {
"Rfc": "content_type"
},
"start": 376,
"end": 409
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
]
},
"message_id": {
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
}
},
"headers_other": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "5 (Lowest)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 194
},
{
"name": {
"Rfc": "date"
},
"start": 199,
"end": 233
},
{
"name": {
"Rfc": "to"
},
"start": 236,
"end": 266
},
{
"name": {
"Rfc": "from"
},
"start": 271,
"end": 308
},
{
"name": {
"Rfc": "subject"
},
"start": 316,
"end": 344
},
{
"name": {
"Rfc": "mime_version"
},
"start": 357,
"end": 363
},
{
"name": {
"Rfc": "content_type"
},
"start": 376,
"end": 409
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race. <br/><br/></body></html>"
}
},
{
"Text": {
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r\n"
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 413,
+157 -164
View File
@@ -33,186 +33,179 @@ m+APw-ssen als wir.+ACI-=20
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 20,
"second": 24,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-7"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"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
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-7"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 96
},
{
"name": {
"Rfc": "subject"
},
"start": 104,
"end": 175
},
{
"name": {
"Rfc": "date"
},
"start": 180,
"end": 214
},
{
"name": {
"Rfc": "message_id"
},
"start": 225,
"end": 275
},
{
"name": {
"Rfc": "mime_version"
},
"start": 288,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 339
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 365,
"end": 384
},
{
"name": {
"Other": "X-Priority"
},
"start": 395,
"end": 408
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 426,
"end": 435
},
{
"name": {
"Other": "X-Mailer"
},
"start": 444,
"end": 497
},
{
"name": {
"Other": "Importance"
},
"start": 508,
"end": 517
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 527,
"end": 575
}
]
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
}
},
"headers_other": {
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 96
},
{
"name": {
"Rfc": "subject"
},
"start": 104,
"end": 175
},
{
"name": {
"Rfc": "date"
},
"start": 180,
"end": 214
},
{
"name": {
"Rfc": "message_id"
},
"start": 225,
"end": 275
},
{
"name": {
"Rfc": "mime_version"
},
"start": 288,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 339
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 365,
"end": 384
},
{
"name": {
"Other": "X-Priority"
},
"start": 395,
"end": 408
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 426,
"end": 435
},
{
"name": {
"Other": "X-Mailer"
},
"start": 444,
"end": 497
},
{
"name": {
"Other": "Importance"
},
"start": 508,
"end": 517
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 527,
"end": 575
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 577,
+179 -235
View File
@@ -84,215 +84,184 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 36,
"second": 13,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
}
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
"headers_rfc": {
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"other_values": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 331
},
{
"name": {
"Other": "X-Priority"
},
"start": 342,
"end": 355
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 373,
"end": 382
},
{
"name": {
"Other": "X-Mailer"
},
"start": 391,
"end": 444
},
{
"name": {
"Other": "Importance"
},
"start": 455,
"end": 464
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 474,
"end": 522
}
]
},
"attachments": [
{
"Attachment": 0
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
},
{
"Attachment": 1
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 36,
"second": 13,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
}
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 331
},
{
"name": {
"Other": "X-Priority"
},
"start": 342,
"end": 355
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 373,
"end": 382
},
{
"name": {
"Other": "X-Mailer"
},
"start": 391,
"end": 444
},
{
"name": {
"Other": "Importance"
},
"start": 455,
"end": 464
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 474,
"end": 522
}
],
"attachments": [
0,
1
],
"parts": [
{
"Binary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 630,
"end": 665
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 691,
"end": 700
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 720,
"end": 760
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1624,53 +1593,28 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
},
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 2638,
"end": 2672
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 2698,
"end": 2707
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 2727,
"end": 2766
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
+155 -162
View File
@@ -32,186 +32,179 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"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
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
"headers_rfc": {
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"other_values": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 112
},
{
"name": {
"Rfc": "subject"
},
"start": 120,
"end": 194
},
{
"name": {
"Rfc": "date"
},
"start": 199,
"end": 233
},
{
"name": {
"Rfc": "message_id"
},
"start": 244,
"end": 294
},
{
"name": {
"Rfc": "mime_version"
},
"start": 307,
"end": 313
},
{
"name": {
"Rfc": "content_type"
},
"start": 326,
"end": 363
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 389,
"end": 408
},
{
"name": {
"Other": "X-Priority"
},
"start": 419,
"end": 432
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 450,
"end": 459
},
{
"name": {
"Other": "X-Mailer"
},
"start": 468,
"end": 521
},
{
"name": {
"Other": "Importance"
},
"start": 532,
"end": 541
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 551,
"end": 599
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 15,
"second": 35,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"Importance": {
"Text": "Normal"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 112
},
{
"name": {
"Rfc": "subject"
},
"start": 120,
"end": 194
},
{
"name": {
"Rfc": "date"
},
"start": 199,
"end": 233
},
{
"name": {
"Rfc": "message_id"
},
"start": 244,
"end": 294
},
{
"name": {
"Rfc": "mime_version"
},
"start": 307,
"end": 313
},
{
"name": {
"Rfc": "content_type"
},
"start": 326,
"end": 363
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 389,
"end": 408
},
{
"name": {
"Other": "X-Priority"
},
"start": 419,
"end": 432
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 450,
"end": 459
},
{
"name": {
"Other": "X-Mailer"
},
"start": 468,
"end": 521
},
{
"name": {
"Other": "Importance"
},
"start": 532,
"end": 541
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 551,
"end": 599
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 601,
+210 -316
View File
@@ -136,266 +136,210 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
},
"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"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"mime_version": {
"Text": "1.0"
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"other_values": {
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 99
},
{
"name": {
"Rfc": "subject"
},
"start": 107,
"end": 148
},
{
"name": {
"Rfc": "date"
},
"start": 153,
"end": 187
},
{
"name": {
"Rfc": "message_id"
},
"start": 198,
"end": 248
},
{
"name": {
"Rfc": "mime_version"
},
"start": 261,
"end": 267
},
{
"name": {
"Rfc": "content_type"
},
"start": 280,
"end": 354
},
{
"name": {
"Other": "X-Priority"
},
"start": 365,
"end": 378
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 396,
"end": 405
},
{
"name": {
"Other": "X-Mailer"
},
"start": 414,
"end": 467
},
{
"name": {
"Other": "Importance"
},
"start": 478,
"end": 487
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 497,
"end": 545
"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"
}
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 99
},
{
"name": {
"Rfc": "subject"
},
"start": 107,
"end": 148
},
{
"name": {
"Rfc": "date"
},
"start": 153,
"end": 187
},
{
"name": {
"Rfc": "message_id"
},
"start": 198,
"end": 248
},
{
"name": {
"Rfc": "mime_version"
},
"start": 261,
"end": 267
},
{
"name": {
"Rfc": "content_type"
},
"start": 280,
"end": 354
},
{
"name": {
"Other": "X-Priority"
},
"start": 365,
"end": 378
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 396,
"end": 405
},
{
"name": {
"Other": "X-Mailer"
},
"start": 414,
"end": 467
},
{
"name": {
"Other": "Importance"
},
"start": 478,
"end": 487
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 497,
"end": 545
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 3
},
{
"Attachment": 4
}
1,
2,
3
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race. <br/></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 653,
"end": 690
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 716,
"end": 735
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n"
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n"
}
},
{
"Binary": {
"headers": {
"values": {
"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_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1596,
"end": 1631
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1657,
"end": 1666
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1686,
"end": 1726
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1727,53 +1671,28 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3604,
"end": 3640
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3666,
"end": 3675
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3695,
"end": 3736
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3078,53 +2997,28 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "redball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5576,
"end": 5610
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5636,
"end": 5645
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5665,
"end": 5704
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "redball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -4584,6 +4478,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
@@ -4592,9 +4489,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
},
{
"Part": 3
},
{
"Part": 4
}
]
},
+145 -152
View File
@@ -37,177 +37,170 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"message_id": {
"Text": "4.2.0.58.20000519010441.00a8d140@pop.example.com"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
"headers_rfc": {
"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"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1",
"format": "flowed"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
}
},
"other_values": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"Disposition-Notification-To": {
"Text": "<dwsauder@example.com>"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "1 (Highest)"
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "Disposition-Notification-To"
},
"start": 141,
"end": 166
},
{
"name": {
"Other": "X-Mailer"
},
"start": 175,
"end": 223
},
{
"name": {
"Other": "X-Priority"
},
"start": 234,
"end": 248
},
{
"name": {
"Rfc": "date"
},
"start": 253,
"end": 287
},
{
"name": {
"Rfc": "to"
},
"start": 290,
"end": 373
},
{
"name": {
"Rfc": "from"
},
"start": 378,
"end": 415
},
{
"name": {
"Rfc": "subject"
},
"start": 423,
"end": 468
},
{
"name": {
"Rfc": "mime_version"
},
"start": 481,
"end": 487
},
{
"name": {
"Rfc": "content_type"
},
"start": 500,
"end": 550
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 576,
"end": 595
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 1,
"minute": 6,
"second": 18,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
}
},
"headers_other": {
"Disposition-Notification-To": {
"Text": "<dwsauder@example.com>"
},
"X-Priority": {
"Text": "1 (Highest)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "Disposition-Notification-To"
},
"start": 141,
"end": 166
},
{
"name": {
"Other": "X-Mailer"
},
"start": 175,
"end": 223
},
{
"name": {
"Other": "X-Priority"
},
"start": 234,
"end": 248
},
{
"name": {
"Rfc": "date"
},
"start": 253,
"end": 287
},
{
"name": {
"Rfc": "to"
},
"start": 290,
"end": 373
},
{
"name": {
"Rfc": "from"
},
"start": 378,
"end": 415
},
{
"name": {
"Rfc": "subject"
},
"start": 423,
"end": 468
},
{
"name": {
"Rfc": "mime_version"
},
"start": 481,
"end": 487
},
{
"name": {
"Rfc": "content_type"
},
"start": 500,
"end": 550
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 576,
"end": 595
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein <br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, <br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der <br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; <br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte <br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste <br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein <br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, <br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein \nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, \nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der \nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; \nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte \neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste \nuntertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein \nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, \nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein \nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, \nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der \nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; \nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte \neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste \nuntertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein \nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, \nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 597,
+135 -142
View File
@@ -22,166 +22,159 @@ In einem nahen Teich wollten sie sich nun ers
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 1,
"minute": 10,
"second": 27,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Fr�sche"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Heinz M�ller",
"address": "mueller@example.com"
}
},
"message_id": {
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
},
"content_transfer_encoding": {
"Text": "8bit"
"headers_rfc": {
"content_transfer_encoding": {
"Text": "8bit"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 1,
"minute": 10,
"second": 27,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"other_values": {
"X-Priority": {
"Text": "1 (Highest)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
"message_id": {
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
},
"subject": {
"Text": "Die Hasen und die Fr�sche"
},
"to": {
"Address": {
"name": "Heinz M�ller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 195
},
{
"name": {
"Rfc": "date"
},
"start": 200,
"end": 234
},
{
"name": {
"Rfc": "to"
},
"start": 237,
"end": 274
},
{
"name": {
"Rfc": "from"
},
"start": 279,
"end": 316
},
{
"name": {
"Rfc": "subject"
},
"start": 324,
"end": 352
},
{
"name": {
"Rfc": "mime_version"
},
"start": 365,
"end": 371
},
{
"name": {
"Rfc": "content_type"
},
"start": 384,
"end": 419
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 445,
"end": 452
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
]
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "1 (Highest)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 195
},
{
"name": {
"Rfc": "date"
},
"start": 200,
"end": 234
},
{
"name": {
"Rfc": "to"
},
"start": 237,
"end": 274
},
{
"name": {
"Rfc": "from"
},
"start": 279,
"end": 316
},
{
"name": {
"Rfc": "subject"
},
"start": 324,
"end": 352
},
{
"name": {
"Rfc": "mime_version"
},
"start": 365,
"end": 371
},
{
"name": {
"Rfc": "content_type"
},
"start": 384,
"end": 419
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 445,
"end": 452
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n\r\n\r\n"
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n\r\n\r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 454,
+125 -132
View File
@@ -30,156 +30,149 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"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"
}
},
"message_id": {
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
"headers_rfc": {
"subject": {
"Text": "Die Hasen und die Frösche"
},
"message_id": {
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"other_values": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 299
},
{
"name": {
"Rfc": "from"
},
"start": 304,
"end": 341
},
{
"name": {
"Rfc": "subject"
},
"start": 349,
"end": 396
},
{
"name": {
"Rfc": "mime_version"
},
"start": 409,
"end": 415
},
{
"name": {
"Rfc": "content_type"
},
"start": 428,
"end": 463
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 489,
"end": 508
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
]
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 17,
"second": 39,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_other": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 299
},
{
"name": {
"Rfc": "from"
},
"start": 304,
"end": 341
},
{
"name": {
"Rfc": "subject"
},
"start": 349,
"end": 396
},
{
"name": {
"Rfc": "mime_version"
},
"start": 409,
"end": 415
},
{
"name": {
"Rfc": "content_type"
},
"start": 428,
"end": 463
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 489,
"end": 508
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 510,
+155 -162
View File
@@ -31,186 +31,179 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "Windows-1252"
}
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@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
}
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
"headers_rfc": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 30,
"second": 20,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "Windows-1252"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
}
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 101
},
{
"name": {
"Rfc": "subject"
},
"start": 109,
"end": 185
},
{
"name": {
"Rfc": "date"
},
"start": 190,
"end": 224
},
{
"name": {
"Rfc": "message_id"
},
"start": 235,
"end": 285
},
{
"name": {
"Rfc": "mime_version"
},
"start": 298,
"end": 304
},
{
"name": {
"Rfc": "content_type"
},
"start": 317,
"end": 356
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 382,
"end": 401
},
{
"name": {
"Other": "X-Priority"
},
"start": 412,
"end": 425
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 443,
"end": 452
},
{
"name": {
"Other": "X-Mailer"
},
"start": 461,
"end": 514
},
{
"name": {
"Other": "Importance"
},
"start": 525,
"end": 534
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 544,
"end": 592
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
]
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 101
},
{
"name": {
"Rfc": "subject"
},
"start": 109,
"end": 185
},
{
"name": {
"Rfc": "date"
},
"start": 190,
"end": 224
},
{
"name": {
"Rfc": "message_id"
},
"start": 235,
"end": 285
},
{
"name": {
"Rfc": "mime_version"
},
"start": 298,
"end": 304
},
{
"name": {
"Rfc": "content_type"
},
"start": 317,
"end": 356
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 382,
"end": 401
},
{
"name": {
"Other": "X-Priority"
},
"start": 412,
"end": 425
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 443,
"end": 452
},
{
"name": {
"Other": "X-Mailer"
},
"start": 461,
"end": 514
},
{
"name": {
"Other": "Importance"
},
"start": 525,
"end": 534
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 544,
"end": 592
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 594,
+154 -161
View File
@@ -32,186 +32,179 @@ welche also wohl noch ungl
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 13,
"second": 51,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"content_transfer_encoding": {
"Text": "8bit"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"other_values": {
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 112
},
{
"name": {
"Rfc": "subject"
},
"start": 120,
"end": 194
},
{
"name": {
"Rfc": "date"
},
"start": 199,
"end": 233
},
{
"name": {
"Rfc": "message_id"
},
"start": 244,
"end": 294
},
{
"name": {
"Rfc": "mime_version"
},
"start": 307,
"end": 313
},
{
"name": {
"Rfc": "content_type"
},
"start": 326,
"end": 363
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 389,
"end": 396
},
{
"name": {
"Other": "X-Priority"
},
"start": 407,
"end": 420
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 438,
"end": 447
},
{
"name": {
"Other": "X-Mailer"
},
"start": 456,
"end": 509
},
{
"name": {
"Other": "Importance"
},
"start": 520,
"end": 529
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 539,
"end": 587
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
]
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "8bit"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 13,
"second": 51,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_other": {
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 112
},
{
"name": {
"Rfc": "subject"
},
"start": 120,
"end": 194
},
{
"name": {
"Rfc": "date"
},
"start": 199,
"end": 233
},
{
"name": {
"Rfc": "message_id"
},
"start": 244,
"end": 294
},
{
"name": {
"Rfc": "mime_version"
},
"start": 307,
"end": 313
},
{
"name": {
"Rfc": "content_type"
},
"start": 326,
"end": 363
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 389,
"end": 396
},
{
"name": {
"Other": "X-Priority"
},
"start": 407,
"end": 420
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 438,
"end": 447
},
{
"name": {
"Other": "X-Mailer"
},
"start": 456,
"end": 509
},
{
"name": {
"Other": "Importance"
},
"start": 520,
"end": 529
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 539,
"end": 587
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod<br/>selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte<br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 589,
+163 -201
View File
@@ -73,156 +73,154 @@ race.&nbsp;=20
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"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"
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
},
"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
}
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"other_values": {
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@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
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 337
},
{
"name": {
"Other": "X-Priority"
},
"start": 348,
"end": 361
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 379,
"end": 388
},
{
"name": {
"Other": "X-Mailer"
},
"start": 397,
"end": 450
},
{
"name": {
"Other": "Importance"
},
"start": 461,
"end": 470
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 480,
"end": 528
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
]
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
}
}
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 337
},
{
"name": {
"Other": "X-Priority"
},
"start": 348,
"end": 361
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 379,
"end": 388
},
{
"name": {
"Other": "X-Mailer"
},
"start": 397,
"end": 450
},
{
"name": {
"Other": "Importance"
},
"start": 461,
"end": 470
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 480,
"end": 528
}
],
"html_body": [
1
],
@@ -233,75 +231,39 @@ race.&nbsp;=20
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 636,
"end": 673
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 699,
"end": 718
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
"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"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1581,
"end": 1617
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1643,
"end": 1662
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR>&nbsp;<BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:&nbsp; \"Though you be swift as the wind, I will beat you in a \nrace.\"&nbsp; 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.&nbsp; On the day appointed for the race the two started \ntogether.&nbsp; The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.&nbsp; The Hare, lying down by \nthe wayside, fell fast asleep.&nbsp; 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.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the race.&nbsp; \n<BR></FONT></DIV></BODY></HTML>\n"
"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>&nbsp;<BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:&nbsp; \"Though you be swift as the wind, I will beat you in a \nrace.\"&nbsp; 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.&nbsp; On the day appointed for the race the two started \ntogether.&nbsp; The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.&nbsp; The Hare, lying down by \nthe wayside, fell fast asleep.&nbsp; 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.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the race.&nbsp; \n<BR></FONT></DIV></BODY></HTML>\n"
}
}
],
+240 -422
View File
@@ -199,136 +199,134 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_715392540==_"
}
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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"
},
"subject": {
"Text": "Die Hasen und die Frösche"
"headers_rfc": {
"message_id": {
"Text": "4.2.0.58.20000519003556.00a918e0@pop.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
}
},
"other_values": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 482
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
]
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_715392540==_"
}
}
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 482
}
],
"html_body": [
3
],
@@ -336,203 +334,105 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
2
],
"attachments": [
{
"Attachment": 4
},
{
"Attachment": 5
},
{
"Attachment": 6
},
{
"Attachment": 7
}
4,
5,
6,
7
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "multipart/alternative",
"boundary": "=====================_715392540==_.REL"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "multipart/alternative",
"boundary": "=====================_715392540==_.REL"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 535,
"end": 640
}
]
}
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "=====================_715392550==_.ALT"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"boundary": "=====================_715392550==_.ALT"
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 697,
"end": 774
}
]
"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"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 831,
"end": 866
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 892,
"end": 911
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa3ed95.png2aa3edd1.png"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1803,
"end": 1837
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1863,
"end": 1882
}
]
},
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <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"
"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; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.2\" width=27 height=27 alt=\"2aa3ed95.png\"><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.3\" width=27 height=27 alt=\"2aa3edd1.png\"></html>\n"
}
},
{
"Binary": {
"headers": {
"values": {
"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_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa3ed95.png"
}
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3217,
"end": 3250
},
{
"name": {
"Rfc": "content_id"
},
"start": 3261,
"end": 3316
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3342,
"end": 3351
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3371,
"end": 3405
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa3ed95.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1864,63 +1764,31 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_id": {
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa3edd1.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa3edd1.png"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa3edd1.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5278,
"end": 5311
},
{
"name": {
"Rfc": "content_id"
},
"start": 5322,
"end": 5377
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5403,
"end": 5412
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5432,
"end": 5466
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa3edd1.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3380,53 +3248,28 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 7557,
"end": 7590
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 7616,
"end": 7625
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 7645,
"end": 7683
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -4758,53 +4601,28 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 9552,
"end": 9586
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 9612,
"end": 9621
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 9641,
"end": 9680
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
+157 -222
View File
@@ -96,223 +96,176 @@ JB@ac)(GTFLiL)!d09'8!!!:
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716373961==_"
}
}
},
"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
}
"headers_rfc": {
"message_id": {
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"other_values": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 295
},
{
"name": {
"Rfc": "from"
},
"start": 300,
"end": 337
},
{
"name": {
"Rfc": "subject"
},
"start": 345,
"end": 390
},
{
"name": {
"Rfc": "mime_version"
},
"start": 403,
"end": 409
},
{
"name": {
"Rfc": "content_type"
},
"start": 422,
"end": 489
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 53,
"second": 25,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716373961==_"
}
}
}
},
"headers_other": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 295
},
{
"name": {
"Rfc": "from"
},
"start": 300,
"end": 337
},
{
"name": {
"Rfc": "subject"
},
"start": 345,
"end": 390
},
{
"name": {
"Rfc": "mime_version"
},
"start": 403,
"end": 409
},
{
"name": {
"Rfc": "content_type"
},
"start": 422,
"end": 489
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 3
}
1,
2
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 542,
"end": 577
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 603,
"end": 622
}
]
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "mac-binhex40",
"attributes": {
"name": "blueball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1486,
"end": 1534
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1554,
"end": 1592
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "mac-binhex40",
"attributes": {
"name": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
13,
10,
40,
@@ -2249,43 +2202,25 @@ JB@ac)(GTFLiL)!d09'8!!!:
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "mac-binhex40",
"attributes": {
"name": "HasenundFr�sche.txt"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFr�sche.txt"
}
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "mac-binhex40",
"attributes": {
"name": "HasenundFr�sche.txt"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3576,
"end": 3631
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3651,
"end": 3696
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFr�sche.txt"
}
}
]
}
},
"contents": [
"body": [
13,
10,
40,
@@ -3424,14 +3359,14 @@ JB@ac)(GTFLiL)!d09'8!!!:
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
}
]
},
+160 -232
View File
@@ -103,223 +103,176 @@ end
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"message_id": {
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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
}
},
"subject": {
"Text": "The Hare and the Tortoise"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "jschmuergen@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716177458==_"
}
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "The Hare and the Tortoise"
},
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "jschmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716177458==_"
}
}
},
"other_values": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
"message_id": {
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 257
},
{
"name": {
"Rfc": "from"
},
"start": 262,
"end": 299
},
{
"name": {
"Rfc": "subject"
},
"start": 307,
"end": 335
},
{
"name": {
"Rfc": "mime_version"
},
"start": 348,
"end": 354
},
{
"name": {
"Rfc": "content_type"
},
"start": 367,
"end": 434
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 50,
"second": 8,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
}
},
"headers_other": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 257
},
{
"name": {
"Rfc": "from"
},
"start": 262,
"end": 299
},
{
"name": {
"Rfc": "subject"
},
"start": 307,
"end": 335
},
{
"name": {
"Rfc": "mime_version"
},
"start": 348,
"end": 354
},
{
"name": {
"Rfc": "content_type"
},
"start": 367,
"end": 434
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 3
}
1,
2
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race. <br/></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 487,
"end": 520
}
]
}
},
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r"
"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"
}
},
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1339,
"end": 1373
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1399,
"end": 1412
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1432,
"end": 1471
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
]
}
},
"contents": [
"body": [
13,
10,
98,
@@ -2181,53 +2134,28 @@ end
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3380,
"end": 3413
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3439,
"end": 3452
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3472,
"end": 3510
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
13,
10,
98,
@@ -4127,14 +4055,14 @@ end
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
}
]
},
+196 -313
View File
@@ -139,137 +139,135 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"message_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"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": 33,
"second": 1,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "multipart/alternative",
"boundary": "=====================_715157131==_.REL"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "=====================_715157131==_.REL",
"type": "multipart/alternative"
}
}
},
"other_values": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
"subject": {
"Text": "Die Hasen und die Frösche"
},
"message_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 520
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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
}
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 520
}
],
"html_body": [
2
],
@@ -277,172 +275,89 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
1
],
"attachments": [
{
"Attachment": 3
},
{
"Attachment": 4
}
3,
4
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "=====================_715157141==_.ALT"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"boundary": "=====================_715157141==_.ALT"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 577,
"end": 654
}
]
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 711,
"end": 746
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 772,
"end": 791
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "blueball.png\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\nredball.png"
"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"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1686,
"end": 1720
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1746,
"end": 1765
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.0\" width=27 height=27 alt=\"blueball.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <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"
"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; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <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": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3108,
"end": 3141
},
{
"name": {
"Rfc": "content_id"
},
"start": 3152,
"end": 3207
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3233,
"end": 3242
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3262,
"end": 3296
"content_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1774,63 +1689,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
"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"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5169,
"end": 5201
},
{
"name": {
"Rfc": "content_id"
},
"start": 5212,
"end": 5267
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5293,
"end": 5302
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5322,
"end": 5355
"content_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
+219 -322
View File
@@ -145,156 +145,154 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com"
},
"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"
}
},
"mime_version": {
"Text": "1.0"
},
"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
"headers_rfc": {
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "----=_NextPart_000_0008_01BFC037.FDD8EE90"
}
}
},
"other_values": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 42,
"second": 10,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 331
},
{
"name": {
"Other": "X-Priority"
},
"start": 342,
"end": 355
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 373,
"end": 382
},
{
"name": {
"Other": "X-Mailer"
},
"start": 391,
"end": 444
},
{
"name": {
"Other": "Importance"
},
"start": 455,
"end": 464
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 474,
"end": 522
}
]
}
},
"headers_other": {
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 331
},
{
"name": {
"Other": "X-Priority"
},
"start": 342,
"end": 355
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 373,
"end": 382
},
{
"name": {
"Other": "X-Mailer"
},
"start": 391,
"end": 444
},
{
"name": {
"Other": "Importance"
},
"start": 455,
"end": 464
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 474,
"end": 522
}
],
"html_body": [
2
],
@@ -302,162 +300,86 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
1
],
"attachments": [
{
"Attachment": 3
},
{
"Attachment": 4
}
3,
4
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "----=_NextPart_001_0009_01BFC037.FDD8EE90"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"boundary": "----=_NextPart_001_0009_01BFC037.FDD8EE90"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 630,
"end": 710
}
]
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 772,
"end": 809
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 835,
"end": 854
}
]
},
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1717,
"end": 1753
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1779,
"end": 1798
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><BR><FONT face=Arial size=2>The Hare and the Tortoise <BR>&nbsp;<BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:&nbsp; \"Though you be swift as the wind, I will beat you in a \nrace.\"&nbsp; 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.&nbsp; On the day appointed for the race the two started \ntogether.&nbsp; The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.&nbsp; The Hare, lying down by \nthe wayside, fell fast asleep.&nbsp; 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.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the race.&nbsp; \n<BR></FONT></DIV></BODY></HTML>\n"
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
}
},
{
"Html": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"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>&nbsp;<BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:&nbsp; \"Though you be swift as the wind, I will beat you in a \nrace.\"&nbsp; 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.&nbsp; On the day appointed for the race the two started \ntogether.&nbsp; The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.&nbsp; The Hare, lying down by \nthe wayside, fell fast asleep.&nbsp; 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.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the race.&nbsp; \n<BR></FONT></DIV></BODY></HTML>\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3099,
"end": 3135
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3161,
"end": 3170
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3190,
"end": 3231
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1762,53 +1684,28 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
},
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5071,
"end": 5105
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5131,
"end": 5140
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5160,
"end": 5199
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
+154 -161
View File
@@ -32,186 +32,179 @@ welche also wohl noch ungl
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "8bit"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "schmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@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
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"other_values": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"Importance": {
"Text": "Normal"
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 8,
"second": 29,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 89
},
{
"name": {
"Rfc": "subject"
},
"start": 97,
"end": 148
},
{
"name": {
"Rfc": "date"
},
"start": 153,
"end": 187
},
{
"name": {
"Rfc": "message_id"
},
"start": 198,
"end": 248
},
{
"name": {
"Rfc": "mime_version"
},
"start": 261,
"end": 267
},
{
"name": {
"Rfc": "content_type"
},
"start": 280,
"end": 317
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 343,
"end": 350
},
{
"name": {
"Other": "X-Priority"
},
"start": 361,
"end": 374
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 392,
"end": 401
},
{
"name": {
"Other": "X-Mailer"
},
"start": 410,
"end": 463
},
{
"name": {
"Other": "Importance"
},
"start": 474,
"end": 483
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 493,
"end": 541
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "schmuergen@example.com"
}
]
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "8bit"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 89
},
{
"name": {
"Rfc": "subject"
},
"start": 97,
"end": 148
},
{
"name": {
"Rfc": "date"
},
"start": 153,
"end": 187
},
{
"name": {
"Rfc": "message_id"
},
"start": 198,
"end": 248
},
{
"name": {
"Rfc": "mime_version"
},
"start": 261,
"end": 267
},
{
"name": {
"Rfc": "content_type"
},
"start": 280,
"end": 317
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 343,
"end": 350
},
{
"name": {
"Other": "X-Priority"
},
"start": 361,
"end": 374
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 392,
"end": 401
},
{
"name": {
"Other": "X-Mailer"
},
"start": 410,
"end": 463
},
{
"name": {
"Other": "Importance"
},
"start": 474,
"end": 483
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 493,
"end": 541
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod<br/>selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte<br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 543,
+238 -379
View File
@@ -189,156 +189,154 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 47,
"second": 24,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"other_values": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 331
},
{
"name": {
"Other": "X-Priority"
},
"start": 342,
"end": 355
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 373,
"end": 382
},
{
"name": {
"Other": "X-Mailer"
},
"start": 391,
"end": 444
},
{
"name": {
"Other": "Importance"
},
"start": 455,
"end": 464
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 474,
"end": 522
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 47,
"second": 24,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
}
}
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 331
},
{
"name": {
"Other": "X-Priority"
},
"start": 342,
"end": 355
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 373,
"end": 382
},
{
"name": {
"Other": "X-Mailer"
},
"start": 391,
"end": 444
},
{
"name": {
"Other": "Importance"
},
"start": 455,
"end": 464
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 474,
"end": 522
}
],
"html_body": [
3
],
@@ -346,184 +344,95 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
2
],
"attachments": [
{
"Attachment": 4
},
{
"Attachment": 5
},
{
"Attachment": 6
}
4,
5,
6
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "----=_NextPart_001_0011_01BFC038.B91BC650"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "----=_NextPart_001_0011_01BFC038.B91BC650"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 630,
"end": 706
}
]
}
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "----=_NextPart_002_0012_01BFC038.B91BC650"
}
}
}
}
},
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"boundary": "----=_NextPart_002_0012_01BFC038.B91BC650"
"charset": "iso-8859-1"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 768,
"end": 848
"body": "\n\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n\n"
}
},
{
"Html": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
}
]
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 910,
"end": 947
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 973,
"end": 992
}
]
},
"contents": "\n\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1859,
"end": 1895
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1921,
"end": 1940
}
]
},
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:938014623@17052000-0f9b\"></FONT></DIV>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR>&nbsp;<BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:&nbsp; \"Though you be swift as the wind, I will beat you in a \nrace.\"&nbsp; 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.&nbsp; On the day appointed for the race the two started \ntogether.&nbsp; The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.&nbsp; The Hare, lying down by \nthe wayside, fell fast asleep.&nbsp; 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.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the race.&nbsp; \n</FONT></DIV>\n<DIV><FONT face=Arial size=2><BR>&nbsp;</DIV></FONT></BODY></HTML>\n"
"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>&nbsp;<BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:&nbsp; \"Though you be swift as the wind, I will beat you in a \nrace.\"&nbsp; 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.&nbsp; On the day appointed for the race the two started \ntogether.&nbsp; The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.&nbsp; The Hare, lying down by \nthe wayside, fell fast asleep.&nbsp; 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.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the race.&nbsp; \n</FONT></DIV>\n<DIV><FONT face=Arial size=2><BR>&nbsp;</DIV></FONT></BODY></HTML>\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "938014623@17052000-0f9b"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
"content_id": {
"Text": "938014623@17052000-0f9b"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3448,
"end": 3483
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3509,
"end": 3518
},
{
"name": {
"Rfc": "content_id"
},
"start": 3529,
"end": 3557
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1855,53 +1764,28 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
"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"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5484,
"end": 5520
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5546,
"end": 5555
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5575,
"end": 5616
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3206,53 +3090,28 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
"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"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 7456,
"end": 7490
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 7516,
"end": 7525
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 7545,
"end": 7584
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
+155 -162
View File
@@ -31,186 +31,179 @@ IiANCg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 11,
"second": 50,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"content_transfer_encoding": {
"Text": "base64"
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "schmuergen@example.com"
}
},
"other_values": {
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 89
},
{
"name": {
"Rfc": "subject"
},
"start": 97,
"end": 148
},
{
"name": {
"Rfc": "date"
},
"start": 153,
"end": 187
},
{
"name": {
"Rfc": "message_id"
},
"start": 198,
"end": 248
},
{
"name": {
"Rfc": "mime_version"
},
"start": 261,
"end": 267
},
{
"name": {
"Rfc": "content_type"
},
"start": 280,
"end": 317
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 343,
"end": 352
},
{
"name": {
"Other": "X-Priority"
},
"start": 363,
"end": 376
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 394,
"end": 403
},
{
"name": {
"Other": "X-Mailer"
},
"start": 412,
"end": 465
},
{
"name": {
"Other": "Importance"
},
"start": 476,
"end": 485
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 495,
"end": 543
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 11,
"second": 50,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
}
},
"headers_other": {
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 89
},
{
"name": {
"Rfc": "subject"
},
"start": 97,
"end": 148
},
{
"name": {
"Rfc": "date"
},
"start": 153,
"end": 187
},
{
"name": {
"Rfc": "message_id"
},
"start": 198,
"end": 248
},
{
"name": {
"Rfc": "mime_version"
},
"start": 261,
"end": 267
},
{
"name": {
"Rfc": "content_type"
},
"start": 280,
"end": 317
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 343,
"end": 352
},
{
"name": {
"Other": "X-Priority"
},
"start": 363,
"end": 376
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 394,
"end": 403
},
{
"name": {
"Other": "X-Mailer"
},
"start": 412,
"end": 465
},
{
"name": {
"Other": "Importance"
},
"start": 476,
"end": 485
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 495,
"end": 543
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n"
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 545,
+180 -279
View File
@@ -109,236 +109,180 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"message_id": {
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716541962==_"
}
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 56,
"second": 13,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
"headers_rfc": {
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716541962==_"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 295
},
{
"name": {
"Rfc": "from"
},
"start": 300,
"end": 337
},
{
"name": {
"Rfc": "subject"
},
"start": 345,
"end": 390
},
{
"name": {
"Rfc": "mime_version"
},
"start": 403,
"end": 409
},
{
"name": {
"Rfc": "content_type"
},
"start": 422,
"end": 489
}
]
"message_id": {
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 295
},
{
"name": {
"Rfc": "from"
},
"start": 300,
"end": 337
},
{
"name": {
"Rfc": "subject"
},
"start": 345,
"end": 390
},
{
"name": {
"Rfc": "mime_version"
},
"start": 403,
"end": 409
},
{
"name": {
"Rfc": "content_type"
},
"start": 422,
"end": 489
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 3
},
{
"Attachment": 4
}
1,
2,
3
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 542,
"end": 577
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 603,
"end": 622
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
]
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1486,
"end": 1519
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1545,
"end": 1554
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1574,
"end": 1612
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1670,100 +1614,60 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
{
"Text": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "farmerandstork.txt"
}
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "farmerandstork.txt"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3481,
"end": 3514
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3534,
"end": 3578
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
]
}
},
"contents": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFr�sche.txt"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 4437,
"end": 4472
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 4498,
"end": 4517
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 4537,
"end": 4582
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFr�sche.txt"
}
}
]
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
@@ -1772,9 +1676,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
},
{
"Part": 3
},
{
"Part": 4
}
]
},
+179 -272
View File
@@ -110,254 +110,193 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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": 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"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "=====================_715429112==_.REL",
"type": "text/html"
}
"headers_rfc": {
"message_id": {
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "text/html",
"boundary": "=====================_715429112==_.REL"
}
}
},
"other_values": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 508
"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
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "2 (High)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 508
}
],
"html_body": [
1
0
],
"text_body": [
0
],
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 3
}
1,
2
],
"parts": [
{
"Text": {
"contents": "\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 565,
"end": 599
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 625,
"end": 644
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2\" width=27 height=27 alt=\"2aa48eb6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <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"
"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; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3\" width=27 height=27 alt=\"2aa48ec0.png\"></font></html>\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa48eb6.png"
}
"content_id": {
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa48eb6.png"
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa48eb6.png"
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1942,
"end": 1975
},
{
"name": {
"Rfc": "content_id"
},
"start": 1986,
"end": 2041
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 2067,
"end": 2076
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 2096,
"end": 2130
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa48eb6.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1689,63 +1628,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa48ec0.png"
}
}
},
"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_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa48ec0.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 4003,
"end": 4036
},
{
"name": {
"Rfc": "content_id"
},
"start": 4047,
"end": 4102
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 4128,
"end": 4137
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 4157,
"end": 4191
"content_transfer_encoding": {
"Text": "base64"
},
"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"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3205,14 +3112,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
}
]
},
+227 -385
View File
@@ -172,284 +172,208 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"message_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.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
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_715462801==_"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
"headers_rfc": {
"message_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_715462801==_"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
"subject": {
"Text": "Die Hasen und die Frösche"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 482
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 38,
"second": 13,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 482
}
],
"html_body": [
2
1
],
"text_body": [
1
],
"attachments": [
{
"Attachment": 3
},
{
"Attachment": 4
},
{
"Attachment": 5
},
{
"Attachment": 6
}
2,
3,
4,
5
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "text/html",
"boundary": "=====================_715462801==_.REL"
}
}
}
}
},
{
"Html": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"c_type": "text",
"c_subtype": "html",
"attributes": {
"type": "text/html",
"boundary": "=====================_715462801==_.REL"
"charset": "iso-8859-1"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 535,
"end": 628
}
]
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 685,
"end": 719
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 745,
"end": 764
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <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"
"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; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <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": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa51367.png"
}
}
},
"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"
}
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa51367.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 2053,
"end": 2086
},
{
"name": {
"Rfc": "content_id"
},
"start": 2097,
"end": 2152
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 2178,
"end": 2187
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 2207,
"end": 2241
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa51367.png"
}
}
]
},
"content_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1781,63 +1705,31 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa51371.png"
}
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa51371.png"
}
},
"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"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 4114,
"end": 4147
},
{
"name": {
"Rfc": "content_id"
},
"start": 4158,
"end": 4213
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 4239,
"end": 4248
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 4268,
"end": 4302
"content_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa51371.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3297,53 +3189,28 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 6393,
"end": 6426
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 6452,
"end": 6461
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 6481,
"end": 6519
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -4675,53 +4542,28 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 8388,
"end": 8422
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 8448,
"end": 8457
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 8477,
"end": 8516
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -6030,23 +5872,23 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"MultiPart": [
0,
[
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
},
{
"Part": 4
}
]
]
},
{
"Part": 5
"Part": 4
},
{
"Part": 6
"Part": 5
}
]
},
+164 -236
View File
@@ -85,290 +85,218 @@ Birds of a feather flock together.
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"message_id": {
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
},
"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": 59,
"second": 31,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716740438==_"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716740438==_"
}
}
},
"other_values": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 266
},
{
"name": {
"Rfc": "from"
},
"start": 271,
"end": 308
},
{
"name": {
"Rfc": "subject"
},
"start": 316,
"end": 361
},
{
"name": {
"Rfc": "mime_version"
},
"start": 374,
"end": 380
},
{
"name": {
"Rfc": "content_type"
},
"start": 393,
"end": 460
"message_id": {
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.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
}
]
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Rfc": "date"
},
"start": 175,
"end": 209
},
{
"name": {
"Rfc": "to"
},
"start": 212,
"end": 266
},
{
"name": {
"Rfc": "from"
},
"start": 271,
"end": 308
},
{
"name": {
"Rfc": "subject"
},
"start": 316,
"end": 361
},
{
"name": {
"Rfc": "mime_version"
},
"start": 374,
"end": 380
},
{
"name": {
"Rfc": "content_type"
},
"start": 393,
"end": 460
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 3
}
1,
2
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"name": "HasenundFr�sche.txt",
"x-mac-type": "54455854",
"x-mac-creator": "74747874"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 513,
"end": 548
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 574,
"end": 593
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFr�sche.txt"
}
}
]
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"body": "\r\nbegin 600 HasenundFr�sche.txt\r\nM1&EE($AA<V5N('5N9\"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E\r\nM;B!E:6YS=\"#\\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L\r\nM('-P<F%C:\"!E:6X@4F5D;F5R+\"`B:6X@<W1E=&5R($9U<F-H=\"!V;W(@365N\r\nM<V-H96X@=6YD(%1I97)E;BP@96EN92!\"975T92!D97(@2'5N9&4L(&1E<B!!\r\nM9&QE<BP@:F$@9F%S=\"!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!\r\nM;F=S=\"!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@\r\nM=6YS(&5I;B!F_'(@86QL96UA;\"!S=&5R8F5N+B(@#0H-\"DEN(&5I;F5M(&YA\r\nM:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@\r\nM96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E\r\nM=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@\r\nM96EN92!-96YG92!&<O9S8VAE+\"!D:64@86T@569E<B!S8=]E;BP@<V\\@<V5H\r\nM<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-\r\nM\"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(\")W:7(@\r\nM=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E\r\nM;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+\"!E:6YI\r\nM9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:\"!U;F=L_&-K;&EC:&5R\r\n;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-\"@T*\r\n`\r\nend\r\n\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"x-mac-creator": "74747874",
"x-mac-type": "54455854",
"name": "HasenundFr�sche.txt"
}
}
},
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFr�sche.txt"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1457,
"end": 1549
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1575,
"end": 1588
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1608,
"end": 1653
}
]
},
"contents": "\r\nbegin 600 HasenundFr�sche.txt\r\nM1&EE($AA<V5N('5N9\"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E\r\nM;B!E:6YS=\"#\\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L\r\nM('-P<F%C:\"!E:6X@4F5D;F5R+\"`B:6X@<W1E=&5R($9U<F-H=\"!V;W(@365N\r\nM<V-H96X@=6YD(%1I97)E;BP@96EN92!\"975T92!D97(@2'5N9&4L(&1E<B!!\r\nM9&QE<BP@:F$@9F%S=\"!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!\r\nM;F=S=\"!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@\r\nM=6YS(&5I;B!F_'(@86QL96UA;\"!S=&5R8F5N+B(@#0H-\"DEN(&5I;F5M(&YA\r\nM:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@\r\nM96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E\r\nM=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@\r\nM96EN92!-96YG92!&<O9S8VAE+\"!D:64@86T@569E<B!S8=]E;BP@<V\\@<V5H\r\nM<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-\r\nM\"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(\")W:7(@\r\nM=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E\r\nM;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+\"!E:6YI\r\nM9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:\"!U;F=L_&-K;&EC:&5R\r\n;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-\"@T*\r\n`\r\nend\r\n\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "farmerandstork.txt"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "farmerandstork.txt"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 2796,
"end": 2829
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 2849,
"end": 2893
}
]
}
},
"contents": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
}
]
},
+154 -161
View File
@@ -32,186 +32,179 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"other_values": {
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 89
},
{
"name": {
"Rfc": "subject"
},
"start": 97,
"end": 148
},
{
"name": {
"Rfc": "date"
},
"start": 153,
"end": 187
},
{
"name": {
"Rfc": "message_id"
},
"start": 198,
"end": 248
},
{
"name": {
"Rfc": "mime_version"
},
"start": 261,
"end": 267
},
{
"name": {
"Rfc": "content_type"
},
"start": 280,
"end": 317
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 343,
"end": 362
},
{
"name": {
"Other": "X-Priority"
},
"start": 373,
"end": 386
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 404,
"end": 413
},
{
"name": {
"Other": "X-Mailer"
},
"start": 422,
"end": 475
},
{
"name": {
"Other": "Importance"
},
"start": 486,
"end": 495
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 505,
"end": 553
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "schmuergen@example.com"
}
]
},
"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
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 89
},
{
"name": {
"Rfc": "subject"
},
"start": 97,
"end": 148
},
{
"name": {
"Rfc": "date"
},
"start": 153,
"end": 187
},
{
"name": {
"Rfc": "message_id"
},
"start": 198,
"end": 248
},
{
"name": {
"Rfc": "mime_version"
},
"start": 261,
"end": 267
},
{
"name": {
"Rfc": "content_type"
},
"start": 280,
"end": 317
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 343,
"end": 362
},
{
"name": {
"Other": "X-Priority"
},
"start": 373,
"end": 386
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 404,
"end": 413
},
{
"name": {
"Other": "X-Mailer"
},
"start": 422,
"end": 475
},
{
"name": {
"Other": "Importance"
},
"start": 486,
"end": 495
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 505,
"end": 553
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 555,
+203 -306
View File
@@ -157,156 +157,154 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
}
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@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"
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
"headers_rfc": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 44,
"second": 45,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"other_values": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKFCHAA.doug@example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
}
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 333
},
{
"name": {
"Other": "X-Priority"
},
"start": 344,
"end": 357
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 375,
"end": 384
},
{
"name": {
"Other": "X-Mailer"
},
"start": 393,
"end": 446
},
{
"name": {
"Other": "Importance"
},
"start": 457,
"end": 466
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 476,
"end": 524
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
]
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 76
},
{
"name": {
"Rfc": "subject"
},
"start": 84,
"end": 125
},
{
"name": {
"Rfc": "date"
},
"start": 130,
"end": 164
},
{
"name": {
"Rfc": "message_id"
},
"start": 175,
"end": 225
},
{
"name": {
"Rfc": "mime_version"
},
"start": 238,
"end": 244
},
{
"name": {
"Rfc": "content_type"
},
"start": 257,
"end": 333
},
{
"name": {
"Other": "X-Priority"
},
"start": 344,
"end": 357
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 375,
"end": 384
},
{
"name": {
"Other": "X-Mailer"
},
"start": 393,
"end": 446
},
{
"name": {
"Other": "Importance"
},
"start": 457,
"end": 466
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 476,
"end": 524
}
],
"html_body": [
2
],
@@ -314,157 +312,81 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
1
],
"attachments": [
{
"Attachment": 3
},
{
"Attachment": 4
}
3,
4
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "----=_NextPart_001_000D_01BFC038.5A5C8E60"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"boundary": "----=_NextPart_001_000D_01BFC038.5A5C8E60"
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 632,
"end": 712
}
]
"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"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 774,
"end": 811
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 837,
"end": 856
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n\n\n \nSlow but steady wins the race. \n\n\n\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1727,
"end": 1763
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1789,
"end": 1808
}
]
},
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR>&nbsp;<BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:&nbsp; \"Though you be swift as the wind, I will beat you in a \nrace.\"&nbsp; 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.&nbsp; On the day appointed for the race the two started \ntogether.&nbsp; The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.&nbsp; The Hare, lying down by \nthe wayside, fell fast asleep.&nbsp; 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.&nbsp;&nbsp;</FONT></DIV>\n<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f8d\"><BR>&nbsp;<BR>Slow but steady wins \nthe race.&nbsp; </FONT></DIV>\n<DIV>&nbsp;</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"
"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>&nbsp;<BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:&nbsp; \"Though you be swift as the wind, I will beat you in a \nrace.\"&nbsp; 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.&nbsp; On the day appointed for the race the two started \ntogether.&nbsp; The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.&nbsp; The Hare, lying down by \nthe wayside, fell fast asleep.&nbsp; 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.&nbsp;&nbsp;</FONT></DIV>\n<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f8d\"><BR>&nbsp;<BR>Slow but steady wins \nthe race.&nbsp; </FONT></DIV>\n<DIV>&nbsp;</DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"red ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f94\"><BR></DIV></FONT></BODY></HTML>\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_id": {
"Text": "823504223@17052000-0f8d"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
"content_id": {
"Text": "823504223@17052000-0f8d"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3495,
"end": 3530
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3556,
"end": 3565
},
{
"name": {
"Rfc": "content_id"
},
"start": 3576,
"end": 3604
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1796,48 +1718,23 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"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_id": {
"Text": "823504223@17052000-0f94"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5482,
"end": 5516
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5542,
"end": 5551
},
{
"name": {
"Rfc": "content_id"
},
"start": 5562,
"end": 5590
}
]
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "823504223@17052000-0f94"
}
},
"contents": [
"body": [
137,
80,
78,
+135 -142
View File
@@ -28,166 +28,159 @@ Slow but steady wins the race.
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 26,
"second": 16,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_transfer_encoding": {
"Text": "7bit"
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"message_id": {
"Text": "392362D8.B650789F@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"mime_version": {
"Text": "1.0"
"headers_rfc": {
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"other_values": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Priority": {
"Text": "1 (Highest)"
},
"X-Accept-Language": {
"Text": "en"
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 26,
"second": 16,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Other": "X-Priority"
},
"start": 305,
"end": 319
},
{
"name": {
"Rfc": "content_type"
},
"start": 332,
"end": 363
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 389,
"end": 396
"content_transfer_encoding": {
"Text": "7bit"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
]
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"message_id": {
"Text": "392362D8.B650789F@example.com"
}
},
"headers_other": {
"X-Priority": {
"Text": "1 (Highest)"
},
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Other": "X-Priority"
},
"start": 305,
"end": 319
},
{
"name": {
"Rfc": "content_type"
},
"start": 332,
"end": 363
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 389,
"end": 396
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.<br/></body></html>"
}
},
{
"Text": {
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 400,
+189 -295
View File
@@ -112,240 +112,184 @@ Slow but steady wins the race.
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 28,
"second": 27,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------0BBC657DDC74A0B8454627FD"
}
}
},
"message_id": {
"Text": "3923635B.85C58444@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"message_id": {
"Text": "3923635B.85C58444@example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------0BBC657DDC74A0B8454627FD"
}
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
]
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 28,
"second": 27,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
}
],
"html_body": [
0,
2,
3
1,
2
],
"text_body": [
0,
1,
2
],
"attachments": [
1,
2,
3
],
"attachments": [
{
"Inline": 2
},
{
"Inline": 3
},
{
"Attachment": 4
}
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
}
},
"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"
}
},
{
"Text": {
"InlineBinary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 477,
"end": 508
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 534,
"end": 541
}
]
},
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
}
},
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
"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"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1365,
"end": 1400
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1426,
"end": 1435
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1455,
"end": 1491
}
]
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1675,55 +1619,30 @@ Slow but steady wins the race.
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
},
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3364,
"end": 3400
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3426,
"end": 3435
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3455,
"end": 3492
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3028,59 +2947,37 @@ Slow but steady wins the race.
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"name": "hareandtoroise.txt",
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "hareandtoroise.txt"
}
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii",
"name": "hareandtoroise.txt"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5329,
"end": 5389
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5415,
"end": 5422
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5442,
"end": 5484
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "hareandtoroise.txt"
}
}
]
}
},
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r"
"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"
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
@@ -3089,9 +2986,6 @@ Slow but steady wins the race.
},
{
"Part": 3
},
{
"Part": 4
}
]
},
+151 -251
View File
@@ -97,221 +97,160 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "-1463757054-952513540-958744548=:8452"
}
}
},
"message_id": {
"Text": "Pine.LNX.4.21.0005190951410.8452-102000@penguin.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Test message from PINE"
},
"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
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
},
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "date"
},
"start": 5,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 91
},
{
"name": {
"Rfc": "to"
},
"start": 94,
"end": 124
},
{
"name": {
"Rfc": "subject"
},
"start": 132,
"end": 157
},
{
"name": {
"Rfc": "message_id"
},
"start": 168,
"end": 232
},
{
"name": {
"Rfc": "mime_version"
},
"start": 245,
"end": 251
},
{
"name": {
"Rfc": "content_type"
},
"start": 264,
"end": 332
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 9,
"minute": 55,
"second": 48,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "date"
},
"start": 5,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 91
},
{
"name": {
"Rfc": "to"
},
"start": 94,
"end": 124
},
{
"name": {
"Rfc": "subject"
},
"start": 132,
"end": 157
},
{
"name": {
"Rfc": "message_id"
},
"start": 168,
"end": 232
},
{
"name": {
"Rfc": "mime_version"
},
"start": 245,
"end": 251
},
{
"name": {
"Rfc": "content_type"
},
"start": 264,
"end": 332
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 3
}
1,
2
],
"parts": [
{
"Text": {
"contents": "<html><body>This is a test message from PINE MUA.<br/><br/></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "US-ASCII"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "US-ASCII"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 608,
"end": 639
}
]
}
},
"contents": "This is a test message from PINE MUA.\r\n\r\n\r"
"body": "This is a test message from PINE MUA.\r\n\r\n\r"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "octet-stream",
"attributes": {
"name": "redball.png"
}
}
},
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_id": {
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
},
"content_description": {
"Text": "A PNG graphic file"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "octet-stream",
"attributes": {
"name": "redball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 738,
"end": 785
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 811,
"end": 820
},
{
"name": {
"Rfc": "content_id"
},
"start": 831,
"end": 888
},
{
"name": {
"Rfc": "content_description"
},
"start": 908,
"end": 929
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 949,
"end": 986
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_id": {
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
},
"content_description": {
"Text": "A PNG graphic file"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1771,73 +1710,34 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "octet-stream",
"attributes": {
"name": "blueball.png"
}
},
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "octet-stream",
"attributes": {
"name": "blueball.png"
}
}
},
"content_id": {
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
},
"content_description": {
"Text": "A PNG graphic file"
},
"content_transfer_encoding": {
"Text": "BASE64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3048,
"end": 3096
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3122,
"end": 3131
},
{
"name": {
"Rfc": "content_id"
},
"start": 3142,
"end": 3199
},
{
"name": {
"Rfc": "content_description"
},
"start": 3219,
"end": 3240
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3260,
"end": 3298
"content_id": {
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
},
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_description": {
"Text": "A PNG graphic file"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3169,14 +3069,14 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
}
]
},
+188 -291
View File
@@ -134,126 +134,124 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------C78F594988075E36AE03C243"
}
}
},
"message_id": {
"Text": "39235EAD.E48E2160@example.com"
},
"mime_version": {
"Text": "1.0"
},
"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
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------C78F594988075E36AE03C243"
}
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 8,
"second": 29,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
]
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "39235EAD.E48E2160@example.com"
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
}
],
"html_body": [
2,
3,
@@ -265,162 +263,86 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
4
],
"attachments": [
{
"Inline": 3
},
{
"Inline": 4
}
3,
4
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "------------D74AE2393FB01D1B284AE257"
}
}
}
}
},
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"boundary": "------------D74AE2393FB01D1B284AE257"
"charset": "iso-8859-1"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 477,
"end": 552
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
}
},
{
"Html": {
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "us-ascii"
}
}
}
]
},
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Fr&ouml;sche</b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;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 &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<br>&nbsp;\r\n<br>&nbsp;</html>\r\n\r"
}
},
{
"Text": {
"InlineBinary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 609,
"end": 642
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 668,
"end": 687
}
]
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1542,
"end": 1572
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1598,
"end": 1605
}
]
},
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Fr&ouml;sche</b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;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 &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<br>&nbsp;\r\n<br>&nbsp;</html>\r\n\r"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 2655,
"end": 2691
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 2717,
"end": 2726
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 2746,
"end": 2783
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1723,55 +1645,30 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 4620,
"end": 4655
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 4681,
"end": 4690
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 4710,
"end": 4746
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
+134 -141
View File
@@ -34,166 +34,159 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"message_id": {
"Text": "392363E1.2AC47AB3@example.com"
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
"headers_rfc": {
"message_id": {
"Text": "392363E1.2AC47AB3@example.com"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Priority": {
"Text": "5 (Lowest)"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Other": "X-Priority"
},
"start": 305,
"end": 318
},
{
"name": {
"Rfc": "content_type"
},
"start": 331,
"end": 359
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 385,
"end": 404
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 30,
"second": 41,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Priority": {
"Text": "5 (Lowest)"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Other": "X-Priority"
},
"start": 305,
"end": 318
},
{
"name": {
"Rfc": "content_type"
},
"start": 331,
"end": 359
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 385,
"end": 404
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Fr�sche<br/><br/>Die Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der<br/>Tod selbst. Auf, la�t uns ein f�r allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;<br/>allein das au�erordentliche Get�se und ihre wunderbare Gestalt<br/>erschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs<br/>schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein<br/>wenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl�cklicher sein m�ssen als wir.\"<br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Fr�sche\n\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der\nTod selbst. Auf, la�t uns ein f�r allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt\nerschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs\nschnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\n"
"body": "Die Hasen und die Fr�sche\n\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der\nTod selbst. Auf, la�t uns ein f�r allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt\nerschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs\nschnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 406,
+125 -132
View File
@@ -27,156 +27,149 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-7"
}
}
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "7bit"
},
"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"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Fr+APY-sche"
"headers_rfc": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 33,
"second": 43,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 253
},
{
"name": {
"Rfc": "subject"
},
"start": 261,
"end": 293
},
{
"name": {
"Rfc": "content_type"
},
"start": 306,
"end": 334
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 360,
"end": 367
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-7"
}
}
]
},
"to": {
"Address": {
"name": "Heinz M+APw-ller",
"address": "mueller@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Fr+APY-sche"
},
"content_transfer_encoding": {
"Text": "7bit"
},
"message_id": {
"Text": "39236497.12FA2A89@example.com"
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 253
},
{
"name": {
"Rfc": "subject"
},
"start": 261,
"end": 293
},
{
"name": {
"Rfc": "content_type"
},
"start": 306,
"end": 334
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 360,
"end": 367
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Fr岣he<br/><br/>Die Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der<br/>Tod selbst. Auf, la޴ uns ein f밠allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;<br/>allein das auޥrordentliche Get岥 und ihre wunderbare Gestalt<br/>erschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs<br/>schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein<br/>wenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl뢫licher sein m벳en als wir.\"<br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Fr岣he\r\n\r\nDie Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\r\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der\r\nTod selbst. Auf, la޴ uns ein f밠allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;\r\nallein das auޥrordentliche Get岥 und ihre wunderbare Gestalt\r\nerschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs\r\nschnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein\r\nwenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl뢫licher sein m벳en als wir.\"\r\n"
"body": "Die Hasen und die Fr岣he\r\n\r\nDie Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\r\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der\r\nTod selbst. Auf, la޴ uns ein f밠allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;\r\nallein das auޥrordentliche Get岥 und ihre wunderbare Gestalt\r\nerschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs\r\nschnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein\r\nwenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl뢫licher sein m벳en als wir.\"\r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 369,
+222 -404
View File
@@ -213,126 +213,124 @@ YII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"message_id": {
"Text": "39235FC5.276CCE00@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"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
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------A1E83A41894D3755390B838A"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------A1E83A41894D3755390B838A"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 266
},
{
"name": {
"Rfc": "subject"
},
"start": 274,
"end": 346
},
{
"name": {
"Rfc": "content_type"
},
"start": 359,
"end": 428
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 13,
"second": 9,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"message_id": {
"Text": "39235FC5.276CCE00@example.com"
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 266
},
{
"name": {
"Rfc": "subject"
},
"start": 274,
"end": 346
},
{
"name": {
"Rfc": "content_type"
},
"start": 359,
"end": 428
}
],
"html_body": [
3,
6,
@@ -344,199 +342,101 @@ YII=
7
],
"attachments": [
{
"Attachment": 4
},
{
"Attachment": 5
},
{
"Inline": 6
},
{
"Inline": 7
}
4,
5,
6,
7
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "------------F03F94BA73D3B9E8C1B94D92"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "------------F03F94BA73D3B9E8C1B94D92"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 529,
"end": 604
}
]
}
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 661,
"end": 694
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 720,
"end": 739
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "[blue ball]\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n[Image]\n\n\n"
"body": "[blue ball]\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n[Image]\n\n\n"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "------------C02FA3D0A04E95F295FB25EB"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "------------C02FA3D0A04E95F295FB25EB"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1620,
"end": 1691
}
]
}
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "us-ascii"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "us-ascii"
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1748,
"end": 1778
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1804,
"end": 1811
}
]
"content_transfer_encoding": {
"Text": "7bit"
}
},
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39235FC5.E71D8178@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b>Die Hasen und die Fr&ouml;sche</b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;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 &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br>&nbsp;\r\n<br>&nbsp;</html>\r\n\r"
"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&ouml;sche</b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;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 &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br>&nbsp;\r\n<br>&nbsp;</html>\r\n\r"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
},
"content_id": {
"Text": "part1.39235FC5.E71D8178@example.com"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmailEG.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
"content_id": {
"Text": "part1.39235FC5.E71D8178@example.com"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 2990,
"end": 3002
},
{
"name": {
"Rfc": "content_id"
},
"start": 3013,
"end": 3053
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3079,
"end": 3088
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3108,
"end": 3150
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmailEG.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1868,60 +1768,28 @@ YII=
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmail39.png"
}
}
},
"content_id": {
"Text": "part2.39235FC5.E71D8178@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5023,
"end": 5035
},
{
"name": {
"Rfc": "content_id"
},
"start": 5046,
"end": 5086
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5112,
"end": 5121
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5141,
"end": 5183
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmail39.png"
}
}
]
},
"content_id": {
"Text": "part2.39235FC5.E71D8178@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3379,55 +3247,30 @@ YII=
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "redball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "redball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 7320,
"end": 7354
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 7380,
"end": 7389
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 7409,
"end": 7444
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -4885,55 +4728,30 @@ YII=
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 9493,
"end": 9529
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 9555,
"end": 9564
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 9584,
"end": 9621
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
+105 -112
View File
@@ -27,134 +27,127 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"message_id": {
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.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
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"content_transfer_encoding": {
"Text": "QUOTED-PRINTABLE"
"headers_rfc": {
"message_id": {
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.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
}
},
"offsets": [
{
"name": {
"Rfc": "date"
},
"start": 5,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 91
},
{
"name": {
"Rfc": "to"
},
"start": 94,
"end": 159
},
{
"name": {
"Rfc": "subject"
},
"start": 167,
"end": 214
},
{
"name": {
"Rfc": "message_id"
},
"start": 225,
"end": 289
},
{
"name": {
"Rfc": "mime_version"
},
"start": 302,
"end": 308
},
{
"name": {
"Rfc": "content_type"
},
"start": 321,
"end": 354
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 380,
"end": 399
"content_transfer_encoding": {
"Text": "QUOTED-PRINTABLE"
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
]
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "date"
},
"start": 5,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 91
},
{
"name": {
"Rfc": "to"
},
"start": 94,
"end": 159
},
{
"name": {
"Rfc": "subject"
},
"start": 167,
"end": 214
},
{
"name": {
"Rfc": "message_id"
},
"start": 225,
"end": 289
},
{
"name": {
"Rfc": "mime_version"
},
"start": 302,
"end": 308
},
{
"name": {
"Rfc": "content_type"
},
"start": 321,
"end": 354
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 380,
"end": 399
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 401,
+150 -202
View File
@@ -52,232 +52,180 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------E7889DDF0F75D34163841C59"
}
}
},
"mime_version": {
"Text": "1.0"
},
"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
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"other_values": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------E7889DDF0F75D34163841C59"
}
}
]
},
"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"
},
"message_id": {
"Text": "392366A7.21929EA7@example.com"
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
}
],
"html_body": [
0,
2
1
],
"text_body": [
1,
2
0,
1
],
"attachments": [
{
"Inline": 2
}
1
],
"parts": [
{
"Text": {
"contents": "<html><body> </body></html>"
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
}
},
"body": " \r"
}
},
{
"Text": {
"InlineBinary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 477,
"end": 508
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 534,
"end": 541
}
]
},
"contents": " \r"
}
},
{
"Binary": {
"headers": {
"values": {
"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_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 599,
"end": 634
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 660,
"end": 669
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 689,
"end": 725
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1610,10 +1558,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"structure": {
"List": [
{
"Part": 1
"Part": 0
},
{
"Part": 2
"Part": 1
}
]
},
+125 -132
View File
@@ -18,156 +18,149 @@ Slow but steady wins the race.
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"message_id": {
"Text": "3923625B.59F0C3AC@example.com"
},
"content_transfer_encoding": {
"Text": "7bit"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"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"
"headers_rfc": {
"message_id": {
"Text": "3923625B.59F0C3AC@example.com"
},
"content_transfer_encoding": {
"Text": "7bit"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 338
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 364,
"end": 371
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 24,
"second": 11,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 338
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 364,
"end": 371
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.<br/></body></html>"
}
},
{
"Text": {
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 375,
+216 -374
View File
@@ -172,274 +172,198 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------B7133A01A6B323BF00DBC9A7"
}
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"message_id": {
"Text": "39236103.FFE674FC@example.com"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 277
},
{
"name": {
"Rfc": "subject"
},
"start": 285,
"end": 331
},
{
"name": {
"Rfc": "content_type"
},
"start": 344,
"end": 413
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 18,
"second": 27,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 277
},
{
"name": {
"Rfc": "subject"
},
"start": 285,
"end": 331
},
{
"name": {
"Rfc": "content_type"
},
"start": 344,
"end": 413
}
],
"html_body": [
2,
5,
6
1,
4,
5
],
"text_body": [
1,
5,
6
4,
5
],
"attachments": [
{
"Attachment": 3
},
{
"Attachment": 4
},
{
"Inline": 5
},
{
"Inline": 6
}
2,
3,
4,
5
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "------------8E6A06810565BCAB5E1F7D97"
}
}
}
}
},
{
"Html": {
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"c_type": "text",
"c_subtype": "html",
"attributes": {
"boundary": "------------8E6A06810565BCAB5E1F7D97"
"charset": "us-ascii"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 514,
"end": 585
}
]
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\""
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "us-ascii"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 642,
"end": 672
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 698,
"end": 705
}
]
},
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39236103.1B697A54@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b><font size=+2>Die Hasen und die Fr&ouml;sche</font></b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;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 &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n\r"
"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&ouml;sche</font></b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;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 &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n\r"
}
},
{
"Binary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
},
"content_id": {
"Text": "part1.39236103.1B697A54@example.com"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmailV0.png"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmailV0.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1896,
"end": 1908
},
{
"name": {
"Rfc": "content_id"
},
"start": 1919,
"end": 1959
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1985,
"end": 1994
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 2014,
"end": 2056
"content_id": {
"Text": "part1.39236103.1B697A54@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1771,60 +1695,28 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_id": {
"Text": "part2.39236103.1B697A54@example.com"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmailNM.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmailNM.png"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3929,
"end": 3941
},
{
"name": {
"Rfc": "content_id"
},
"start": 3952,
"end": 3992
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 4018,
"end": 4027
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 4047,
"end": 4089
"content_id": {
"Text": "part2.39236103.1B697A54@example.com"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3282,55 +3174,30 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 6182,
"end": 6218
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 6244,
"end": 6253
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 6273,
"end": 6310
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -4633,55 +4500,30 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 8147,
"end": 8182
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 8208,
"end": 8217
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 8237,
"end": 8273
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -6017,23 +5859,23 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"MultiPart": [
0,
[
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
},
{
"Part": 4
}
]
]
},
{
"Part": 5
"Part": 4
},
{
"Part": 6
"Part": 5
}
]
},
+124 -131
View File
@@ -29,156 +29,149 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
},
"message_id": {
"Text": "39236653.CAA8A090@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 41,
"second": 7,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"mime_version": {
"Text": "1.0"
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 277
},
{
"name": {
"Rfc": "subject"
},
"start": 285,
"end": 332
},
{
"name": {
"Rfc": "content_type"
},
"start": 345,
"end": 378
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 404,
"end": 423
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
]
},
"message_id": {
"Text": "39236653.CAA8A090@example.com"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 41,
"second": 7,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 277
},
{
"name": {
"Rfc": "subject"
},
"start": 285,
"end": 332
},
{
"name": {
"Rfc": "content_type"
},
"start": 345,
"end": 378
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 404,
"end": 423
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"<br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 425,
+126 -185
View File
@@ -58,218 +58,159 @@ vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
"headers_rfc": {
"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"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 10,
"minute": 23,
"second": 16,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "-1463757054-170444605-958746196=:8452"
}
}
},
"subject": {
"Text": "PNG graphic"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"mime_version": {
"Text": "1.0"
}
},
"offsets": [
{
"name": {
"Rfc": "date"
},
"start": 5,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 91
},
{
"name": {
"Rfc": "to"
},
"start": 94,
"end": 150
},
{
"name": {
"Rfc": "subject"
},
"start": 158,
"end": 172
},
{
"name": {
"Rfc": "message_id"
},
"start": 183,
"end": 247
},
{
"name": {
"Rfc": "mime_version"
},
"start": 260,
"end": 266
},
{
"name": {
"Rfc": "content_type"
},
"start": 279,
"end": 347
"subject": {
"Text": "PNG graphic"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
]
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 10,
"minute": 23,
"second": 16,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "date"
},
"start": 5,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 91
},
{
"name": {
"Rfc": "to"
},
"start": 94,
"end": 150
},
{
"name": {
"Rfc": "subject"
},
"start": 158,
"end": 172
},
{
"name": {
"Rfc": "message_id"
},
"start": 183,
"end": 247
},
{
"name": {
"Rfc": "mime_version"
},
"start": 260,
"end": 266
},
{
"name": {
"Rfc": "content_type"
},
"start": 279,
"end": 347
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
}
1
],
"parts": [
{
"Text": {
"contents": "<html><body></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "US-ASCII"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "US-ASCII"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 623,
"end": 654
}
]
}
},
"contents": "\r"
"body": "\r"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "octet-stream",
"attributes": {
"name": "redball.png"
}
}
},
"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",
"attributes": {
"filename": "redball.png"
}
"content_id": {
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
},
"content_description": {
"Text": "red ball"
},
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "octet-stream",
"attributes": {
"name": "redball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 712,
"end": 759
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 785,
"end": 794
},
{
"name": {
"Rfc": "content_id"
},
"start": 805,
"end": 862
},
{
"name": {
"Rfc": "content_description"
},
"start": 882,
"end": 893
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 913,
"end": 950
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1730,10 +1671,10 @@ vAAAAABJRU5ErkJggg==
"structure": {
"List": [
{
"Part": 1
"Part": 0
},
{
"Part": 2
"Part": 1
}
]
},
+148 -200
View File
@@ -59,241 +59,189 @@ Birds of a feather flock together.
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"message_id": {
"Text": "3923686C.99FB5E36@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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
}
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------77060D866A66DC8D0921E051"
}
"headers_rfc": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 50,
"second": 4,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------77060D866A66DC8D0921E051"
}
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"message_id": {
"Text": "3923686C.99FB5E36@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
}
]
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
}
1
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
}
},
"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"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "farmerandstork.txt"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 477,
"end": 508
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 534,
"end": 541
}
]
},
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "farmerandstork.txt"
}
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii",
"name": "farmerandstork.txt"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
"content_transfer_encoding": {
"Text": "7bit"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1365,
"end": 1425
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1451,
"end": 1458
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1478,
"end": 1520
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii",
"name": "farmerandstork.txt"
}
}
]
}
},
"contents": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
}
}
],
"structure": {
"List": [
{
"Part": 1
"Part": 0
},
{
"Part": 2
"Part": 1
}
]
},
+133 -171
View File
@@ -62,126 +62,124 @@ als wir."
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "------------9D454F23DA86BCD63FA3805F"
}
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
},
"message_id": {
"Text": "392359CF.DFF4527@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
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
"headers_rfc": {
"message_id": {
"Text": "392359CF.DFF4527@example.com"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"other_values": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 22,
"minute": 47,
"second": 43,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 44
},
{
"name": {
"Rfc": "date"
},
"start": 49,
"end": 83
},
{
"name": {
"Rfc": "from"
},
"start": 88,
"end": 125
},
{
"name": {
"Other": "X-Mailer"
},
"start": 134,
"end": 164
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 182,
"end": 187
},
{
"name": {
"Rfc": "mime_version"
},
"start": 200,
"end": 206
},
{
"name": {
"Rfc": "to"
},
"start": 209,
"end": 265
},
{
"name": {
"Rfc": "subject"
},
"start": 273,
"end": 348
},
{
"name": {
"Rfc": "content_type"
},
"start": 361,
"end": 436
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
]
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "------------9D454F23DA86BCD63FA3805F"
}
}
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 44
},
{
"name": {
"Rfc": "date"
},
"start": 49,
"end": 83
},
{
"name": {
"Rfc": "from"
},
"start": 88,
"end": 125
},
{
"name": {
"Other": "X-Mailer"
},
"start": 134,
"end": 164
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 182,
"end": 187
},
{
"name": {
"Rfc": "mime_version"
},
"start": 200,
"end": 206
},
{
"name": {
"Rfc": "to"
},
"start": 209,
"end": 265
},
{
"name": {
"Rfc": "subject"
},
"start": 273,
"end": 348
},
{
"name": {
"Rfc": "content_type"
},
"start": 361,
"end": 436
}
],
"html_body": [
1
],
@@ -192,75 +190,39 @@ als wir."
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 493,
"end": 526
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 552,
"end": 571
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
"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"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "us-ascii"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "us-ascii"
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1426,
"end": 1456
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1482,
"end": 1489
}
]
"content_transfer_encoding": {
"Text": "7bit"
}
},
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Fr&ouml;sche</b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;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 &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<br>&nbsp;\r\n<br>&nbsp;</html>\r\n\r"
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Fr&ouml;sche</b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;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 &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<br>&nbsp;\r\n<br>&nbsp;</html>\r\n\r"
}
}
],
+192 -298
View File
@@ -138,242 +138,186 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 6,
"second": 4,
"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"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"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_rfc": {
"message_id": {
"Text": "39235E1C.1DC7EA90@example.com"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------A1FCDEE154E03D875E5D6779"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 6,
"second": 4,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
}
],
"html_body": [
0,
2,
3,
4
],
"text_body": [
1,
2,
3,
4
3
],
"text_body": [
0,
1,
2,
3
],
"attachments": [
{
"Inline": 2
},
{
"Inline": 3
},
{
"Inline": 4
}
1,
2,
3
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der<br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt<br/>erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs<br/>schnellste untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
}
},
"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"
}
},
{
"Text": {
"InlineBinary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
"content_transfer_encoding": {
"Text": "base64"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 477,
"end": 510
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 536,
"end": 555
}
]
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "redball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1410,
"end": 1444
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1470,
"end": 1479
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1499,
"end": 1534
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "redball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1831,55 +1775,30 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3583,
"end": 3619
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3645,
"end": 3654
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3674,
"end": 3711
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3182,55 +3101,30 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5548,
"end": 5583
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5609,
"end": 5618
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5638,
"end": 5674
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -4562,6 +4456,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
@@ -4570,9 +4467,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
},
{
"Part": 3
},
{
"Part": 4
}
]
},
+135 -194
View File
@@ -43,235 +43,176 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@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"
},
"message_id": {
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.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
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "-1463757054-891160829-958746372=:8452"
}
"headers_rfc": {
"to": {
"AddressList": [
{
"name": "Joe Blow",
"address": "blow@example.com"
},
{
"name": "Heinz Müller",
"address": "mueller@example.com"
}
]
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 10,
"minute": 26,
"second": 12,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "date"
},
"start": 5,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 91
},
{
"name": {
"Rfc": "to"
},
"start": 94,
"end": 185
},
{
"name": {
"Rfc": "subject"
},
"start": 193,
"end": 240
},
{
"name": {
"Rfc": "message_id"
},
"start": 251,
"end": 315
},
{
"name": {
"Rfc": "mime_version"
},
"start": 328,
"end": 334
},
{
"name": {
"Rfc": "content_type"
},
"start": 347,
"end": 415
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
]
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"message_id": {
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "-1463757054-891160829-958746372=:8452"
}
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "date"
},
"start": 5,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 91
},
{
"name": {
"Rfc": "to"
},
"start": 94,
"end": 185
},
{
"name": {
"Rfc": "subject"
},
"start": 193,
"end": 240
},
{
"name": {
"Rfc": "message_id"
},
"start": 251,
"end": 315
},
{
"name": {
"Rfc": "mime_version"
},
"start": 328,
"end": 334
},
{
"name": {
"Rfc": "content_type"
},
"start": 347,
"end": 415
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
}
1
],
"parts": [
{
"Text": {
"contents": "<html><body></body></html>"
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "US-ASCII"
}
}
}
},
"body": "\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "US-ASCII"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"name": "HasenundFrösche.txt",
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 691,
"end": 722
}
]
},
"contents": "\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_description": {
"Text": "Short story in German"
},
"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"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFrösche.txt"
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFrösche.txt"
}
}
},
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_id": {
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 780,
"end": 856
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 882,
"end": 891
},
{
"name": {
"Rfc": "content_id"
},
"start": 902,
"end": 959
},
{
"name": {
"Rfc": "content_description"
},
"start": 979,
"end": 1003
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1023,
"end": 1083
}
]
"content_id": {
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
}
},
"contents": "Die Hasen und die Frösche\r\r\n\r\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\r\n\r\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\r\n\r\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\r\n\r\r\n"
"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": 1
"Part": 0
},
{
"Part": 2
"Part": 1
}
]
},
+125 -132
View File
@@ -33,156 +33,149 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 22,
"minute": 31,
"second": 57,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 277
},
{
"name": {
"Rfc": "subject"
},
"start": 285,
"end": 360
},
{
"name": {
"Rfc": "content_type"
},
"start": 373,
"end": 406
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 432,
"end": 451
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
]
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
},
"message_id": {
"Text": "3923561C.B7078DEF@example.com"
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 277
},
{
"name": {
"Rfc": "subject"
},
"start": 285,
"end": 360
},
{
"name": {
"Rfc": "content_type"
},
"start": 373,
"end": 406
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 432,
"end": 451
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der<br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt<br/>erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs<br/>schnellste untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 453,
+147 -199
View File
@@ -61,241 +61,189 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------CA611088711119FBDB3473B4"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------CA611088711119FBDB3473B4"
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"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"
}
},
"other_values": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "392367BC.3D075C95@example.com"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
]
},
"date": {
"DateTime": {
"year": 2000,
"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"
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
}
1
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 477,
"end": 508
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 534,
"end": 541
}
]
},
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "HasenundFrösche.txt"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"name": "HasenundFrösche.txt",
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1",
"name": "HasenundFrösche.txt"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1365,
"end": 1449
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1475,
"end": 1494
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1514,
"end": 1578
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "HasenundFrösche.txt"
}
}
]
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
"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": 1
"Part": 0
},
{
"Part": 2
"Part": 1
}
]
},
+193 -299
View File
@@ -156,242 +156,186 @@ end
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------177483472E7788F4AD46AB1A"
}
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 23,
"minute": 44,
"second": 12,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "3923670C.67D83A99@example.com"
"headers_rfc": {
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"other_values": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
"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": "------------177483472E7788F4AD46AB1A"
}
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
"message_id": {
"Text": "3923670C.67D83A99@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
}
]
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 45
},
{
"name": {
"Rfc": "date"
},
"start": 50,
"end": 84
},
{
"name": {
"Rfc": "from"
},
"start": 89,
"end": 126
},
{
"name": {
"Other": "X-Mailer"
},
"start": 135,
"end": 165
},
{
"name": {
"Other": "X-Accept-Language"
},
"start": 183,
"end": 188
},
{
"name": {
"Rfc": "mime_version"
},
"start": 201,
"end": 207
},
{
"name": {
"Rfc": "to"
},
"start": 210,
"end": 240
},
{
"name": {
"Rfc": "subject"
},
"start": 248,
"end": 294
},
{
"name": {
"Rfc": "content_type"
},
"start": 307,
"end": 376
}
],
"html_body": [
0,
2,
3,
4
],
"text_body": [
1,
2,
3,
4
3
],
"text_body": [
0,
1,
2,
3
],
"attachments": [
{
"Inline": 2
},
{
"Inline": 3
},
{
"Inline": 4
}
1,
2,
3
],
"parts": [
{
"Text": {
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
}
},
"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"
}
},
{
"Text": {
"InlineBinary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 477,
"end": 508
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 534,
"end": 541
}
]
},
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
}
},
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
"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": "x-uuencode"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1365,
"end": 1399
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1425,
"end": 1438
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1458,
"end": 1493
}
]
}
},
"contents": [
"body": [
98,
101,
103,
@@ -2464,55 +2408,30 @@ end
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3617,
"end": 3653
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3679,
"end": 3692
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3712,
"end": 3749
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
]
}
},
"contents": [
"body": [
98,
101,
103,
@@ -4367,55 +4286,30 @@ end
}
},
{
"Binary": {
"InlineBinary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5655,
"end": 5690
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 5716,
"end": 5729
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 5749,
"end": 5785
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
}
},
"contents": [
"body": [
98,
101,
103,
@@ -6310,6 +6204,9 @@ end
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
@@ -6318,9 +6215,6 @@ end
},
{
"Part": 3
},
{
"Part": 4
}
]
},
+119 -126
View File
File diff suppressed because one or more lines are too long
+180 -273
View File
@@ -110,254 +110,193 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "text/html",
"boundary": "=====================_715546120==_.REL"
}
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 39,
"second": 36,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"message_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "text/html",
"boundary": "=====================_715546120==_.REL"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "2 (High)"
"message_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 39,
"second": 36,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 508
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
]
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 508
}
],
"html_body": [
1
0
],
"text_body": [
0
],
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 3
}
1,
2
],
"parts": [
{
"Text": {
"contents": "\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 565,
"end": 599
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 625,
"end": 644
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "iso-8859-1"
}
}
]
}
},
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.2\" width=27 height=27 alt=\"2aa658b6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <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"
"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; &quot;wir leben&quot;, sprach ein Redner, &quot;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.&quot; <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&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;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.&quot; <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.3\" width=27 height=27 alt=\"2aa658c0.png\"></font></html>\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa658b6.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa658b6.png"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa658b6.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1942,
"end": 1975
},
{
"name": {
"Rfc": "content_id"
},
"start": 1986,
"end": 2041
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 2067,
"end": 2076
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 2096,
"end": 2130
"content_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa658b6.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1689,63 +1628,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"values": {
"content_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa658c0.png"
}
}
},
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 4003,
"end": 4036
},
{
"name": {
"Rfc": "content_id"
},
"start": 4047,
"end": 4102
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 4128,
"end": 4137
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 4157,
"end": 4191
"content_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa658c0.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3205,14 +3112,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
}
]
},
+223 -381
View File
@@ -162,284 +162,208 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"message_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"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
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_715515186==_"
}
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
"headers_rfc": {
"subject": {
"Text": "Die Hasen und die Frösche"
},
"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==_"
}
}
},
"other_values": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "2 (High)"
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 482
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@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
}
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "message_id"
},
"start": 11,
"end": 64
},
{
"name": {
"Other": "X-Sender"
},
"start": 73,
"end": 113
},
{
"name": {
"Other": "X-Mailer"
},
"start": 122,
"end": 170
},
{
"name": {
"Other": "X-Priority"
},
"start": 181,
"end": 192
},
{
"name": {
"Rfc": "date"
},
"start": 197,
"end": 231
},
{
"name": {
"Rfc": "to"
},
"start": 234,
"end": 288
},
{
"name": {
"Rfc": "from"
},
"start": 293,
"end": 330
},
{
"name": {
"Rfc": "subject"
},
"start": 338,
"end": 383
},
{
"name": {
"Rfc": "mime_version"
},
"start": 396,
"end": 402
},
{
"name": {
"Rfc": "content_type"
},
"start": 415,
"end": 482
}
],
"html_body": [
1
],
"text_body": [
2
1
],
"attachments": [
{
"Attachment": 3
},
{
"Attachment": 4
},
{
"Attachment": 5
},
{
"Attachment": 6
}
2,
3,
4,
5
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "=====================_715515186==_.REL",
"type": "text/plain"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "text/plain",
"boundary": "=====================_715515186==_.REL"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 535,
"end": 629
}
]
}
},
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/>2aa5e03a.png2aa5e044.png</body></html>"
}
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 686,
"end": 721
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 747,
"end": 766
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa5e03a.png2aa5e044.png"
"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": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa5e03a.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa5e03a.png"
}
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa5e03a.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1658,
"end": 1691
},
{
"name": {
"Rfc": "content_id"
},
"start": 1702,
"end": 1757
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1783,
"end": 1792
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 1812,
"end": 1846
"content_transfer_encoding": {
"Text": "base64"
},
"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"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -1771,63 +1695,31 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa5e044.png"
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa5e044.png"
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "2aa5e044.png"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 3719,
"end": 3752
},
{
"name": {
"Rfc": "content_id"
},
"start": 3763,
"end": 3818
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 3844,
"end": 3853
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 3873,
"end": 3907
"content_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa5e044.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -3287,53 +3179,28 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 5998,
"end": 6031
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 6057,
"end": 6066
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 6086,
"end": 6124
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "blueball.png"
}
}
]
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": [
"body": [
137,
80,
78,
@@ -4665,53 +4532,28 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 7993,
"end": 8027
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 8053,
"end": 8062
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 8082,
"end": 8121
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
]
}
},
"contents": [
"body": [
137,
80,
78,
@@ -6020,23 +5862,23 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"MultiPart": [
0,
[
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
},
{
"Part": 4
}
]
]
},
{
"Part": 5
"Part": 4
},
{
"Part": 6
"Part": 5
}
]
},
+119 -126
View File
@@ -28,150 +28,143 @@ welche also wohl noch ungl
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"to": {
"Address": {
"name": "Heinz M�ller",
"address": "mueller@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 28,
"second": 40,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
"headers_rfc": {
"to": {
"Address": {
"name": "Heinz M�ller",
"address": "mueller@example.com"
}
},
"other_values": {
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 28,
"second": 40,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 82
},
{
"name": {
"Rfc": "subject"
},
"start": 90,
"end": 141
},
{
"name": {
"Rfc": "date"
},
"start": 146,
"end": 180
},
{
"name": {
"Rfc": "message_id"
},
"start": 191,
"end": 241
},
{
"name": {
"Other": "X-Priority"
},
"start": 252,
"end": 265
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 283,
"end": 292
},
{
"name": {
"Other": "X-Mailer"
},
"start": 301,
"end": 354
},
{
"name": {
"Other": "Importance"
},
"start": 365,
"end": 374
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 384,
"end": 432
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
]
}
},
"headers_other": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 82
},
{
"name": {
"Rfc": "subject"
},
"start": 90,
"end": 141
},
{
"name": {
"Rfc": "date"
},
"start": 146,
"end": 180
},
{
"name": {
"Rfc": "message_id"
},
"start": 191,
"end": 241
},
{
"name": {
"Other": "X-Priority"
},
"start": 252,
"end": 265
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 283,
"end": 292
},
{
"name": {
"Other": "X-Mailer"
},
"start": 301,
"end": 354
},
{
"name": {
"Other": "Importance"
},
"start": 365,
"end": 374
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 384,
"end": 432
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Fr�sche<br/><br/>Die Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod<br/>selbst. Auf, la�t uns ein f�r allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;<br/>allein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte<br/>eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein<br/>wenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl�cklicher sein m�ssen als wir.\"<br/><br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Fr�sche\r\n\r\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod\r\nselbst. Auf, la�t uns ein f�r allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\r\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte\r\neine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\r\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\r\n\r\n"
"body": "Die Hasen und die Fr�sche\r\n\r\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod\r\nselbst. Auf, la�t uns ein f�r allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\r\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte\r\neine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\r\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\r\n\r\n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 434,
+154 -161
View File
@@ -33,186 +33,179 @@ als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 27,
"second": 4,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
"headers_rfc": {
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
},
"other_values": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 97
},
{
"name": {
"Rfc": "subject"
},
"start": 105,
"end": 177
},
{
"name": {
"Rfc": "date"
},
"start": 182,
"end": 216
},
{
"name": {
"Rfc": "message_id"
},
"start": 227,
"end": 277
},
{
"name": {
"Rfc": "mime_version"
},
"start": 290,
"end": 296
},
{
"name": {
"Rfc": "content_type"
},
"start": 309,
"end": 341
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 367,
"end": 386
},
{
"name": {
"Other": "X-Priority"
},
"start": 397,
"end": 410
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 428,
"end": 437
},
{
"name": {
"Other": "X-Mailer"
},
"start": 446,
"end": 499
},
{
"name": {
"Other": "Importance"
},
"start": 510,
"end": 519
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 529,
"end": 577
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 27,
"second": 4,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
]
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 40
},
{
"name": {
"Rfc": "to"
},
"start": 43,
"end": 97
},
{
"name": {
"Rfc": "subject"
},
"start": 105,
"end": 177
},
{
"name": {
"Rfc": "date"
},
"start": 182,
"end": 216
},
{
"name": {
"Rfc": "message_id"
},
"start": 227,
"end": 277
},
{
"name": {
"Rfc": "mime_version"
},
"start": 290,
"end": 296
},
{
"name": {
"Rfc": "content_type"
},
"start": 309,
"end": 341
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 367,
"end": 386
},
{
"name": {
"Other": "X-Priority"
},
"start": 397,
"end": 410
},
{
"name": {
"Other": "X-MSMail-Priority"
},
"start": 428,
"end": 437
},
{
"name": {
"Other": "X-Mailer"
},
"start": 446,
"end": 499
},
{
"name": {
"Other": "Importance"
},
"start": 510,
"end": 519
},
{
"name": {
"Other": "X-MimeOLE"
},
"start": 529,
"end": 577
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
}
},
{
"Text": {
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 579,
+52 -19
View File
@@ -11,32 +11,65 @@ Content-Type: text/html
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": ":foo"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": ":foo"
}
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 47
}
],
"html_body": [
0,
1
],
"text_body": [
0,
1
],
"parts": [
{
"Text": {
"body": "Content-Type: text/plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
},
"start": 13,
"end": 47
"body": "Content-Type: text/html"
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
}
]
},
"structure": {
"List": []
},
"offset_header": 0,
"offset_body": 48,
"offset_end": 160
"offset_end": 159
}
+27 -45
View File
@@ -11,67 +11,49 @@ Content-Type: text/plain
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 45
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 45
}
],
"html_body": [
1
],
"text_body": [
2
1
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "a"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "a"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 64,
"end": 95
}
]
}
}
},
{
"Text": {
"contents": "<html><body>Content-Type: text/plain<br/></body></html>"
}
},
{
"Text": {
"contents": "Content-Type: text/plain\n"
"body": "Content-Type: text/plain\n"
}
}
],
@@ -80,7 +62,7 @@ Content-Type: text/plain
0,
[
{
"Part": 2
"Part": 1
}
]
]
+20 -24
View File
@@ -4,37 +4,33 @@ body
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 45
}
]
},
"attachments": [
{
"Attachment": 0
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 45
}
],
"attachments": [
0
],
"parts": [
{
"Text": {
"contents": "body\n"
"body": "body\n"
}
}
],
+32 -58
View File
@@ -10,80 +10,54 @@ body
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
},
"attachments": [
{
"Attachment": 1
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"attachments": [
1
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "a"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "a"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 62,
"end": 93
}
]
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 111,
"end": 123
}
]
}
},
"contents": "body\n"
"body": "body\n"
}
}
],
+20 -24
View File
@@ -10,37 +10,33 @@ body
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
},
"attachments": [
{
"Attachment": 0
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"attachments": [
0
],
"parts": [
{
"Text": {
"contents": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
"body": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
}
}
],
+32 -61
View File
@@ -14,86 +14,57 @@ body2
--a----
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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--"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 46
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 46
}
],
"html_body": [
1
],
"text_body": [
2
1
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "a----"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "a----"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 66,
"end": 101
}
]
}
},
{
"Text": {
"contents": "<html><body>body</body></html>"
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 123,
"end": 135
}
]
}
},
"contents": "body"
"body": "body"
}
}
],
@@ -102,7 +73,7 @@ body2
0,
[
{
"Part": 2
"Part": 1
}
]
]
+32 -58
View File
@@ -10,80 +10,54 @@ body
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
},
"attachments": [
{
"Attachment": 1
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"attachments": [
1
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "ab"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "ab"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 62,
"end": 94
}
]
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 113,
"end": 125
}
]
}
},
"contents": "body\n"
"body": "body\n"
}
}
],
+29 -51
View File
@@ -12,71 +12,49 @@ Content-Type: text/plain
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
},
"attachments": [
{
"Attachment": 1
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"attachments": [
1
],
"parts": [
{
"Multipart": {
"values": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "ab"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "ab"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 62,
"end": 94
},
{
"name": {
"Rfc": "mime_version"
},
"start": 107,
"end": 112
}
]
"mime_version": {
"Text": "1.0"
}
}
},
{
"Text": {
"contents": "--a--\n\n"
"body": "--a--\n\n"
}
}
],
+32 -58
View File
@@ -14,80 +14,54 @@ body2
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"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"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 45
}
]
},
"attachments": [
{
"Attachment": 1
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 45
}
],
"attachments": [
1
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "a"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "a"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 64,
"end": 95
}
]
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 113,
"end": 125
}
]
}
},
"contents": "body\n--ab\nContent-Type: text/html\n\nbody2\n"
"body": "body\n--ab\nContent-Type: text/html\n\nbody2\n"
}
}
],
+44 -86
View File
@@ -18,115 +18,73 @@ Content-Type: text/plain
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"html_body": [
1
],
"text_body": [
2
1
],
"attachments": [
{
"Attachment": 3
}
2
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
"c_type": "text",
"c_subtype": "plain"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 62,
"end": 93
}
]
}
},
{
"Text": {
"contents": "<html><body>1</body></html>"
"body": "1"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 111,
"end": 123
}
]
}
},
"contents": "1"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 143,
"end": 155
}
]
},
"contents": "22\n--1\nContent-Type: text/plain\n\n333\n"
"body": "22\n--1\nContent-Type: text/plain\n\n333\n"
}
}
],
@@ -135,10 +93,10 @@ Content-Type: text/plain
0,
[
{
"Part": 2
"Part": 1
},
{
"Part": 3
"Part": 2
}
]
]
+81 -100
View File
@@ -8,47 +8,39 @@ Content-Type: text/plain
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 29
}
]
},
"attachments": [
{
"Attachment": 1
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 29
}
],
"attachments": [
0
],
"parts": [
{
"Multipart": {
"values": {
"Message": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
}
}
},
{
"Message": {
"headers": {
"values": {
},
"body": {
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "message",
@@ -56,88 +48,77 @@ Content-Type: text/plain
}
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 43,
"end": 59
"start": 13,
"end": 29
}
]
},
"attachments": [
{
"Attachment": 1
}
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
}
}
},
{
"Message": {
"headers": {
"values": {
],
"attachments": [
0
],
"parts": [
{
"Message": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_type": "message",
"c_subtype": "rfc822"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 73,
"end": 85
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"parts": [
{
"Text": {
"contents": "<html><body>1<br/></body></html>"
}
},
{
"Text": {
"contents": "1\n"
}
"body": {
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 25
}
],
"html_body": [
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"body": "1\n"
}
}
],
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 26,
"offset_end": 28
}
],
"structure": {
"Part": 1
},
"offset_header": 60,
"offset_body": 86,
"offset_end": 88
}
}
}
],
"structure": {
"Part": 0
},
"offset_header": 30,
"offset_body": 60,
"offset_end": 88
],
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 30,
"offset_end": 58
}
}
}
],
+44 -86
View File
@@ -18,115 +18,73 @@ Content-Type: text/plain
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"html_body": [
1
],
"text_body": [
2
1
],
"attachments": [
{
"Attachment": 3
}
2
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
"c_type": "text",
"c_subtype": "plain"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 62,
"end": 93
}
]
}
},
{
"Text": {
"contents": "<html><body>1</body></html>"
"body": "1"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 111,
"end": 123
}
]
}
},
"contents": "1"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 143,
"end": 155
}
]
},
"contents": "22\n--1\nContent-Type: text/plain\n\n333\n"
"body": "22\n--1\nContent-Type: text/plain\n\n333\n"
}
}
],
@@ -135,10 +93,10 @@ Content-Type: text/plain
0,
[
{
"Part": 2
"Part": 1
},
{
"Part": 3
"Part": 2
}
]
]
+57 -141
View File
@@ -24,64 +24,47 @@ Content-Type: text/plain
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
},
"attachments": [
{
"Attachment": 2
},
{
"Attachment": 4
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"attachments": [
1,
2
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 62,
"end": 93
}
]
}
}
},
{
"Multipart": {
"values": {
"Message": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "message",
@@ -89,21 +72,8 @@ Content-Type: text/plain
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 111,
"end": 127
}
]
}
},
{
"Message": {
"headers": {
"values": {
"body": {
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "text",
@@ -111,45 +81,40 @@ Content-Type: text/plain
}
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 141,
"end": 153
"start": 13,
"end": 25
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"parts": [
{
"Text": {
"contents": "<html><body>1</body></html>"
],
"html_body": [
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"body": "1"
}
}
],
"structure": {
"Part": 0
},
{
"Text": {
"contents": "1"
}
}
],
"structure": {
"Part": 1
},
"offset_header": 128,
"offset_body": 154,
"offset_end": 160
"offset_header": 0,
"offset_body": 26,
"offset_end": 27
}
}
},
{
"Multipart": {
"values": {
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "message",
@@ -157,56 +122,7 @@ Content-Type: text/plain
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 173,
"end": 189
}
]
}
},
{
"Message": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 203,
"end": 215
}
]
},
"attachments": [
{
"Attachment": 0
}
],
"parts": [
{
"Text": {
"contents": "22\n--1\nContent-Type: message/rfc822\n\nContent-Type: text/plain\n\n333\n"
}
}
],
"structure": {
"Part": 0
},
"offset_header": 190,
"offset_body": 216,
"offset_end": 283
"body": "Content-Type: text/plain\n\n22\n--1\nContent-Type: message/rfc822\n\nContent-Type: text/plain\n\n333\n"
}
}
],
@@ -218,7 +134,7 @@ Content-Type: text/plain
"Part": 1
},
{
"Part": 3
"Part": 2
}
]
]
+84 -204
View File
@@ -33,273 +33,153 @@ hello, world
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
},
"mime_version": {
"Text": "1.0"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
},
{
"name": {
"Rfc": "mime_version"
},
"start": 57,
"end": 62
}
]
"mime_version": {
"Text": "1.0"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
},
{
"name": {
"Rfc": "mime_version"
},
"start": 57,
"end": 62
}
],
"html_body": [
0,
3,
6,
9
2,
4,
6
],
"text_body": [
1,
0,
2,
4,
7,
10
6
],
"parts": [
{
"Text": {
"contents": "<html><body>hello, world</body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 80,
"end": 92
}
]
}
},
"contents": "hello, world"
"body": "hello, world"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"mime_version": {
"Text": "2.0"
}
"mime_version": {
"Text": "2.0"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 123,
"end": 154
},
{
"name": {
"Rfc": "mime_version"
},
"start": 167,
"end": 172
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
]
}
},
{
"Text": {
"contents": "<html><body>hello, world</body></html>"
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 190,
"end": 202
}
]
}
},
"contents": "hello, world"
"body": "hello, world"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
},
"mime_version": {
"Text": "abc"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 233,
"end": 264
},
{
"name": {
"Rfc": "mime_version"
},
"start": 277,
"end": 282
}
]
}
},
{
"Text": {
"contents": "<html><body>hello, world</body></html>"
"mime_version": {
"Text": "abc"
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 300,
"end": 312
}
]
}
},
"contents": "hello, world"
"body": "hello, world"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 343,
"end": 374
},
{
"name": {
"Rfc": "mime_version"
},
"start": 387,
"end": 388
}
]
}
},
{
"Text": {
"contents": "<html><body>hello, world</body></html>"
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 406,
"end": 418
}
]
}
},
"contents": "hello, world"
"body": "hello, world"
}
}
],
"structure": {
"MultiPart": [
8,
5,
[
{
"Part": 10
"Part": 6
}
]
]
+25 -43
View File
@@ -8,67 +8,49 @@ hello, world
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"parts": [
{
"Text": {
"contents": "<html><body>hello, world</body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 62,
"end": 74
}
]
}
},
"contents": "hello, world"
"body": "hello, world"
}
}
],
"structure": {
"Part": 1
"Part": 0
},
"offset_header": 0,
"offset_body": 45,
+123 -161
View File
@@ -26,192 +26,154 @@ invalid
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"return_path": {
"Text": "test@example.org"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "signed",
"attributes": {
"protocol": "application/pgp-signature",
"micalg": "pgp-sha1",
"boundary": "=-GNQXLhuj24Pl1aCkk4/d"
}
"headers_rfc": {
"message_id": {
"Text": "1.2.3.4@example"
},
"subject": {
"Text": "Hello world"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "signed",
"attributes": {
"boundary": "=-GNQXLhuj24Pl1aCkk4/d",
"micalg": "pgp-sha1",
"protocol": "application/pgp-signature"
}
},
"to": {
"Address": {
"name": "Another User",
"address": "test2@example.org"
}
},
"date": {
"DateTime": {
"year": 2007,
"month": 5,
"day": 23,
"hour": 4,
"minute": 58,
"second": 8,
"tz_before_gmt": false,
"tz_hour": 3,
"tz_minute": 0
}
},
"message_id": {
"Text": "1.2.3.4@example"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Test User",
"address": "test@example.org"
}
},
"subject": {
"Text": "Hello world"
}
},
"offsets": [
{
"name": {
"Rfc": "return_path"
},
"start": 12,
"end": 32
},
{
"name": {
"Rfc": "subject"
},
"start": 40,
"end": 53
},
{
"name": {
"Rfc": "from"
},
"start": 58,
"end": 88
},
{
"name": {
"Rfc": "to"
},
"start": 91,
"end": 125
},
{
"name": {
"Rfc": "message_id"
},
"start": 136,
"end": 155
},
{
"name": {
"Rfc": "mime_version"
},
"start": 168,
"end": 173
},
{
"name": {
"Rfc": "date"
},
"start": 178,
"end": 211
},
{
"name": {
"Rfc": "content_type"
},
"start": 224,
"end": 334
"to": {
"Address": {
"name": "Another User",
"address": "test2@example.org"
}
]
},
"return_path": {
"Text": "test@example.org"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Test User",
"address": "test@example.org"
}
},
"date": {
"DateTime": {
"year": 2007,
"month": 5,
"day": 23,
"hour": 4,
"minute": 58,
"second": 8,
"tz_before_gmt": false,
"tz_hour": 3,
"tz_minute": 0
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "return_path"
},
"start": 12,
"end": 32
},
{
"name": {
"Rfc": "subject"
},
"start": 40,
"end": 53
},
{
"name": {
"Rfc": "from"
},
"start": 58,
"end": 88
},
{
"name": {
"Rfc": "to"
},
"start": 91,
"end": 125
},
{
"name": {
"Rfc": "message_id"
},
"start": 136,
"end": 155
},
{
"name": {
"Rfc": "mime_version"
},
"start": 168,
"end": 173
},
{
"name": {
"Rfc": "date"
},
"start": 178,
"end": 211
},
{
"name": {
"Rfc": "content_type"
},
"start": 224,
"end": 334
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
}
1
],
"parts": [
{
"Text": {
"contents": "<html><body>There was a day <br/>a happy day<br/></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 373,
"end": 385
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 411,
"end": 429
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "There was a day \na happy day\n"
"body": "There was a day \na happy day\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "pgp-signature",
"attributes": {
"name": "signature.asc"
}
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "pgp-signature",
"attributes": {
"name": "signature.asc"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 502,
"end": 549
}
]
}
},
"contents": [
"body": [
105,
110,
118,
@@ -227,10 +189,10 @@ invalid
"structure": {
"List": [
{
"Part": 1
"Part": 0
},
{
"Part": 2
"Part": 1
}
]
},
+51 -104
View File
@@ -25,139 +25,86 @@ Content-Type: text/plain
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1234567890123456789012345678901234567890123456789012345678901234567890123456789012"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1234567890123456789012345678901234567890123456789012345678901234567890123456789012"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 125
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 125
}
],
"html_body": [
2
],
"text_body": [
3
2
],
"attachments": [
{
"Attachment": 4
}
3
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "123456789012345678901234567890123456789012345678901234567890123456789012345678901"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "123456789012345678901234567890123456789012345678901234567890123456789012345678901"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 224,
"end": 335
}
]
}
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
}
"c_type": "text",
"c_subtype": "plain"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 433,
"end": 543
}
]
}
},
{
"Text": {
"contents": "<html><body>1<br/>--1234567890123456789012345678901234567890123456789012345678901234567890123456789012<br/>Content-Type: text/plain<br/><br/>22<br/>--123456789012345678901234567890123456789012345678901234567890123456789012345678901<br/>Content-Type: text/plain<br/><br/>333</body></html>"
"body": "1\n--1234567890123456789012345678901234567890123456789012345678901234567890123456789012\nContent-Type: text/plain\n\n22\n--123456789012345678901234567890123456789012345678901234567890123456789012345678901\nContent-Type: text/plain\n\n333"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 640,
"end": 652
}
]
}
},
"contents": "1\n--1234567890123456789012345678901234567890123456789012345678901234567890123456789012\nContent-Type: text/plain\n\n22\n--123456789012345678901234567890123456789012345678901234567890123456789012345678901\nContent-Type: text/plain\n\n333"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 979,
"end": 991
}
]
},
"contents": "4444\n"
"body": "4444\n"
}
}
],
@@ -166,10 +113,10 @@ Content-Type: text/plain
1,
[
{
"Part": 3
"Part": 2
},
{
"Part": 4
"Part": 3
}
]
]
+201 -308
View File
@@ -73,278 +73,189 @@ Content-Transfer-Encoding: Quoted-printable
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"from": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@nsb.fv.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "unique-boundary-1"
}
}
},
"subject": {
"Text": "A multipart example"
},
"to": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
},
"date": {
"DateTime": {
"year": 1994,
"month": 10,
"day": 7,
"hour": 16,
"minute": 15,
"second": 5,
"tz_before_gmt": true,
"tz_hour": 7,
"tz_minute": 0
"headers_rfc": {
"from": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@nsb.fv.com"
}
},
"date": {
"DateTime": {
"year": 1994,
"month": 10,
"day": 7,
"hour": 16,
"minute": 15,
"second": 5,
"tz_before_gmt": true,
"tz_hour": 7,
"tz_minute": 0
}
},
"subject": {
"Text": "A multipart example"
},
"to": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "unique-boundary-1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "mime_version"
},
"start": 13,
"end": 18
},
{
"name": {
"Rfc": "from"
},
"start": 23,
"end": 62
},
{
"name": {
"Rfc": "to"
},
"start": 65,
"end": 95
},
{
"name": {
"Rfc": "date"
},
"start": 100,
"end": 139
},
{
"name": {
"Rfc": "subject"
},
"start": 147,
"end": 168
},
{
"name": {
"Rfc": "content_type"
},
"start": 181,
"end": 238
}
]
"mime_version": {
"Text": "1.0"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "mime_version"
},
"start": 13,
"end": 18
},
{
"name": {
"Rfc": "from"
},
"start": 23,
"end": 62
},
{
"name": {
"Rfc": "to"
},
"start": 65,
"end": 95
},
{
"name": {
"Rfc": "date"
},
"start": 100,
"end": 139
},
{
"name": {
"Rfc": "subject"
},
"start": 147,
"end": 168
},
{
"name": {
"Rfc": "content_type"
},
"start": 181,
"end": 238
}
],
"html_body": [
0,
2
1
],
"text_body": [
1,
3
0,
1
],
"attachments": [
{
"Attachment": 5
},
{
"Attachment": 6
},
{
"Attachment": 7
},
{
"Attachment": 9
}
3,
4,
5,
6
],
"parts": [
{
"Text": {
"contents": "<html><body>... Some text appears here ...<br/><br/>[Note that the blank between the boundary and the start<br/>of the text in this part means no header fields were<br/>given and this is text in the US-ASCII character set.<br/>It could have been done with explicit typing as in the<br/>next part.]<br/></body></html>"
}
},
{
"Text": {
"contents": "... Some text appears here ...\n\n[Note that the blank between the boundary and the start\nof the text in this part means no header fields were\ngiven and this is text in the US-ASCII character set.\nIt could have been done with explicit typing as in the\nnext part.]\n"
}
},
{
"Text": {
"contents": "<html><body>This could have been part of the previous part, but<br/>illustrates explicit versus implicit typing of body<br/>parts.<br/></body></html>"
"body": "... Some text appears here ...\n\n[Note that the blank between the boundary and the start\nof the text in this part means no header fields were\ngiven and this is text in the US-ASCII character set.\nIt could have been done with explicit typing as in the\nnext part.]\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "US-ASCII"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 827,
"end": 857
}
]
},
"contents": "This could have been part of the previous part, but\nillustrates explicit versus implicit typing of body\nparts.\n"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "parallel",
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"boundary": "unique-boundary-2"
"charset": "US-ASCII"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1003,
"end": 1051
}
]
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "audio",
"c_subtype": "basic"
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1085,
"end": 1098
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1124,
"end": 1132
}
]
},
"contents": "... base64-encoded 8000 Hz single-channel\n mu-law-format audio data goes here ...\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1252,
"end": 1264
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1290,
"end": 1298
}
]
},
"contents": "... base64-encoded image data goes here ...\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "enriched"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1400,
"end": 1415
}
]
},
"contents": "This is <bold><italic>enriched.</italic></bold>\n<smaller>as defined in RFC 1896</smaller>\n\nIsn't it\n<bigger><bigger>cool?</bigger></bigger>\n"
"body": "This could have been part of the previous part, but\nillustrates explicit versus implicit typing of body\nparts.\n"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "parallel",
"attributes": {
"boundary": "unique-boundary-2"
}
}
}
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "audio",
"c_subtype": "basic"
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": "... base64-encoded 8000 Hz single-channel\n mu-law-format audio data goes here ...\n"
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": "... base64-encoded image data goes here ...\n"
}
},
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "enriched"
}
}
},
"body": "This is <bold><italic>enriched.</italic></bold>\n<smaller>as defined in RFC 1896</smaller>\n\nIsn't it\n<bigger><bigger>cool?</bigger></bigger>\n"
}
},
{
"Message": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "message",
@@ -352,24 +263,11 @@ Content-Transfer-Encoding: Quoted-printable
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 1590,
"end": 1606
}
]
}
},
{
"Message": {
"headers": {
"values": {
"to": {
"body": {
"headers_rfc": {
"from": {
"Address": {
"name": "address in US-ASCII"
"name": "mailbox in US-ASCII"
}
},
"content_type": {
@@ -381,109 +279,104 @@ Content-Transfer-Encoding: Quoted-printable
}
}
},
"subject": {
"Text": "(subject in US-ASCII)"
"to": {
"Address": {
"name": "address in US-ASCII"
}
},
"content_transfer_encoding": {
"Text": "Quoted-printable"
},
"from": {
"Address": {
"name": "mailbox in US-ASCII"
}
"subject": {
"Text": "(subject in US-ASCII)"
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 1612,
"end": 1635
"start": 5,
"end": 28
},
{
"name": {
"Rfc": "to"
},
"start": 1638,
"end": 1661
"start": 31,
"end": 54
},
{
"name": {
"Rfc": "subject"
},
"start": 1669,
"end": 1692
"start": 62,
"end": 85
},
{
"name": {
"Rfc": "content_type"
},
"start": 1705,
"end": 1737
"start": 98,
"end": 130
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 1763,
"end": 1781
"start": 156,
"end": 174
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"parts": [
{
"Text": {
"contents": "<html><body>... Additional text in ISO-8859-1 goes here ...<br/></body></html>"
],
"html_body": [
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"body": "... Additional text in ISO-8859-1 goes here ...\n"
}
}
],
"structure": {
"Part": 0
},
{
"Text": {
"contents": "... Additional text in ISO-8859-1 goes here ...\n"
}
}
],
"structure": {
"Part": 1
},
"offset_header": 1607,
"offset_body": 1782,
"offset_end": 1850
"offset_header": 0,
"offset_body": 175,
"offset_end": 223
}
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 3
},
{
"MultiPart": [
4,
2,
[
{
"Part": 5
"Part": 3
},
{
"Part": 6
"Part": 4
}
]
]
},
{
"Part": 7
"Part": 5
},
{
"Part": 8
"Part": 6
}
]
},
+122 -163
View File
@@ -41,141 +41,122 @@ get RFC-MIME.DOC
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"message_id": {
"Text": "id1@host.com"
},
"to": {
"Address": {
"name": "Someone"
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "id1@host.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "42"
}
},
"subject": {
"Text": "whatever"
},
"from": {
"Address": {
"name": "Whomever"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "42"
}
}
},
"content_id": {
"Text": "id001@guppylake.bellcore.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 15
},
{
"name": {
"Rfc": "to"
},
"start": 18,
"end": 27
},
{
"name": {
"Rfc": "date"
},
"start": 32,
"end": 42
},
{
"name": {
"Rfc": "subject"
},
"start": 50,
"end": 60
},
{
"name": {
"Rfc": "mime_version"
},
"start": 73,
"end": 78
},
{
"name": {
"Rfc": "message_id"
},
"start": 89,
"end": 105
},
{
"name": {
"Rfc": "content_type"
},
"start": 118,
"end": 154
},
{
"name": {
"Rfc": "content_id"
},
"start": 165,
"end": 197
"content_id": {
"Text": "id001@guppylake.bellcore.com"
},
"to": {
"Address": {
"name": "Someone"
}
]
},
"attachments": [
{
"Attachment": 0
},
{
"Attachment": 1
"subject": {
"Text": "whatever"
},
{
"Attachment": 2
"from": {
"Address": {
"name": "Whomever"
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 15
},
{
"name": {
"Rfc": "to"
},
"start": 18,
"end": 27
},
{
"name": {
"Rfc": "date"
},
"start": 32,
"end": 42
},
{
"name": {
"Rfc": "subject"
},
"start": 50,
"end": 60
},
{
"name": {
"Rfc": "mime_version"
},
"start": 73,
"end": 78
},
{
"name": {
"Rfc": "message_id"
},
"start": 89,
"end": 105
},
{
"name": {
"Rfc": "content_type"
},
"start": 118,
"end": 154
},
{
"name": {
"Rfc": "content_id"
},
"start": 165,
"end": 197
}
],
"attachments": [
0,
1,
2
],
"parts": [
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"access-type": "ANON-FTP",
"directory": "pub",
"name": "BodyFormats.ps",
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"mode": "image",
"site": "thumper.bellcore.com"
}
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"directory": "pub",
"mode": "image",
"name": "BodyFormats.ps",
"site": "thumper.bellcore.com",
"access-type": "ANON-FTP"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 216,
"end": 432
}
]
}
},
"contents": [
"body": [
67,
111,
110,
@@ -261,31 +242,20 @@ get RFC-MIME.DOC
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"access-type": "local-file",
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps",
"site": "thumper.bellcore.com"
}
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"access-type": "local-file",
"site": "thumper.bellcore.com",
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 531,
"end": 735
}
]
}
},
"contents": [
"body": [
67,
111,
110,
@@ -371,30 +341,19 @@ get RFC-MIME.DOC
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"access-type": "mail-server",
"server": "listserv@bogus.bitnet",
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
}
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"server": "listserv@bogus.bitnet",
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"access-type": "mail-server"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 834,
"end": 1001
}
]
}
},
"contents": [
"body": [
67,
111,
110,
+457 -561
View File
File diff suppressed because it is too large Load Diff
+104 -148
View File
@@ -25,182 +25,143 @@ Content-Type: application/x-whatever
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"to": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
},
"date": {
"DateTime": {
"year": 1993,
"month": 3,
"day": 22,
"hour": 9,
"minute": 41,
"second": 9,
"tz_before_gmt": true,
"tz_hour": 8,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@bellcore.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Formatted text mail"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "boundary42"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "boundary42"
}
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 46
},
{
"name": {
"Rfc": "to"
},
"start": 49,
"end": 79
},
{
"name": {
"Rfc": "date"
},
"start": 84,
"end": 123
},
{
"name": {
"Rfc": "subject"
},
"start": 131,
"end": 152
},
{
"name": {
"Rfc": "mime_version"
},
"start": 165,
"end": 170
},
{
"name": {
"Rfc": "content_type"
},
"start": 183,
"end": 227
"subject": {
"Text": "Formatted text mail"
},
"to": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
]
},
"from": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@bellcore.com"
}
},
"date": {
"DateTime": {
"year": 1993,
"month": 3,
"day": 22,
"hour": 9,
"minute": 41,
"second": 9,
"tz_before_gmt": true,
"tz_hour": 8,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 46
},
{
"name": {
"Rfc": "to"
},
"start": 49,
"end": 79
},
{
"name": {
"Rfc": "date"
},
"start": 84,
"end": 123
},
{
"name": {
"Rfc": "subject"
},
"start": 131,
"end": 152
},
{
"name": {
"Rfc": "mime_version"
},
"start": 165,
"end": 170
},
{
"name": {
"Rfc": "content_type"
},
"start": 183,
"end": 227
}
],
"html_body": [
3
0
],
"text_body": [
0
],
"attachments": [
{
"Attachment": 1
},
{
"Attachment": 2
}
1,
2
],
"parts": [
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 254,
"end": 284
}
]
}
},
"contents": "... plain text version of message goes here ...\n"
"body": "... plain text version of message goes here ...\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "enriched"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "enriched"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 360,
"end": 375
}
]
}
},
"contents": "... RFC 1896 text/enriched version of same message\n goes here ...\n"
"body": "... RFC 1896 text/enriched version of same message\n goes here ...\n"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "x-whatever"
}
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "x-whatever"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 472,
"end": 496
}
]
}
},
"contents": [
"body": [
46,
46,
46,
@@ -254,11 +215,6 @@ Content-Type: application/x-whatever
10
]
}
},
{
"Text": {
"contents": "<html><body>... plain text version of message goes here ...<br/></body></html>"
}
}
],
"structure": {
+168 -208
View File
@@ -36,148 +36,114 @@ Subject: my different opinion
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 1994,
"month": 3,
"day": 22,
"hour": 13,
"minute": 34,
"second": 51,
"tz_before_gmt": false,
"tz_hour": 0,
"tz_minute": 0
}
},
"to": {
"Address": {
"name": "Recipient-List"
}
},
"subject": {
"Text": "Internet Digest, volume 42"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "---- main boundary ----"
}
}
},
"from": {
"Address": {
"name": "Moderator-Address"
"headers_rfc": {
"to": {
"Address": {
"name": "Recipient-List"
}
},
"subject": {
"Text": "Internet Digest, volume 42"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "---- main boundary ----"
}
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 24
},
{
"name": {
"Rfc": "to"
},
"start": 27,
"end": 43
},
{
"name": {
"Rfc": "date"
},
"start": 48,
"end": 81
},
{
"name": {
"Rfc": "subject"
},
"start": 89,
"end": 117
},
{
"name": {
"Rfc": "mime_version"
},
"start": 130,
"end": 135
},
{
"name": {
"Rfc": "content_type"
},
"start": 148,
"end": 213
"date": {
"DateTime": {
"year": 1994,
"month": 3,
"day": 22,
"hour": 13,
"minute": 34,
"second": 51,
"tz_before_gmt": false,
"tz_hour": 0,
"tz_minute": 0
}
]
},
"from": {
"Address": {
"name": "Moderator-Address"
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 24
},
{
"name": {
"Rfc": "to"
},
"start": 27,
"end": 43
},
{
"name": {
"Rfc": "date"
},
"start": 48,
"end": 81
},
{
"name": {
"Rfc": "subject"
},
"start": 89,
"end": 117
},
{
"name": {
"Rfc": "mime_version"
},
"start": 130,
"end": 135
},
{
"name": {
"Rfc": "content_type"
},
"start": 148,
"end": 213
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 4
},
{
"Attachment": 6
}
2,
3
],
"parts": [
{
"Text": {
"contents": "<html><body>...Introductory text or table of contents...<br/></body></html>"
}
},
{
"Text": {
"contents": "...Introductory text or table of contents...\n"
"body": "...Introductory text or table of contents...\n"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "digest",
"attributes": {
"boundary": "---- next message ----"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 326,
"end": 391
}
]
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "digest",
"attributes": {
"boundary": "---- next message ----"
}
}
}
@@ -186,15 +152,20 @@ Subject: my different opinion
{
"Message": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
},
"body": {
"headers_rfc": {
"from": {
"Address": {
"name": "someone-else"
}
},
"subject": {
"Text": "my opinion"
},
"date": {
"DateTime": {
"year": 1993,
@@ -207,82 +178,76 @@ Subject: my different opinion
"tz_hour": 2,
"tz_minute": 0
}
},
"subject": {
"Text": "my opinion"
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 423,
"end": 437
"start": 5,
"end": 19
},
{
"name": {
"Rfc": "date"
},
"start": 442,
"end": 475
"start": 24,
"end": 57
},
{
"name": {
"Rfc": "subject"
},
"start": 483,
"end": 495
"start": 65,
"end": 77
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"parts": [
{
"Text": {
"contents": "<html><body>...body goes here ...<br/></body></html>"
],
"html_body": [
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"body": "...body goes here ...\n"
}
}
],
"structure": {
"Part": 0
},
{
"Text": {
"contents": "...body goes here ...\n"
}
}
],
"structure": {
"Part": 1
},
"offset_header": 418,
"offset_body": 496,
"offset_end": 545
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
"offset_header": 0,
"offset_body": 78,
"offset_end": 100
}
}
},
{
"Message": {
"headers": {
"values": {
"subject": {
"Text": "my different opinion"
},
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
},
"body": {
"headers_rfc": {
"from": {
"Address": {
"name": "someone-else-again"
}
},
"subject": {
"Text": "my different opinion"
},
"date": {
"DateTime": {
"year": 1993,
@@ -297,71 +262,66 @@ Subject: my different opinion
}
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 550,
"end": 570
"start": 5,
"end": 25
},
{
"name": {
"Rfc": "date"
},
"start": 575,
"end": 608
"start": 30,
"end": 63
},
{
"name": {
"Rfc": "subject"
},
"start": 616,
"end": 638
"start": 71,
"end": 93
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"parts": [
{
"Text": {
"contents": "<html><body>... another body goes here ...<br/></body></html>"
],
"html_body": [
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"body": "... another body goes here ...\n"
}
}
],
"structure": {
"Part": 0
},
{
"Text": {
"contents": "... another body goes here ...\n"
}
}
],
"structure": {
"Part": 1
},
"offset_header": 545,
"offset_body": 639,
"offset_end": 695
"offset_header": 0,
"offset_body": 94,
"offset_end": 125
}
}
}
],
"structure": {
"List": [
{
"Part": 1
"Part": 0
},
{
"MultiPart": [
2,
1,
[
{
"Part": 3
"Part": 2
},
{
"Part": 5
"Part": 3
}
]
]
+96 -119
View File
@@ -25,153 +25,130 @@ This is the epilogue. It is also to be ignored.
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"date": {
"DateTime": {
"year": 1993,
"month": 3,
"day": 21,
"hour": 23,
"minute": 56,
"second": 48,
"tz_before_gmt": true,
"tz_hour": 8,
"tz_minute": 0
}
},
"subject": {
"Text": "Sample message"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@bellcore.com"
}
},
"to": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "simple boundary"
}
"headers_rfc": {
"from": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@bellcore.com"
}
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
},
"date": {
"DateTime": {
"year": 1993,
"month": 3,
"day": 21,
"hour": 23,
"minute": 56,
"second": 48,
"tz_before_gmt": true,
"tz_hour": 8,
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "simple boundary"
}
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 46
},
{
"name": {
"Rfc": "to"
},
"start": 49,
"end": 79
},
{
"name": {
"Rfc": "date"
},
"start": 84,
"end": 123
},
{
"name": {
"Rfc": "subject"
},
"start": 131,
"end": 147
},
{
"name": {
"Rfc": "mime_version"
},
"start": 160,
"end": 165
},
{
"name": {
"Rfc": "content_type"
},
"start": 178,
"end": 223
}
]
"subject": {
"Text": "Sample message"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 46
},
{
"name": {
"Rfc": "to"
},
"start": 49,
"end": 79
},
{
"name": {
"Rfc": "date"
},
"start": 84,
"end": 123
},
{
"name": {
"Rfc": "subject"
},
"start": 131,
"end": 147
},
{
"name": {
"Rfc": "mime_version"
},
"start": 160,
"end": 165
},
{
"name": {
"Rfc": "content_type"
},
"start": 178,
"end": 223
}
],
"html_body": [
0,
2
1
],
"text_body": [
1,
3
0,
1
],
"parts": [
{
"Text": {
"contents": "<html><body>This is implicitly typed plain US-ASCII text.<br/>It does NOT end with a linebreak.</body></html>"
}
},
{
"Text": {
"contents": "This is implicitly typed plain US-ASCII text.\nIt does NOT end with a linebreak."
}
},
{
"Text": {
"contents": "<html><body>This is explicitly typed plain US-ASCII text.<br/>It DOES end with a linebreak.<br/></body></html>"
"body": "This is implicitly typed plain US-ASCII text.\nIt does NOT end with a linebreak."
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 512,
"end": 542
}
]
}
},
"contents": "This is explicitly typed plain US-ASCII text.\nIt DOES end with a linebreak.\n"
"body": "This is explicitly typed plain US-ASCII text.\nIt DOES end with a linebreak.\n"
}
}
],
"structure": {
"List": [
{
"Part": 1
"Part": 0
},
{
"Part": 3
"Part": 1
}
]
},
+81 -133
View File
@@ -23,62 +23,60 @@ Content-Disposition: inline
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "boundary-string"
}
}
},
"to": {
"Address": {
"address": "recipient@example.com"
}
},
"subject": {
"Text": "Multipart Email Example"
},
"from": {
"Address": {
"address": "sender@example.com"
}
"headers_rfc": {
"to": {
"Address": {
"address": "recipient@example.com"
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 25
},
{
"name": {
"Rfc": "to"
},
"start": 28,
"end": 51
},
{
"name": {
"Rfc": "subject"
},
"start": 59,
"end": 84
},
{
"name": {
"Rfc": "content_type"
},
"start": 97,
"end": 148
"from": {
"Address": {
"address": "sender@example.com"
}
]
},
"subject": {
"Text": "Multipart Email Example"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "boundary-string"
}
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 25
},
{
"name": {
"Rfc": "to"
},
"start": 28,
"end": 51
},
{
"name": {
"Rfc": "subject"
},
"start": 59,
"end": 84
},
{
"name": {
"Rfc": "content_type"
},
"start": 97,
"end": 148
}
],
"html_body": [
1
],
@@ -89,99 +87,49 @@ Content-Disposition: inline
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 180,
"end": 209
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 235,
"end": 253
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 273,
"end": 281
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
]
}
},
"contents": "Plain text email goes here!\nThis is the fallback if email client does not support HTML\n"
"body": "Plain text email goes here!\nThis is the fallback if email client does not support HTML\n"
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "utf-8"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "utf-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 401,
"end": 429
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 455,
"end": 473
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 493,
"end": 501
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "<h1>This is the HTML Section!</h1>\n<p>This is what displays in most modern email clients</p>\n"
"body": "<h1>This is the HTML Section!</h1>\n<p>This is what displays in most modern email clients</p>\n"
}
}
],
+199 -424
View File
@@ -73,251 +73,147 @@ K
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"subject": {
"Text": "RFC 8621 Section 4.1.4 test"
}
"headers_rfc": {
"subject": {
"Text": "RFC 8621 Section 4.1.4 test"
},
"offsets": [
{
"name": {
"Rfc": "subject"
},
"start": 8,
"end": 37
},
{
"name": {
"Rfc": "content_type"
},
"start": 50,
"end": 81
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "subject"
},
"start": 8,
"end": 37
},
{
"name": {
"Rfc": "content_type"
},
"start": 50,
"end": 81
}
],
"html_body": [
0,
9,
15
8,
13
],
"text_body": [
1,
0,
4,
5,
6,
7,
16
13
],
"attachments": [
{
"Inline": 6
},
{
"Attachment": 10
},
{
"Attachment": 11
},
{
"Attachment": 12
},
{
"Attachment": 14
}
5,
9,
10,
11,
12
],
"parts": [
{
"Text": {
"contents": "<html><body>A</body></html>"
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
}
},
"body": "A"
}
},
{
"Multipart": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
}
}
}
},
{
"Multipart": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "3"
}
}
}
}
},
{
"Multipart": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "4"
}
}
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 99,
"end": 111
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 131,
"end": 139
}
]
},
"contents": "A"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "2"
}
"c_type": "text",
"c_subtype": "plain"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 161,
"end": 192
}
]
"body": "B"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "3"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 210,
"end": 247
}
]
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "4"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 265,
"end": 296
}
]
}
},
{
"Text": {
"InlineBinary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 314,
"end": 326
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 346,
"end": 354
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
]
}
},
"contents": "B"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 376,
"end": 388
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 408,
"end": 416
}
]
},
"contents": [
"body": [
67
]
}
@@ -325,109 +221,58 @@ K
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 438,
"end": 450
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 470,
"end": 478
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
]
}
},
"contents": "D"
"body": "D"
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "5"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "5"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 506,
"end": 539
}
]
}
}
},
{
"Text": {
"Html": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 557,
"end": 568
}
]
}
},
"contents": "<html>E</html>"
"body": "<html>E</html>"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 603,
"end": 615
}
]
}
},
"contents": [
"body": [
70
]
}
@@ -435,37 +280,19 @@ K
{
"Binary": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "attachment"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 655,
"end": 667
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 687,
"end": 699
"content_disposition": {
"ContentType": {
"c_type": "attachment"
}
]
}
},
"contents": [
"body": [
71
]
}
@@ -473,32 +300,21 @@ K
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "x-excel"
}
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "x-excel"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 721,
"end": 742
}
]
}
},
"contents": [
"body": [
72
]
}
},
{
"Multipart": {
"values": {
"Message": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "message",
@@ -506,141 +322,100 @@ K
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 764,
"end": 780
}
]
}
},
{
"Message": {
"headers": {
"values": {
"body": {
"headers_rfc": {
"subject": {
"Text": "J"
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "subject"
},
"start": 789,
"end": 792
"start": 8,
"end": 11
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"parts": [
{
"Text": {
"contents": "<html><body>J</body></html>"
],
"html_body": [
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"body": "J"
}
}
],
"structure": {
"Part": 0
},
{
"Text": {
"contents": "J"
}
}
],
"structure": {
"Part": 1
},
"offset_header": 781,
"offset_body": 793,
"offset_end": 798
}
},
{
"Text": {
"contents": "<html><body>K</body></html>"
"offset_header": 0,
"offset_body": 12,
"offset_end": 13
}
}
},
{
"Text": {
"headers": {
"values": {
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 821,
"end": 833
},
{
"name": {
"Rfc": "content_disposition"
},
"start": 853,
"end": 861
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
]
}
},
"contents": "K"
"body": "K"
}
}
],
"structure": {
"List": [
{
"Part": 1
"Part": 0
},
{
"MultiPart": [
2,
1,
[
{
"MultiPart": [
3,
2,
[
{
"MultiPart": [
4,
3,
[
{
"Part": 4
},
{
"Part": 5
},
{
"Part": 6
},
{
"Part": 7
}
]
]
},
{
"MultiPart": [
8,
7,
[
{
"Part": 9
"Part": 8
},
{
"Part": 10
"Part": 9
}
]
]
@@ -648,20 +423,20 @@ K
]
]
},
{
"Part": 10
},
{
"Part": 11
},
{
"Part": 12
},
{
"Part": 13
}
]
]
},
{
"Part": 16
"Part": 13
}
]
},
+287
View File
@@ -0,0 +1,287 @@
Content-Type: multipart/mixed;
boundary=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
--bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
This is a message with a base64 encoded attached email
--bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
Content-Disposition: attachment; filename="attached_email.eml"
Content-Type: message/rfc822
Content-Transfer-Encoding: base64
VG86ICJlbWFpbEBleGFtcGxlLmNvbSIgPGVtYWlsQGV4YW1wbGUuY29tPg0KRnJvbTogTmFtZSA8
ZW1haWxAZXhhbXBsZS5jb20+DQpTdWJqZWN0OiBIVE1MIHRlc3QNCk1lc3NhZ2UtSUQ6IDxyYW5k
b20tbWVzc2FnZS1pZEBleGFtcGxlLmNvbT4NCkRhdGU6IFR1ZSwgMTQgRGVjIDIwMjEgMTE6NDg6
MjUgKzAxMDANCk1JTUUtVmVyc2lvbjogMS4wDQpDb250ZW50LVR5cGU6IG11bHRpcGFydC9hbHRl
cm5hdGl2ZTsNCiBib3VuZGFyeT0iYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
YWFhYSINCkNvbnRlbnQtTGFuZ3VhZ2U6IGVuLVVTDQoNClRoaXMgaXMgYSBtdWx0aS1wYXJ0IG1l
c3NhZ2UgaW4gTUlNRSBmb3JtYXQuDQotLWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
YWFhYWFhYWENCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNldD11dGYtODsgZm9ybWF0
PWZsb3dlZA0KQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogN2JpdA0KDQpUaGlzIGlzIGFuICpI
VE1MKiB0ZXN0IG1lc3NhZ2UNCi0tYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
YWFhYQ0KQ29udGVudC1UeXBlOiB0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgNCkNvbnRlbnQtVHJh
bnNmZXItRW5jb2Rpbmc6IDdiaXQNCg0KPGh0bWw+DQogIDxoZWFkPg0KICAgIDxtZXRhIGh0dHAt
ZXF1aXY9ImNvbnRlbnQtdHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PVVURi04Ij4N
CiAgPC9oZWFkPg0KICA8Ym9keT4NCiAgICBUaGlzIGlzIGFuIDxiPkhUTUw8L2I+IHRlc3QgbWVz
c2FnZQ0KICA8L2JvZHk+DQo8L2h0bWw+DQoNCi0tYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
YWFhYWFhYWFhYWFhYS0tDQo=
--bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb--
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
}
}
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 82
}
],
"html_body": [
0
],
"text_body": [
0
],
"attachments": [
1
],
"parts": [
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
}
},
"body": "This is a message with a base64 encoded attached email"
}
},
{
"Message": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "attached_email.eml"
}
}
},
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": {
"headers_rfc": {
"subject": {
"Text": "HTML test"
},
"to": {
"Address": {
"name": "email@example.com",
"address": "email@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
},
"from": {
"Address": {
"name": "Name",
"address": "email@example.com"
}
},
"content_language": {
"Text": "en-US"
},
"date": {
"DateTime": {
"year": 2021,
"month": 12,
"day": 14,
"hour": 11,
"minute": 48,
"second": 25,
"tz_before_gmt": false,
"tz_hour": 1,
"tz_minute": 0
}
},
"message_id": {
"Text": "random-message-id@example.com"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "to"
},
"start": 3,
"end": 45
},
{
"name": {
"Rfc": "from"
},
"start": 50,
"end": 77
},
{
"name": {
"Rfc": "subject"
},
"start": 85,
"end": 97
},
{
"name": {
"Rfc": "message_id"
},
"start": 108,
"end": 142
},
{
"name": {
"Rfc": "date"
},
"start": 147,
"end": 181
},
{
"name": {
"Rfc": "mime_version"
},
"start": 194,
"end": 200
},
{
"name": {
"Rfc": "content_type"
},
"start": 213,
"end": 292
},
{
"name": {
"Rfc": "content_language"
},
"start": 309,
"end": 317
}
],
"html_body": [
1
],
"text_body": [
0
],
"parts": [
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8",
"format": "flowed"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "This is an *HTML* test message\r"
}
},
{
"Html": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "utf-8"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "<html>\r\n <head>\r\n <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\r\n </head>\r\n <body>\r\n This is an <b>HTML</b> test message\r\n </body>\r\n</html>\r\n\r"
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
}
]
},
"offset_header": 0,
"offset_body": 319,
"offset_end": 870
}
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
}
]
},
"offset_header": 0,
"offset_body": 83,
"offset_end": 1648
}
+45 -93
View File
@@ -20,41 +20,39 @@ ZWg=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "bound"
}
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "bound"
}
}
},
"offsets": [
{
"name": {
"Rfc": "mime_version"
},
"start": 13,
"end": 19
},
{
"name": {
"Rfc": "content_type"
},
"start": 32,
"end": 76
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "mime_version"
},
"start": 13,
"end": 19
},
{
"name": {
"Rfc": "content_type"
},
"start": 32,
"end": 76
}
],
"html_body": [
2,
3
0,
1
],
"text_body": [
0,
@@ -64,79 +62,33 @@ ZWg=
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"content_transfer_encoding": {
"Text": "base64"
}
"content_transfer_encoding": {
"Text": "base64"
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 128,
"end": 137
},
{
"name": {
"Rfc": "content_type"
},
"start": 150,
"end": 163
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
]
}
},
"contents": "we have\ra lot \nof \u0000binary stuff in here\nb adjig sadjg jasidgjiaehga3wht8a3w8ghxjc dsgad hasdghsd gasd dsjdsoga sjdga0w3tjhawjgsertniq3n5oqerjqw2r89q23h awhrqh835r8a"
"body": "we have\ra lot \nof \u0000binary stuff in here\nb adjig sadjg jasidgjiaehga3wht8a3w8ghxjc dsgad hasdghsd gasd dsjdsoga sjdga0w3tjhawjgsertniq3n5oqerjqw2r89q23h awhrqh835r8a"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 413,
"end": 426
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 452,
"end": 461
}
]
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": "eh"
}
},
{
"Text": {
"contents": "<html><body>we havea lot <br/>of \u0000binary stuff in here<br/>b adjig sadjg jasidgjiaehga3wht8a3w8ghxjc dsgad hasdghsd gasd dsjdsoga sjdga0w3tjhawjgsertniq3n5oqerjqw2r89q23h awhrqh835r8a</body></html>"
}
},
{
"Text": {
"contents": "<html><body>eh</body></html>"
"body": "eh"
}
}
],
+52 -116
View File
@@ -25,42 +25,40 @@ hello world
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "bound"
}
}
},
"mime_version": {
"Text": "1.0"
}
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"offsets": [
{
"name": {
"Rfc": "mime_version"
},
"start": 13,
"end": 19
},
{
"name": {
"Rfc": "content_type"
},
"start": 32,
"end": 76
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "bound"
}
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "mime_version"
},
"start": 13,
"end": 19
},
{
"name": {
"Rfc": "content_type"
},
"start": 32,
"end": 76
}
],
"html_body": [
3,
4,
5
0,
1,
2
],
"text_body": [
0,
@@ -71,108 +69,46 @@ hello world
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "binary"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 128,
"end": 137
},
{
"name": {
"Rfc": "content_type"
},
"start": 150,
"end": 163
}
]
"content_transfer_encoding": {
"Text": "binary"
}
},
"contents": "d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz\r\naWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk\r\nZ2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=\r"
"body": "d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz\r\naWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk\r\nZ2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=\r"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"content_transfer_encoding": {
"Text": "binary"
}
"content_transfer_encoding": {
"Text": "binary"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 413,
"end": 426
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 452,
"end": 461
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
]
}
},
"contents": "ZWg="
"body": "ZWg="
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 490,
"end": 503
}
]
}
},
"contents": "hello world\r\n\r"
}
},
{
"Text": {
"contents": "<html><body>d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz<br/>aWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk<br/>Z2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=</body></html>"
}
},
{
"Text": {
"contents": "<html><body>ZWg=</body></html>"
}
},
{
"Text": {
"contents": "<html><body>hello world<br/></body></html>"
"body": "hello world\r\n\r"
}
}
],
+60 -128
View File
@@ -20,174 +20,106 @@ Content-Type: text/plain; charset=utf-8
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "foo"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "foo"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
}
],
"html_body": [
0,
2
1
],
"text_body": [
1,
3
0,
1
],
"attachments": [
{
"Attachment": 4
}
2
],
"parts": [
{
"Text": {
"contents": "<html><body>päivää<br/></body></html>"
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
}
},
"body": "päivää\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 77,
"end": 95
},
{
"name": {
"Rfc": "content_type"
},
"start": 108,
"end": 135
}
]
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": "päivää\n"
}
},
{
"Text": {
"contents": "<html><body>yötä vaan.<br/>�\t�</body></html>"
"body": "yötä vaan.\n�\t�"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 191,
"end": 199
},
{
"name": {
"Rfc": "content_type"
},
"start": 212,
"end": 239
}
]
},
"contents": "yötä vaan.\n�\t�"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 301,
"end": 309
},
{
"name": {
"Rfc": "content_type"
},
"start": 322,
"end": 349
}
]
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": "?garbage"
"body": "?garbage"
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 3
},
{
"Part": 4
"Part": 2
}
]
},
+95 -212
View File
@@ -35,280 +35,163 @@ TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
},
{
"name": {
"Rfc": "mime_version"
},
"start": 57,
"end": 62
}
]
"mime_version": {
"Text": "1.0"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
},
{
"name": {
"Rfc": "mime_version"
},
"start": 57,
"end": 62
}
],
"html_body": [
0,
1,
2,
4,
6,
8
3,
4
],
"text_body": [
0,
1,
2,
3,
5,
7,
9
4
],
"parts": [
{
"Text": {
"contents": "<html><body>Move black king to queen's bishop<br/></body></html>"
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "Move black king to queen's bishop\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_transfer_encoding": {
"Text": "binary"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 93,
"end": 104
},
{
"name": {
"Rfc": "content_type"
},
"start": 117,
"end": 147
}
]
}
},
"contents": "Move black king to queen's bishop\n"
}
},
{
"Text": {
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
"body": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "binary"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 213,
"end": 224
},
{
"name": {
"Rfc": "content_type"
},
"start": 237,
"end": 264
}
]
"content_transfer_encoding": {
"Text": "8bit"
}
},
"contents": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
"body": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "8bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 318,
"end": 328
},
{
"name": {
"Rfc": "content_type"
},
"start": 341,
"end": 368
}
]
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"contents": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
"body": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 422,
"end": 455
},
{
"name": {
"Rfc": "content_type"
},
"start": 468,
"end": 495
}
]
"content_transfer_encoding": {
"Text": "base64"
}
},
"contents": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 567,
"end": 575
},
{
"name": {
"Rfc": "content_type"
},
"start": 588,
"end": 615
}
]
},
"contents": "Move ♚ to ♛'s ♝\n"
"body": "Move ♚ to ♛'s ♝\n"
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
},
{
"Part": 5
},
{
"Part": 7
},
{
"Part": 9
"Part": 4
}
]
},
+110 -250
View File
@@ -41,324 +41,184 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"mime_version": {
"Text": "1.0"
}
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
},
{
"name": {
"Rfc": "mime_version"
},
"start": 57,
"end": 62
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 44
},
{
"name": {
"Rfc": "mime_version"
},
"start": 57,
"end": 62
}
],
"html_body": [
0,
1,
2,
3,
4,
6,
8,
10
5
],
"text_body": [
0,
1,
2,
3,
5,
7,
9,
11
4,
5
],
"parts": [
{
"Text": {
"contents": "<html><body>Move black king to queen's bishop<br/></body></html>"
"headers": {
"content_transfer_encoding": {
"Text": "6bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
}
},
"body": "Move black king to queen's bishop\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"content_transfer_encoding": {
"Text": "6bit"
}
"content_transfer_encoding": {
"Text": "7bits"
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 93,
"end": 99
},
{
"name": {
"Rfc": "content_type"
},
"start": 112,
"end": 139
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
]
}
},
"contents": "Move black king to queen's bishop\n"
}
},
{
"Text": {
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
"body": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "7bits"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
"content_transfer_encoding": {
"Text": "8 bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 205,
"end": 218
},
{
"name": {
"Rfc": "content_type"
},
"start": 231,
"end": 258
}
]
}
},
"contents": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
"body": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "8 bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
"content_transfer_encoding": {
"Text": "7-bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 312,
"end": 319
},
{
"name": {
"Rfc": "content_type"
},
"start": 332,
"end": 359
}
]
}
},
"contents": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
"body": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "7-bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
"content_transfer_encoding": {
"Text": "8-bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 413,
"end": 420
},
{
"name": {
"Rfc": "content_type"
},
"start": 433,
"end": 460
}
]
}
},
"contents": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
"body": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "8-bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 514,
"end": 521
},
{
"name": {
"Rfc": "content_type"
},
"start": 534,
"end": 561
}
]
}
},
"contents": "Move ♚ to ♛'s ♝\n"
}
},
{
"Text": {
"contents": "<html><body>Move =E2=99=9A to =E2=99=9B's =E2=99=9D<br/></body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 615,
"end": 616
},
{
"name": {
"Rfc": "content_type"
},
"start": 629,
"end": 656
}
]
},
"contents": "Move =E2=99=9A to =E2=99=9B's =E2=99=9D\n"
"body": "Move =E2=99=9A to =E2=99=9B's =E2=99=9D\n"
}
}
],
"structure": {
"List": [
{
"Part": 0
},
{
"Part": 1
},
{
"Part": 2
},
{
"Part": 3
},
{
"Part": 4
},
{
"Part": 5
},
{
"Part": 7
},
{
"Part": 9
},
{
"Part": 11
}
]
},
BIN
View File
Binary file not shown.
+81 -159
View File
@@ -30,48 +30,46 @@ Signed by undersigned
--1--
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"subject": {
"Text": "Hide and seek"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Hide and seek"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "subject"
},
"start": 8,
"end": 23
},
{
"name": {
"Rfc": "mime_version"
},
"start": 36,
"end": 41
},
{
"name": {
"Rfc": "content_type"
},
"start": 54,
"end": 83
}
]
}
},
"headers_offsets": [
{
"name": {
"Rfc": "subject"
},
"start": 8,
"end": 23
},
{
"name": {
"Rfc": "mime_version"
},
"start": 36,
"end": 41
},
{
"name": {
"Rfc": "content_type"
},
"start": 54,
"end": 83
}
],
"html_body": [
2
],
@@ -79,159 +77,83 @@ Signed by undersigned
3
],
"attachments": [
{
"Attachment": 4
}
4
],
"parts": [
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "signed",
"attributes": {
"protocol": "signature/plain",
"boundary": "2",
"migalc": "pen+paper"
}
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "signed",
"attributes": {
"migalc": "pen+paper",
"boundary": "2",
"protocol": "signature/plain"
}
}
},
"other_values": {
"X-Signature-Type": {
"Text": "penmanship"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 101,
"end": 179
},
{
"name": {
"Other": "X-Signature-Type"
},
"start": 196,
"end": 208
}
]
}
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "3"
}
}
}
}
},
{
"Html": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"c_type": "text",
"c_subtype": "html",
"attributes": {
"boundary": "3"
"charset": "us-ascii"
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 226,
"end": 261
}
]
"body": "<html><head><title>Search me</title></head><body><p>Don't find me here</p></body></html>\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html",
"attributes": {
"charset": "us-ascii"
}
}
}
"content_transfer_encoding": {
"Text": "binary"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 279,
"end": 308
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
]
}
},
"contents": "<html><head><title>Search me</title></head><body><p>Don't find me here</p></body></html>\n"
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"content_transfer_encoding": {
"Text": "binary"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 416,
"end": 428
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 454,
"end": 462
}
]
},
"contents": "Search me, and Find me here"
"body": "Search me, and Find me here"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "signature",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
"content_type": {
"ContentType": {
"c_type": "signature",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 515,
"end": 550
}
]
}
},
"contents": [
"body": [
83,
105,
103,
+167 -240
View File
@@ -34,69 +34,57 @@ Foobar
--1--
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "digest",
"attributes": {
"boundary": "1"
}
}
},
"from": {
"Address": {
"name": "Moderator-Address",
"address": "moderator"
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "digest",
"attributes": {
"boundary": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 36
},
{
"name": {
"Rfc": "content_type"
},
"start": 49,
"end": 80
"from": {
"Address": {
"name": "Moderator-Address",
"address": "moderator"
}
]
},
"attachments": [
{
"Attachment": 1
},
{
"Attachment": 3
},
{
"Attachment": 5
}
},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 36
},
{
"name": {
"Rfc": "content_type"
},
"start": 49,
"end": 80
}
],
"attachments": [
0,
1,
2
],
"parts": [
{
"Multipart": {
"values": {
"Message": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
}
}
},
{
"Message": {
"headers": {
"values": {
},
"body": {
"headers_rfc": {
"subject": {
"Text": "my opinion"
},
@@ -107,65 +95,56 @@ Foobar
}
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 92,
"end": 121
"start": 5,
"end": 34
},
{
"name": {
"Rfc": "subject"
},
"start": 129,
"end": 141
"start": 42,
"end": 54
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"parts": [
{
"Text": {
"contents": "<html><body>This is my opinion</body></html>"
],
"html_body": [
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"body": "This is my opinion"
}
}
],
"structure": {
"Part": 0
},
{
"Text": {
"contents": "This is my opinion"
}
}
],
"structure": {
"Part": 1
},
"offset_header": 87,
"offset_body": 142,
"offset_end": 166
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
"offset_header": 0,
"offset_body": 55,
"offset_end": 73
}
}
},
{
"Message": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
},
"body": {
"headers_rfc": {
"from": {
"Address": {
"name": "another one",
@@ -176,65 +155,65 @@ Foobar
"Text": "i disagree"
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 171,
"end": 198
"start": 5,
"end": 32
},
{
"name": {
"Rfc": "subject"
},
"start": 206,
"end": 218
"start": 40,
"end": 52
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"parts": [
{
"Text": {
"contents": "<html><body>Not agreeing one bit!</body></html>"
],
"html_body": [
0
],
"text_body": [
0
],
"parts": [
{
"Text": {
"body": "Not agreeing one bit!"
}
}
],
"structure": {
"Part": 0
},
{
"Text": {
"contents": "Not agreeing one bit!"
}
}
],
"structure": {
"Part": 1
},
"offset_header": 166,
"offset_body": 219,
"offset_end": 246
}
},
{
"Multipart": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
"offset_header": 0,
"offset_body": 53,
"offset_end": 74
}
}
},
{
"Message": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
}
}
},
"body": {
"headers_rfc": {
"subject": {
"Text": "funny hat"
},
"from": {
"Address": {
"name": "attachment",
"address": "attachment@user"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -243,103 +222,67 @@ Foobar
"boundary": "2"
}
}
},
"from": {
"Address": {
"name": "attachment",
"address": "attachment@user"
}
},
"subject": {
"Text": "funny hat"
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 251,
"end": 281
"start": 5,
"end": 35
},
{
"name": {
"Rfc": "subject"
},
"start": 289,
"end": 300
"start": 43,
"end": 54
},
{
"name": {
"Rfc": "content_type"
},
"start": 313,
"end": 342
"start": 67,
"end": 96
}
]
},
"html_body": [
0
],
"text_body": [
1
],
"attachments": [
{
"Attachment": 2
}
],
"parts": [
{
"Text": {
"contents": "<html><body>Lovely attachment for you</body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "binary"
},
],
"html_body": [
0
],
"text_body": [
0
],
"attachments": [
1
],
"parts": [
{
"Text": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"content_transfer_encoding": {
"Text": "binary"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 360,
"end": 372
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 398,
"end": 406
}
]
},
"contents": "Lovely attachment for you"
}
},
{
"Binary": {
"headers": {
"values": {
"body": "Lovely attachment for you"
}
},
{
"Binary": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "octet-stream",
"attributes": {
"name": "test.txt",
"disposition": "attachment"
"disposition": "attachment",
"name": "test.txt"
}
}
},
@@ -347,47 +290,31 @@ Foobar
"Text": "binary"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 450,
"end": 517
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 543,
"end": 551
}
"body": [
70,
111,
111,
98,
97,
114
]
}
}
],
"structure": {
"List": [
{
"Part": 0
},
"contents": [
70,
111,
111,
98,
97,
114
]
}
}
],
"structure": {
"List": [
{
"Part": 1
},
{
"Part": 2
}
]
},
"offset_header": 246,
"offset_body": 343,
"offset_end": 565
{
"Part": 1
}
]
},
"offset_header": 0,
"offset_body": 97,
"offset_end": 318
}
}
}
],
@@ -397,10 +324,10 @@ Foobar
"Part": 0
},
{
"Part": 2
"Part": 1
},
{
"Part": 4
"Part": 2
}
]
},
+182 -266
View File
@@ -57,127 +57,110 @@ Root MIME epilogue
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "foo bar"
}
}
},
"date": {
"DateTime": {
"year": 2007,
"month": 3,
"day": 24,
"hour": 23,
"minute": 0,
"second": 0,
"tz_before_gmt": false,
"tz_hour": 2,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"address": "user@domain.org"
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "foo bar"
}
}
},
"other_values": {
"From user@domain Fri Feb 22 17": {
"Text": "06:23 2008"
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"address": "user@domain.org"
}
},
"offsets": [
{
"name": {
"Other": "From user@domain Fri Feb 22 17"
},
"start": 32,
"end": 43
},
{
"name": {
"Rfc": "from"
},
"start": 48,
"end": 65
},
{
"name": {
"Rfc": "date"
},
"start": 70,
"end": 103
},
{
"name": {
"Rfc": "mime_version"
},
"start": 116,
"end": 121
},
{
"name": {
"Rfc": "content_type"
},
"start": 134,
"end": 171
"date": {
"DateTime": {
"year": 2007,
"month": 3,
"day": 24,
"hour": 23,
"minute": 0,
"second": 0,
"tz_before_gmt": false,
"tz_hour": 2,
"tz_minute": 0
}
]
}
},
"headers_other": {
"From user@domain Fri Feb 22 17": {
"Text": "06:23 2008"
}
},
"headers_offsets": [
{
"name": {
"Other": "From user@domain Fri Feb 22 17"
},
"start": 32,
"end": 43
},
{
"name": {
"Rfc": "from"
},
"start": 48,
"end": 65
},
{
"name": {
"Rfc": "date"
},
"start": 70,
"end": 103
},
{
"name": {
"Rfc": "mime_version"
},
"start": 116,
"end": 121
},
{
"name": {
"Rfc": "content_type"
},
"start": 134,
"end": 171
}
],
"html_body": [
3
2
],
"text_body": [
4
2
],
"attachments": [
{
"Attachment": 0
},
{
"Attachment": 2
}
0,
1
],
"parts": [
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "x-myown",
"attributes": {
"charset": "us-ascii"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "x-myown",
"attributes": {
"charset": "us-ascii"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 215,
"end": 247
}
]
}
},
"contents": "hello\n"
"body": "hello\n"
}
},
{
"Multipart": {
"values": {
"Message": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "message",
@@ -185,29 +168,22 @@ Root MIME epilogue
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 278,
"end": 294
}
]
}
},
{
"Message": {
"headers": {
"values": {
"subject": {
"Text": "submsg"
},
"body": {
"headers_rfc": {
"from": {
"Address": {
"address": "sub@domain.org"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "sub1"
}
}
},
"date": {
"DateTime": {
"year": 2012,
@@ -221,61 +197,53 @@ Root MIME epilogue
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "sub1"
}
}
"subject": {
"Text": "submsg"
}
},
"offsets": [
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 300,
"end": 316
"start": 5,
"end": 21
},
{
"name": {
"Rfc": "date"
},
"start": 321,
"end": 354
"start": 26,
"end": 59
},
{
"name": {
"Rfc": "subject"
},
"start": 362,
"end": 370
"start": 67,
"end": 75
},
{
"name": {
"Rfc": "content_type"
},
"start": 383,
"end": 423
"start": 88,
"end": 128
}
]
},
"html_body": [
0,
5
],
"text_body": [
3,
4,
6
],
"parts": [
{
"Text": {
"headers": {
"values": {
],
"html_body": [
0,
4
],
"text_body": [
3,
4,
5
],
"parts": [
{
"Html": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "text",
@@ -283,22 +251,11 @@ Root MIME epilogue
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 462,
"end": 473
}
]
},
"contents": "<p>Hello world</p>\n"
}
},
{
"Multipart": {
"values": {
"body": "<p>Hello world</p>\n"
}
},
{
"Multipart": {
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -308,21 +265,10 @@ Root MIME epilogue
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 514,
"end": 554
}
]
}
},
{
"Multipart": {
"values": {
}
},
{
"Multipart": {
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -332,101 +278,71 @@ Root MIME epilogue
}
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 575,
"end": 615
}
]
}
},
{
"Text": {
"contents": "sub3 text"
}
},
{
"Text": {
"contents": "sub3 text2"
}
},
{
"Text": {
"contents": "<html><body>sub3 text2</body></html>"
}
},
{
"Text": {
"contents": "sub2 text2"
}
}
],
"structure": {
"List": [
{
"Part": 0
}
},
{
"MultiPart": [
1,
[
{
"MultiPart": [
2,
[
{
"Part": 3
},
{
"Part": 4
}
]
]
},
{
"Part": 6
}
]
]
"Text": {
"body": "sub3 text"
}
},
{
"Text": {
"body": "sub3 text2"
}
},
{
"Text": {
"body": "sub2 text2"
}
}
]
},
"offset_header": 295,
"offset_body": 424,
"offset_end": 710
}
},
{
"Text": {
"contents": "<html><body>Another part</body></html>"
],
"structure": {
"List": [
{
"Part": 0
},
{
"MultiPart": [
1,
[
{
"MultiPart": [
2,
[
{
"Part": 3
},
{
"Part": 4
}
]
]
},
{
"Part": 5
}
]
]
}
]
},
"offset_header": 0,
"offset_body": 129,
"offset_end": 414
}
}
},
{
"Text": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 752,
"end": 764
}
]
}
},
"contents": "Another part"
"body": "Another part"
}
}
],
@@ -439,7 +355,7 @@ Root MIME epilogue
"Part": 1
},
{
"Part": 4
"Part": 2
}
]
},
+58 -96
View File
@@ -21,126 +21,88 @@ dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
---- EXPECTED STRUCTURE ----
{
"headers": {
"values": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "1"
}
},
"subject": {
"Text": "In parts"
}
},
"offsets": [
{
"name": {
"Rfc": "subject"
},
"start": 8,
"end": 18
},
{
"name": {
"Rfc": "mime_version"
},
"start": 31,
"end": 36
},
{
"name": {
"Rfc": "content_type"
},
"start": 49,
"end": 78
}
]
"subject": {
"Text": "In parts"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_offsets": [
{
"name": {
"Rfc": "subject"
},
"start": 8,
"end": 18
},
{
"name": {
"Rfc": "mime_version"
},
"start": 31,
"end": 36
},
{
"name": {
"Rfc": "content_type"
},
"start": 49,
"end": 78
}
],
"html_body": [
0
],
"text_body": [
1
0
],
"attachments": [
{
"Attachment": 2
}
1
],
"parts": [
{
"Text": {
"contents": "<html><body>Hi, this is the fancy thing I was talking about!</body></html>"
}
},
{
"Text": {
"headers": {
"values": {
"content_transfer_encoding": {
"Text": "binary"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
}
"content_transfer_encoding": {
"Text": "binary"
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 96,
"end": 108
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 134,
"end": 142
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
}
]
}
},
"contents": "Hi, this is the fancy thing I was talking about!"
"body": "Hi, this is the fancy thing I was talking about!"
}
},
{
"Binary": {
"headers": {
"values": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "partial",
"attributes": {
"total": "5",
"number": "1",
"id": "heks68ewe@example.org"
}
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "partial",
"attributes": {
"id": "heks68ewe@example.org",
"total": "5",
"number": "1"
}
}
},
"offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 209,
"end": 273
}
]
}
},
"contents": [
"body": [
88,
45,
87,
@@ -389,10 +351,10 @@ dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
"structure": {
"List": [
{
"Part": 1
"Part": 0
},
{
"Part": 2
"Part": 1
}
]
},

Some files were not shown because too many files have changed in this diff Show More