mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-28 16:01:16 +00:00
Fixed tests.
This commit is contained in:
+59
-46
@@ -449,7 +449,13 @@ pub struct Headers<'x> {
|
||||
serde(skip_serializing_if = "HashMap::is_empty")
|
||||
)]
|
||||
#[cfg_attr(feature = "serde_support", serde(default))]
|
||||
pub values: HashMap<HeaderName<'x>, HeaderValue<'x>>,
|
||||
pub values: HashMap<HeaderName, HeaderValue<'x>>,
|
||||
#[cfg_attr(
|
||||
feature = "serde_support",
|
||||
serde(skip_serializing_if = "HashMap::is_empty")
|
||||
)]
|
||||
#[cfg_attr(feature = "serde_support", serde(default))]
|
||||
pub other_values: HashMap<Cow<'x, str>, HeaderValue<'x>>,
|
||||
#[cfg_attr(
|
||||
feature = "serde_support",
|
||||
serde(skip_serializing_if = "Vec::is_empty")
|
||||
@@ -464,7 +470,7 @@ impl<'x> Headers<'x> {
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.values.is_empty() && self.offsets.is_empty()
|
||||
self.values.is_empty() && self.other_values.is_empty() && self.offsets.is_empty()
|
||||
}
|
||||
|
||||
pub fn clear(&mut self) {
|
||||
@@ -477,55 +483,62 @@ impl<'x> Headers<'x> {
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
|
||||
pub struct HeaderOffset<'x> {
|
||||
pub name: HeaderName<'x>,
|
||||
pub name: HeaderOffsetName<'x>,
|
||||
pub start: usize,
|
||||
pub end: usize,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
|
||||
pub enum HeaderOffsetName<'x> {
|
||||
Rfc(HeaderName),
|
||||
Other(Cow<'x, str>),
|
||||
}
|
||||
|
||||
/// A header field
|
||||
#[derive(Debug, PartialEq, Eq, Hash, Clone)]
|
||||
#[repr(u8)]
|
||||
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)]
|
||||
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
|
||||
#[cfg_attr(feature = "serde_support", serde(rename_all = "snake_case"))]
|
||||
pub enum HeaderName<'x> {
|
||||
Subject,
|
||||
From,
|
||||
To,
|
||||
Cc,
|
||||
Date,
|
||||
Bcc,
|
||||
ReplyTo,
|
||||
Sender,
|
||||
Comments,
|
||||
InReplyTo,
|
||||
Keywords,
|
||||
Received,
|
||||
MessageId,
|
||||
References,
|
||||
ReturnPath,
|
||||
MimeVersion,
|
||||
ContentDescription,
|
||||
ContentId,
|
||||
ContentLanguage,
|
||||
ContentLocation,
|
||||
ContentTransferEncoding,
|
||||
ContentType,
|
||||
ContentDisposition,
|
||||
ResentTo,
|
||||
ResentFrom,
|
||||
ResentBcc,
|
||||
ResentCc,
|
||||
ResentSender,
|
||||
ResentDate,
|
||||
ResentMessageId,
|
||||
ListArchive,
|
||||
ListHelp,
|
||||
ListId,
|
||||
ListOwner,
|
||||
ListPost,
|
||||
ListSubscribe,
|
||||
ListUnsubscribe,
|
||||
Other(Cow<'x, str>),
|
||||
Invalid,
|
||||
pub enum HeaderName {
|
||||
Subject = 0,
|
||||
From = 1,
|
||||
To = 2,
|
||||
Cc = 3,
|
||||
Date = 4,
|
||||
Bcc = 5,
|
||||
ReplyTo = 6,
|
||||
Sender = 7,
|
||||
Comments = 8,
|
||||
InReplyTo = 9,
|
||||
Keywords = 10,
|
||||
Received = 11,
|
||||
MessageId = 12,
|
||||
References = 13,
|
||||
ReturnPath = 14,
|
||||
MimeVersion = 15,
|
||||
ContentDescription = 16,
|
||||
ContentId = 17,
|
||||
ContentLanguage = 18,
|
||||
ContentLocation = 19,
|
||||
ContentTransferEncoding = 20,
|
||||
ContentType = 21,
|
||||
ContentDisposition = 22,
|
||||
ResentTo = 23,
|
||||
ResentFrom = 24,
|
||||
ResentBcc = 25,
|
||||
ResentCc = 26,
|
||||
ResentSender = 27,
|
||||
ResentDate = 28,
|
||||
ResentMessageId = 29,
|
||||
ListArchive = 30,
|
||||
ListHelp = 31,
|
||||
ListId = 32,
|
||||
ListOwner = 33,
|
||||
ListPost = 34,
|
||||
ListSubscribe = 35,
|
||||
ListUnsubscribe = 36,
|
||||
Other = 37,
|
||||
}
|
||||
|
||||
/// A parsed header value.
|
||||
@@ -907,8 +920,8 @@ impl<'x> Message<'x> {
|
||||
/// Returns a non-standard header field
|
||||
pub fn get_other(&self, name: &'x str) -> &HeaderValue<'x> {
|
||||
self.headers
|
||||
.values
|
||||
.get(&HeaderName::Other(name.into()))
|
||||
.other_values
|
||||
.get(&Cow::from(name))
|
||||
.unwrap_or(&HeaderValue::Empty)
|
||||
}
|
||||
|
||||
|
||||
@@ -922,7 +922,6 @@ mod tests {
|
||||
];
|
||||
|
||||
for input in inputs {
|
||||
println!("Testiong {}", input.0);
|
||||
let str = input.0.to_string();
|
||||
let result = parse_address(&mut MessageStream::new(str.as_bytes()));
|
||||
let expected: HeaderValue = serde_yaml::from_str(input.1).unwrap_or(HeaderValue::Empty);
|
||||
|
||||
+79
-102
@@ -9,9 +9,9 @@
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::{borrow::Cow, collections::hash_map::Entry};
|
||||
|
||||
use crate::{HeaderName, HeaderOffset, HeaderValue, Headers};
|
||||
use crate::{HeaderName, HeaderOffset, HeaderOffsetName, HeaderValue, Headers};
|
||||
|
||||
use super::{
|
||||
fields::{
|
||||
@@ -23,7 +23,8 @@ use super::{
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum HeaderParserResult<'x> {
|
||||
Header(HeaderName<'x>),
|
||||
Rfc(HeaderName),
|
||||
Other(Cow<'x, str>),
|
||||
Lf,
|
||||
Eof,
|
||||
}
|
||||
@@ -34,20 +35,20 @@ pub fn parse_headers<'x>(headers: &mut Headers<'x>, stream: &mut MessageStream<'
|
||||
stream.pos += bytes_read;
|
||||
|
||||
match result {
|
||||
HeaderParserResult::Header(name) => {
|
||||
let (is_many, parser) = HDR_PARSER[name.id() as usize];
|
||||
HeaderParserResult::Rfc(name) => {
|
||||
let (is_many, parser) = HDR_PARSER[name as usize];
|
||||
|
||||
let from_offset = stream.pos;
|
||||
let value = parser(stream);
|
||||
headers.offsets.push(HeaderOffset {
|
||||
name: name.clone(),
|
||||
name: HeaderOffsetName::Rfc(name),
|
||||
start: from_offset,
|
||||
end: stream.pos,
|
||||
});
|
||||
|
||||
if !value.is_empty() {
|
||||
if is_many {
|
||||
match headers.values.entry(name.clone()) {
|
||||
match headers.values.entry(name) {
|
||||
Entry::Occupied(mut e) => {
|
||||
if let HeaderValue::Collection(col) = e.get_mut() {
|
||||
col.push(value);
|
||||
@@ -68,6 +69,33 @@ pub fn parse_headers<'x>(headers: &mut Headers<'x>, stream: &mut MessageStream<'
|
||||
}
|
||||
}
|
||||
}
|
||||
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 !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]));
|
||||
}
|
||||
}
|
||||
Entry::Vacant(e) => {
|
||||
e.insert(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
HeaderParserResult::Lf => return true,
|
||||
HeaderParserResult::Eof => return false,
|
||||
}
|
||||
@@ -98,18 +126,13 @@ pub fn parse_header_name(data: &[u8]) -> (usize, HeaderParserResult) {
|
||||
let token_hash = token_hash - 4;
|
||||
|
||||
if field.eq_ignore_ascii_case(HDR_NAMES[token_hash]) {
|
||||
return (
|
||||
bytes_read,
|
||||
HeaderParserResult::Header(HDR_MAP[token_hash].clone()),
|
||||
);
|
||||
return (bytes_read, HeaderParserResult::Rfc(HDR_MAP[token_hash]));
|
||||
}
|
||||
}
|
||||
}
|
||||
return (
|
||||
bytes_read,
|
||||
HeaderParserResult::Header(HeaderName::Other(String::from_utf8_lossy(
|
||||
field,
|
||||
))),
|
||||
HeaderParserResult::Other(String::from_utf8_lossy(field)),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -138,49 +161,9 @@ pub fn parse_header_name(data: &[u8]) -> (usize, HeaderParserResult) {
|
||||
(bytes_read, HeaderParserResult::Eof)
|
||||
}
|
||||
|
||||
impl<'x> HeaderName<'x> {
|
||||
fn id(&self) -> u8 {
|
||||
match self {
|
||||
HeaderName::Subject => 0,
|
||||
HeaderName::From => 1,
|
||||
HeaderName::To => 2,
|
||||
HeaderName::Cc => 3,
|
||||
HeaderName::Date => 4,
|
||||
HeaderName::Bcc => 5,
|
||||
HeaderName::ReplyTo => 6,
|
||||
HeaderName::Sender => 7,
|
||||
HeaderName::Comments => 8,
|
||||
HeaderName::InReplyTo => 9,
|
||||
HeaderName::Keywords => 10,
|
||||
HeaderName::Received => 11,
|
||||
HeaderName::MessageId => 12,
|
||||
HeaderName::References => 13,
|
||||
HeaderName::ReturnPath => 14,
|
||||
HeaderName::MimeVersion => 15,
|
||||
HeaderName::ContentDescription => 16,
|
||||
HeaderName::ContentId => 17,
|
||||
HeaderName::ContentLanguage => 18,
|
||||
HeaderName::ContentLocation => 19,
|
||||
HeaderName::ContentTransferEncoding => 20,
|
||||
HeaderName::ContentType => 21,
|
||||
HeaderName::ContentDisposition => 22,
|
||||
HeaderName::ResentTo => 23,
|
||||
HeaderName::ResentFrom => 24,
|
||||
HeaderName::ResentBcc => 25,
|
||||
HeaderName::ResentCc => 26,
|
||||
HeaderName::ResentSender => 27,
|
||||
HeaderName::ResentDate => 28,
|
||||
HeaderName::ResentMessageId => 29,
|
||||
HeaderName::ListArchive => 30,
|
||||
HeaderName::ListHelp => 31,
|
||||
HeaderName::ListId => 32,
|
||||
HeaderName::ListOwner => 33,
|
||||
HeaderName::ListPost => 34,
|
||||
HeaderName::ListSubscribe => 35,
|
||||
HeaderName::ListUnsubscribe => 36,
|
||||
HeaderName::Other(_) => 37,
|
||||
HeaderName::Invalid => 38,
|
||||
}
|
||||
impl From<HeaderName> for u8 {
|
||||
fn from(name: HeaderName) -> Self {
|
||||
name as u8
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,30 +176,24 @@ mod tests {
|
||||
#[test]
|
||||
fn header_name_parse() {
|
||||
let inputs = [
|
||||
("From: ", HeaderParserResult::Header(HeaderName::From)),
|
||||
(
|
||||
"receiVED: ",
|
||||
HeaderParserResult::Header(HeaderName::Received),
|
||||
),
|
||||
("From: ", HeaderParserResult::Rfc(HeaderName::From)),
|
||||
("receiVED: ", HeaderParserResult::Rfc(HeaderName::Received)),
|
||||
(
|
||||
" subject : ",
|
||||
HeaderParserResult::Header(HeaderName::Subject),
|
||||
HeaderParserResult::Rfc(HeaderName::Subject),
|
||||
),
|
||||
(
|
||||
"X-Custom-Field : ",
|
||||
HeaderParserResult::Header(HeaderName::Other("X-Custom-Field".into())),
|
||||
),
|
||||
(
|
||||
" T : ",
|
||||
HeaderParserResult::Header(HeaderName::Other("T".into())),
|
||||
HeaderParserResult::Other("X-Custom-Field".into()),
|
||||
),
|
||||
(" T : ", HeaderParserResult::Other("T".into())),
|
||||
(
|
||||
"mal formed: ",
|
||||
HeaderParserResult::Header(HeaderName::Other("mal formed".into())),
|
||||
HeaderParserResult::Other("mal formed".into()),
|
||||
),
|
||||
(
|
||||
"MIME-version : ",
|
||||
HeaderParserResult::Header(HeaderName::MimeVersion),
|
||||
HeaderParserResult::Rfc(HeaderName::MimeVersion),
|
||||
),
|
||||
];
|
||||
|
||||
@@ -289,18 +266,18 @@ static HDR_HASH: &[u8] = &[
|
||||
|
||||
static HDR_MAP: &[HeaderName] = &[
|
||||
HeaderName::Date,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::Sender,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::Received,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::References,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::Cc,
|
||||
HeaderName::Comments,
|
||||
HeaderName::ResentCc,
|
||||
HeaderName::ContentId,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::ResentMessageId,
|
||||
HeaderName::ReplyTo,
|
||||
HeaderName::ResentTo,
|
||||
@@ -308,54 +285,54 @@ static HDR_MAP: &[HeaderName] = &[
|
||||
HeaderName::ContentLanguage,
|
||||
HeaderName::Subject,
|
||||
HeaderName::ResentSender,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::ResentDate,
|
||||
HeaderName::To,
|
||||
HeaderName::Bcc,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::ContentTransferEncoding,
|
||||
HeaderName::ReturnPath,
|
||||
HeaderName::ListId,
|
||||
HeaderName::Keywords,
|
||||
HeaderName::ContentDescription,
|
||||
HeaderName::ListOwner,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::ContentType,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::ListHelp,
|
||||
HeaderName::MessageId,
|
||||
HeaderName::ContentLocation,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::ListSubscribe,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::ListPost,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::ResentFrom,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::ContentDisposition,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::InReplyTo,
|
||||
HeaderName::ListArchive,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::From,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::ListUnsubscribe,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Invalid,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::Other,
|
||||
HeaderName::MimeVersion,
|
||||
];
|
||||
|
||||
|
||||
+8
-11
@@ -154,8 +154,7 @@ impl MessageParserState {
|
||||
} else if self.structure.len() == 1 {
|
||||
self.structure.pop().unwrap()
|
||||
} else {
|
||||
debug_assert!(false, "No parts found.");
|
||||
MessageStructure::default()
|
||||
MessageStructure::List(vec![])
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -674,13 +673,12 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
/*#[test]
|
||||
fn message_to_yaml() {
|
||||
let mut file_name = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
file_name.push("tests");
|
||||
file_name.push("rfc");
|
||||
file_name.push("002.txt");
|
||||
file_name.push("legacy");
|
||||
file_name.push("000.txt");
|
||||
|
||||
let mut input = fs::read(&file_name).unwrap();
|
||||
let mut pos = 0;
|
||||
@@ -700,19 +698,18 @@ mod tests {
|
||||
|
||||
let input = input.split_at_mut(pos);
|
||||
let message = Message::parse(input.0).unwrap();
|
||||
let result = serde_yaml::to_string(&message).unwrap();
|
||||
let result = serde_json::to_string_pretty(&message).unwrap(); //serde_yaml::to_string(&message).unwrap();
|
||||
|
||||
//fs::write("test.yaml", &result).unwrap();
|
||||
|
||||
println!("{}", result);
|
||||
}
|
||||
|
||||
/*
|
||||
#[test]
|
||||
fn generate_test_samples() {
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----\n".as_bytes();
|
||||
|
||||
for test_suite in ["malformed", "legacy", "rfc", "thirdparty"] {
|
||||
for test_suite in ["legacy", "malformed", "rfc", "thirdparty"] {
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
test_dir.push("tests");
|
||||
test_dir.push(test_suite);
|
||||
@@ -749,8 +746,8 @@ mod tests {
|
||||
output.extend_from_slice(input.0);
|
||||
output.extend_from_slice(SEPARATOR);
|
||||
output.extend_from_slice(
|
||||
serde_json::to_string_pretty(&Message::parse(input.0))
|
||||
.unwrap_or_else(|_| "".to_string())
|
||||
serde_json::to_string_pretty(&Message::parse(input.0).unwrap())
|
||||
.unwrap()
|
||||
.as_bytes(),
|
||||
);
|
||||
fs::write(file_name.as_ref().unwrap().path(), &output).unwrap();
|
||||
|
||||
+179
-49
@@ -45,62 +45,186 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 35,
|
||||
"second": 5,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 0
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"contents": [
|
||||
@@ -1560,5 +1684,11 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 578,
|
||||
"offset_end": 2570
|
||||
}
|
||||
+179
-53
@@ -36,67 +36,193 @@ m+APw-ssen als wir.+ACI-=20
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"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
|
||||
}
|
||||
},
|
||||
"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)"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
{
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
"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
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 18,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 614,
|
||||
"offset_end": 1491
|
||||
}
|
||||
+153
-47
@@ -38,61 +38,167 @@ wir." <br>
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 31,
|
||||
"second": 0,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@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)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
|
||||
"Text": {
|
||||
"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; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 500,
|
||||
"offset_end": 1499
|
||||
}
|
||||
+210
-68
@@ -65,86 +65,228 @@ wir." <br>
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519002557.00a88870@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_714967308==_.ALT"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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": 496
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"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_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; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 498,
|
||||
"offset_end": 2623
|
||||
}
|
||||
+141
-42
@@ -20,58 +20,157 @@ Slow but steady wins the race.
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"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": "5 (Lowest)"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 13,
|
||||
"second": 19,
|
||||
"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": 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
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race. <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 413,
|
||||
"offset_end": 1177
|
||||
}
|
||||
+175
-49
@@ -34,61 +34,187 @@ m+APw-ssen als wir.+ACI-=20
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 20,
|
||||
"second": 24,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 577,
|
||||
"offset_end": 1470
|
||||
}
|
||||
+246
-70
@@ -85,74 +85,212 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@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"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
|
||||
},
|
||||
"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": 36,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 0
|
||||
},
|
||||
{
|
||||
"Attachment": 1
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
"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": 630,
|
||||
"end": 665
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 691,
|
||||
"end": 700
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 720,
|
||||
"end": 760
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1486,26 +1624,51 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -2964,5 +3127,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 4807
|
||||
}
|
||||
+171
-45
@@ -33,61 +33,187 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"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
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 601,
|
||||
"offset_end": 1410
|
||||
}
|
||||
+347
-113
@@ -137,98 +137,263 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 32,
|
||||
"second": 47,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0002_01BFC036.AE309650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, 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_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0002_01BFC036.AE309650"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 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, 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_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 653,
|
||||
"end": 690
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 716,
|
||||
"end": 735
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1562,26 +1727,51 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -2888,26 +3078,51 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -4366,5 +4581,24 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 547,
|
||||
"offset_end": 7745
|
||||
}
|
||||
+163
-47
@@ -38,62 +38,178 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010441.00a8d140@pop.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
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"format": "flowed"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein <br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, <br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der <br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; <br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte <br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste <br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein <br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, <br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein \nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, \nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der \nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; \nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte \neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste \nuntertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein \nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, \nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 597,
|
||||
"offset_end": 1422
|
||||
}
|
||||
+153
-47
@@ -23,61 +23,167 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche"
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n\r\n\r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 454,
|
||||
"offset_end": 1203
|
||||
}
|
||||
+142
-46
@@ -31,61 +31,157 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
"other_values": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 1321
|
||||
}
|
||||
+171
-45
@@ -32,61 +32,187 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "Windows-1252"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 30,
|
||||
"second": 20,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 594,
|
||||
"offset_end": 1401
|
||||
}
|
||||
+171
-45
@@ -33,61 +33,187 @@ welche also wohl noch ungl
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
"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)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 13,
|
||||
"second": 51,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod<br/>selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte<br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 589,
|
||||
"offset_end": 1341
|
||||
}
|
||||
+231
-69
@@ -74,86 +74,248 @@ race. =20
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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": 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
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 38,
|
||||
"second": 28,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 636,
|
||||
"end": 673
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 699,
|
||||
"end": 718
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1581,
|
||||
"end": 1617
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 1643,
|
||||
"end": 1662
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 530,
|
||||
"offset_end": 2901
|
||||
}
|
||||
+485
-142
@@ -200,116 +200,338 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715392540==_"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"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": 482
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.2\" width=27 height=27 alt=\"2aa3ed95.png\"><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.3\" width=27 height=27 alt=\"2aa3edd1.png\"></html>\n"
|
||||
}
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa3ed95.png2aa3edd1.png"
|
||||
}
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa3ed95.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
|
||||
},
|
||||
"Attachment": 4
|
||||
},
|
||||
{
|
||||
"Attachment": 5
|
||||
},
|
||||
{
|
||||
"Attachment": 6
|
||||
},
|
||||
{
|
||||
"Attachment": 7
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"name": "2aa3ed95.png"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 697,
|
||||
"end": 774
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": 831,
|
||||
"end": 866
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 892,
|
||||
"end": 911
|
||||
}
|
||||
]
|
||||
},
|
||||
"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; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.2\" width=27 height=27 alt=\"2aa3ed95.png\"><img src=\"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.3\" width=27 height=27 alt=\"2aa3edd1.png\"></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
80,
|
||||
@@ -1642,29 +1864,61 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa3edd1.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"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_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3126,26 +3380,51 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -4479,26 +4758,51 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -5802,5 +6106,44 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 11498
|
||||
}
|
||||
+249
-90
@@ -97,95 +97,220 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 53,
|
||||
"second": 25,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716373961==_"
|
||||
"values": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"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==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 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": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "mac-binhex40",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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": "blueball.png"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1486,
|
||||
"end": 1534
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 1554,
|
||||
"end": 1592
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
13,
|
||||
@@ -2124,23 +2249,41 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
13,
|
||||
@@ -3278,5 +3421,21 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 491,
|
||||
"offset_end": 4869
|
||||
}
|
||||
+261
-95
@@ -104,95 +104,220 @@ end
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 50,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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": "=====================_716177458==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race. <br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
"values": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"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==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 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": "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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
13,
|
||||
@@ -2056,26 +2181,51 @@ end
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
13,
|
||||
@@ -3974,5 +4124,21 @@ end
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 436,
|
||||
"offset_end": 5444
|
||||
}
|
||||
+362
-113
@@ -140,117 +140,308 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 33,
|
||||
"second": 1,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "multipart/alternative",
|
||||
"boundary": "=====================_715157131==_.REL"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
"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)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.0\" width=27 height=27 alt=\"blueball.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.1\" width=27 height=27 alt=\"redball.png\"></font></html>\n"
|
||||
}
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"Attachment": 3
|
||||
},
|
||||
{
|
||||
"Attachment": 4
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 711,
|
||||
"end": 746
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 772,
|
||||
"end": 791
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": 1686,
|
||||
"end": 1720
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 1746,
|
||||
"end": 1765
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.0\" width=27 height=27 alt=\"blueball.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.1\" width=27 height=27 alt=\"redball.png\"></font></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
80,
|
||||
@@ -1583,29 +1774,61 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3064,5 +3287,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 522,
|
||||
"offset_end": 7391
|
||||
}
|
||||
+361
-106
@@ -146,113 +146,317 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 42,
|
||||
"second": 10,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0008_01BFC037.FDD8EE90"
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><BR><FONT face=Arial size=2>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"Attachment": 3
|
||||
},
|
||||
{
|
||||
"Attachment": 4
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1717,
|
||||
"end": 1753
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 1779,
|
||||
"end": 1798
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><BR><FONT face=Arial size=2>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
80,
|
||||
@@ -1558,26 +1762,51 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
"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_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3036,5 +3265,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 7240
|
||||
}
|
||||
+171
-45
@@ -33,61 +33,187 @@ welche also wohl noch ungl
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 8,
|
||||
"second": 29,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"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": 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
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod<br/>selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte<br/>eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 543,
|
||||
"offset_end": 1295
|
||||
}
|
||||
+432
-115
@@ -190,107 +190,338 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@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"
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 47,
|
||||
"second": 24,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:938014623@17052000-0f9b\"></FONT></DIV>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n</FONT></DIV>\n<DIV><FONT face=Arial size=2><BR> </DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"Attachment": 4
|
||||
},
|
||||
{
|
||||
"Attachment": 5
|
||||
},
|
||||
{
|
||||
"Attachment": 6
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 768,
|
||||
"end": 848
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "938014623@17052000-0f9b"
|
||||
}
|
||||
"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> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n</FONT></DIV>\n<DIV><FONT face=Arial size=2><BR> </DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
137,
|
||||
@@ -1624,26 +1855,51 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -2950,26 +3206,51 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -4428,5 +4709,41 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 524,
|
||||
"offset_end": 9625
|
||||
}
|
||||
+175
-49
@@ -32,61 +32,187 @@ IiANCg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 11,
|
||||
"second": 50,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 545,
|
||||
"offset_end": 1571
|
||||
}
|
||||
+308
-111
@@ -110,98 +110,233 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716541962==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005505.00a853a0@pop.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
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"values": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 3
|
||||
},
|
||||
{
|
||||
"Attachment": 4
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1535,23 +1670,41 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
@@ -1559,29 +1712,73 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
"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_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_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 491,
|
||||
"offset_end": 5433
|
||||
}
|
||||
+300
-103
@@ -111,102 +111,251 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715429112==_.REL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 37,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"values": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2\" width=27 height=27 alt=\"2aa48eb6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3\" width=27 height=27 alt=\"2aa48ec0.png\"></font></html>\n"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 3
|
||||
}
|
||||
],
|
||||
"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": {
|
||||
"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": 565,
|
||||
"end": 599
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 625,
|
||||
"end": 644
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2\" width=27 height=27 alt=\"2aa48eb6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3\" width=27 height=27 alt=\"2aa48ec0.png\"></font></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa48eb6.png"
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa48eb6.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1540,29 +1689,61 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa48ec0.png"
|
||||
"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_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3021,5 +3202,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 6227
|
||||
}
|
||||
+423
-132
@@ -173,102 +173,282 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 38,
|
||||
"second": 13,
|
||||
"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.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==_"
|
||||
"values": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"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==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.2\" width=27 height=27 alt=\"2aa51367.png\"><img src=\"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.3\" width=27 height=27 alt=\"2aa51371.png\"></html>\n"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"Attachment": 3
|
||||
},
|
||||
{
|
||||
"Attachment": 4
|
||||
},
|
||||
{
|
||||
"Attachment": 5
|
||||
},
|
||||
{
|
||||
"Attachment": 6
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"name": "2aa51367.png"
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715462801==_.REL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa51367.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font><img src=\"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.2\" width=27 height=27 alt=\"2aa51367.png\"><img src=\"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.3\" width=27 height=27 alt=\"2aa51371.png\"></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
80,
|
||||
@@ -1601,29 +1781,61 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"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"
|
||||
"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_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa51371.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3085,26 +3297,51 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -4438,26 +4675,51 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"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": 8388,
|
||||
"end": 8422
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 8448,
|
||||
"end": 8457
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 8477,
|
||||
"end": 8516
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -5761,5 +6023,34 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 10334
|
||||
}
|
||||
+262
-96
@@ -86,100 +86,232 @@ Birds of a feather flock together.
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"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"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716740438==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"values": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"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==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"X-Sender": {
|
||||
"Text": "dwsauder@pop.example.com (Unverified)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 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": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 513,
|
||||
"end": 548
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 574,
|
||||
"end": 593
|
||||
}
|
||||
]
|
||||
},
|
||||
"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": "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": {
|
||||
"x-mac-type": "54455854",
|
||||
"x-mac-creator": "74747874",
|
||||
"name": "HasenundFr�sche.txt"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
@@ -187,26 +319,60 @@ Birds of a feather flock together.
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 462,
|
||||
"offset_end": 3739
|
||||
}
|
||||
+172
-46
@@ -33,61 +33,187 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"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": 10,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 555,
|
||||
"offset_end": 1364
|
||||
}
|
||||
+352
-97
@@ -158,108 +158,312 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"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": 44,
|
||||
"second": 45,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
"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"
|
||||
}
|
||||
"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": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. </FONT></DIV>\n<DIV><FONT face=Arial size=2></FONT> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f8d\"><BR> <BR>Slow but steady wins \nthe race. </FONT></DIV>\n<DIV> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"red ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f94\"><BR></DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"Attachment": 3
|
||||
},
|
||||
{
|
||||
"Attachment": 4
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"boundary": "----=_NextPart_001_000D_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f8d"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 632,
|
||||
"end": 712
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": 774,
|
||||
"end": 811
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 837,
|
||||
"end": 856
|
||||
}
|
||||
]
|
||||
},
|
||||
"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> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. </FONT></DIV>\n<DIV><FONT face=Arial size=2></FONT> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"blue ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f8d\"><BR> <BR>Slow but steady wins \nthe race. </FONT></DIV>\n<DIV> </DIV>\n<DIV><FONT face=Arial size=2><IMG align=baseline alt=\"red ball\" border=0 \nhspace=0 src=\"cid:823504223@17052000-0f94\"><BR></DIV></FONT></BODY></HTML>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
80,
|
||||
@@ -1592,21 +1796,46 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f94"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3065,5 +3294,31 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 526,
|
||||
"offset_end": 7631
|
||||
}
|
||||
+154
-48
@@ -29,61 +29,167 @@ Slow but steady wins the race.
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 26,
|
||||
"second": 16,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392362D8.B650789F@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
"other_values": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "1 (Highest)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 400,
|
||||
"offset_end": 1167
|
||||
}
|
||||
+321
-117
@@ -113,102 +113,237 @@ Slow but steady wins the race.
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------0BBC657DDC74A0B8454627FD"
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923635B.85C58444@example.com"
|
||||
},
|
||||
"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
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
|
||||
},
|
||||
0,
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 11,
|
||||
"end": 45
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 84
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 89,
|
||||
"end": 126
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Mailer"
|
||||
},
|
||||
"start": 135,
|
||||
"end": 165
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Other": "X-Accept-Language"
|
||||
},
|
||||
"start": 183,
|
||||
"end": 188
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 207
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 210,
|
||||
"end": 240
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 248,
|
||||
"end": 294
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 307,
|
||||
"end": 376
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0,
|
||||
1
|
||||
2,
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.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": "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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1540,28 +1675,53 @@ Slow but steady wins the race.
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -2868,30 +3028,74 @@ Slow but steady wins the race.
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "hareandtoroise.txt",
|
||||
"charset": "us-ascii"
|
||||
"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_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 6290
|
||||
}
|
||||
+278
-106
@@ -98,101 +98,218 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Test message from PINE"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190951410.8452-102000@penguin.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-952513540-958744548=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 9,
|
||||
"minute": 55,
|
||||
"second": 48,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>This is a test message from PINE MUA.<br/><br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-952513540-958744548=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "This is a test message from PINE MUA.\r\n\r\n\r"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 3
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 608,
|
||||
"end": 639
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "This is a test message from PINE MUA.\r\n\r\n\r"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
"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_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "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_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1654,32 +1771,71 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3010,5 +3166,21 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 336,
|
||||
"offset_end": 5169
|
||||
}
|
||||
+336
-111
@@ -135,117 +135,291 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "39235EAD.E48E2160@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@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": "------------C78F594988075E36AE03C243"
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 8,
|
||||
"second": 29,
|
||||
"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)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
},
|
||||
0,
|
||||
1
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
},
|
||||
0,
|
||||
1
|
||||
1,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers": {
|
||||
"Inline": 3
|
||||
},
|
||||
{
|
||||
"Inline": 4
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"boundary": "------------D74AE2393FB01D1B284AE257"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 477,
|
||||
"end": 552
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": 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ösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
80,
|
||||
@@ -1549,28 +1723,53 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -2901,5 +3100,31 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 6606
|
||||
}
|
||||
+153
-47
@@ -35,61 +35,167 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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": "UTF-8"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392363E1.2AC47AB3@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 30,
|
||||
"second": 41,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
"other_values": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Priority": {
|
||||
"Text": "5 (Lowest)"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Fr�sche<br/><br/>Die Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der<br/>Tod selbst. Auf, la�t uns ein f�r allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;<br/>allein das au�erordentliche Get�se und ihre wunderbare Gestalt<br/>erschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs<br/>schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein<br/>wenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl�cklicher sein m�ssen als wir.\"<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr�sche\n\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der\nTod selbst. Auf, la�t uns ein f�r allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt\nerschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs\nschnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 406,
|
||||
"offset_end": 1208
|
||||
}
|
||||
+141
-45
@@ -28,61 +28,157 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-7"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@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
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr+APY-sche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236497.12FA2A89@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Fr岣he<br/><br/>Die Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der<br/>Tod selbst. Auf, la uns ein f밠allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;<br/>allein das auޥrordentliche Get岥 und ihre wunderbare Gestalt<br/>erschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs<br/>schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein<br/>wenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl뢫licher sein m벳en als wir.\"<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr岣he\r\n\r\nDie Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\r\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der\r\nTod selbst. Auf, la uns ein f밠allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;\r\nallein das auޥrordentliche Get岥 und ihre wunderbare Gestalt\r\nerschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs\r\nschnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein\r\nwenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl뢫licher sein m벳en als wir.\"\r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 369,
|
||||
"offset_end": 1158
|
||||
}
|
||||
+472
-140
@@ -214,116 +214,327 @@ YII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 13,
|
||||
"second": 9,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------A1E83A41894D3755390B838A"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235FC5.276CCE00@example.com"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39235FC5.E71D8178@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
},
|
||||
2,
|
||||
3
|
||||
3,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "[blue ball]\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n[Image]\n\n\n"
|
||||
},
|
||||
2,
|
||||
3
|
||||
1,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"Attachment": 4
|
||||
},
|
||||
{
|
||||
"Attachment": 5
|
||||
},
|
||||
{
|
||||
"Inline": 6
|
||||
},
|
||||
{
|
||||
"Inline": 7
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailEG.png"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 661,
|
||||
"end": 694
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 720,
|
||||
"end": 739
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "------------C02FA3D0A04E95F295FB25EB"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1620,
|
||||
"end": 1691
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part1.39235FC5.E71D8178@example.com"
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1748,
|
||||
"end": 1778
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 1804,
|
||||
"end": 1811
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39235FC5.E71D8178@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1657,26 +1868,58 @@ YII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmail39.png"
|
||||
"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_id": {
|
||||
"Text": "part2.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3136,28 +3379,53 @@ YII=
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -4617,28 +4885,53 @@ YII=
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
"values": {
|
||||
"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_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -5942,5 +6235,44 @@ YII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
2,
|
||||
[
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 430,
|
||||
"offset_end": 11445
|
||||
}
|
||||
+121
-47
@@ -28,61 +28,135 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@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"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
"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"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 401,
|
||||
"offset_end": 1212
|
||||
}
|
||||
+226
-84
@@ -53,100 +53,229 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "392366A7.21929EA7@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body> </body></html>"
|
||||
},
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"values": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"contents": " \r"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
0
|
||||
"other_values": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Inline": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body> </body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"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": "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_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": [
|
||||
137,
|
||||
@@ -1477,5 +1606,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2585
|
||||
}
|
||||
+145
-49
@@ -19,61 +19,157 @@ Slow but steady wins the race.
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923625B.59F0C3AC@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 375,
|
||||
"offset_end": 1133
|
||||
}
|
||||
+413
-133
@@ -173,103 +173,272 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 18,
|
||||
"second": 27,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236103.FFE674FC@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------B7133A01A6B323BF00DBC9A7"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"values": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39236103.1B697A54@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b><font size=+2>Die Hasen und die Frösche</font></b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n\r"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"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,
|
||||
3
|
||||
5,
|
||||
6
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\""
|
||||
},
|
||||
2,
|
||||
3
|
||||
1,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"Attachment": 3
|
||||
},
|
||||
{
|
||||
"Attachment": 4
|
||||
},
|
||||
{
|
||||
"Inline": 5
|
||||
},
|
||||
{
|
||||
"Inline": 6
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part1.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailV0.png"
|
||||
"boundary": "------------8E6A06810565BCAB5E1F7D97"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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ösche</font></b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n\r"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
80,
|
||||
@@ -1602,26 +1771,58 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "C:TEMPnsmailNM.png"
|
||||
"values": {
|
||||
"content_id": {
|
||||
"Text": "part2.39236103.1B697A54@example.com"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part2.39236103.1B697A54@example.com"
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3081,28 +3282,53 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
"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_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -4407,28 +4633,53 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
"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_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -5759,5 +6010,34 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 415,
|
||||
"offset_end": 10133
|
||||
}
|
||||
+141
-45
@@ -30,61 +30,157 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 41,
|
||||
"second": 7,
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236653.CAA8A090@example.com"
|
||||
},
|
||||
"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": 332
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 345,
|
||||
"end": 378
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 404,
|
||||
"end": 423
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 425,
|
||||
"offset_end": 1231
|
||||
}
|
||||
+210
-83
@@ -59,101 +59,215 @@ vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 23,
|
||||
"second": 16,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "PNG graphic"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-170444605-958746196=:8452"
|
||||
"values": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r"
|
||||
}
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 623,
|
||||
"end": 654
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "\r"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
"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_description": {
|
||||
"Text": "red ball"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "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_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1612,5 +1726,18 @@ vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 351,
|
||||
"offset_end": 2999
|
||||
}
|
||||
+225
-83
@@ -60,102 +60,244 @@ Birds of a feather flock together.
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"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": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923686C.99FB5E36@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
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 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,<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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii",
|
||||
"name": "farmerandstork.txt"
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2368
|
||||
}
|
||||
+203
-71
@@ -63,86 +63,218 @@ als wir."
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392359CF.DFF4527@example.com"
|
||||
},
|
||||
"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
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------9D454F23DA86BCD63FA3805F"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
"other_values": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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": 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"
|
||||
"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": 1426,
|
||||
"end": 1456
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 1482,
|
||||
"end": 1489
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 440,
|
||||
"offset_end": 2482
|
||||
}
|
||||
+324
-120
@@ -139,104 +139,239 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------A1FCDEE154E03D875E5D6779"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235E1C.1DC7EA90@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 6,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der<br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt<br/>erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs<br/>schnellste untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
|
||||
},
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"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
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
},
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
}
|
||||
},
|
||||
"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
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Inline": 2
|
||||
},
|
||||
{
|
||||
"Inline": 3
|
||||
},
|
||||
{
|
||||
"Inline": 4
|
||||
}
|
||||
],
|
||||
"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": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
"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": 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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1696,28 +1831,53 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
"values": {
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3022,28 +3182,53 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
"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_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -4374,5 +4559,24 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 7534
|
||||
}
|
||||
+217
-90
@@ -44,111 +44,238 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-891160829-958746372=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
},
|
||||
{
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 26,
|
||||
"second": 12,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
"values": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"contents": "\r"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"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"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
"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_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"
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 419,
|
||||
"offset_end": 2168
|
||||
}
|
||||
+143
-47
@@ -34,61 +34,157 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 22,
|
||||
"minute": 31,
|
||||
"second": 57,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@example.com"
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,<br/>der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der<br/>Tod selbst. Auf, laßt uns ein für allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;<br/>allein das außerordentliche Getöse und ihre wunderbare Gestalt<br/>erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs<br/>schnellste untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein<br/>wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch unglücklicher sein müssen als wir.\"<br/><br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 453,
|
||||
"offset_end": 1251
|
||||
}
|
||||
+224
-82
@@ -62,102 +62,244 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------CA611088711119FBDB3473B4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392367BC.3D075C95@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 47,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
"values": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------CA611088711119FBDB3473B4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 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,<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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 2434
|
||||
}
|
||||
+322
-118
@@ -157,104 +157,239 @@ end
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------177483472E7788F4AD46AB1A"
|
||||
"values": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 44,
|
||||
"second": 12,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923670C.67D83A99@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body><br/>The Hare and the Tortoise <br/> <br/>A HARE one day ridiculed the short feet and slow pace of the Tortoise,<br/>who replied, laughing: \"Though you be swift as the wind, I will beat<br/>you in a race.\" The Hare, believing her assertion to be simply<br/>impossible, assented to the proposal; and they agreed that the Fox<br/>should choose the course and fix the goal. On the day appointed for the<br/>race the two started together. The Tortoise never for a moment stopped,<br/>but went on with a slow but steady pace straight to the end of the<br/>course. The Hare, lying down by the wayside, fell fast asleep. At last<br/>waking up, and moving as fast as he could, he saw the Tortoise had<br/>reached the goal, and was comfortably dozing after her fatigue. <br/> <br/>Slow but steady wins the race.</body></html>"
|
||||
},
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"X-Accept-Language": {
|
||||
"Text": "en"
|
||||
},
|
||||
"X-Mailer": {
|
||||
"Text": "Mozilla 4.7 [en] (WinNT; I)"
|
||||
}
|
||||
},
|
||||
"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
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Inline": 2
|
||||
},
|
||||
{
|
||||
"Inline": 3
|
||||
},
|
||||
{
|
||||
"Inline": 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "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_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": [
|
||||
98,
|
||||
@@ -2329,28 +2464,53 @@ end
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
98,
|
||||
@@ -4207,28 +4367,53 @@ end
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
"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_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
98,
|
||||
@@ -6122,5 +6307,24 @@ end
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 378,
|
||||
"offset_end": 7716
|
||||
}
|
||||
+136
-31
File diff suppressed because one or more lines are too long
+299
-102
@@ -111,102 +111,251 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 39,
|
||||
"second": 36,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715546120==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
"values": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715546120==_.REL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.2\" width=27 height=27 alt=\"2aa658b6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.3\" width=27 height=27 alt=\"2aa658c0.png\"></font></html>\n"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n\n"
|
||||
}
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 3
|
||||
}
|
||||
],
|
||||
"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": {
|
||||
"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": 565,
|
||||
"end": 599
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 625,
|
||||
"end": 644
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<html>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.2\" width=27 height=27 alt=\"2aa658b6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.3\" width=27 height=27 alt=\"2aa658c0.png\"></font></html>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa658b6.png"
|
||||
"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_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa658b6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa658b6.png"
|
||||
}
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -1540,29 +1689,61 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa658c0.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3021,5 +3202,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 510,
|
||||
"offset_end": 6227
|
||||
}
|
||||
+427
-136
@@ -163,102 +163,282 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715515186==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/><br/>2aa5e03a.png2aa5e044.png</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"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
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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)"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
|
||||
},
|
||||
"Attachment": 3
|
||||
},
|
||||
{
|
||||
"Attachment": 4
|
||||
},
|
||||
{
|
||||
"Attachment": 5
|
||||
},
|
||||
{
|
||||
"Attachment": 6
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"name": "2aa5e03a.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "2aa5e03a.png"
|
||||
"boundary": "=====================_715515186==_.REL",
|
||||
"type": "text/plain"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 686,
|
||||
"end": 721
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 747,
|
||||
"end": 766
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
80,
|
||||
@@ -1591,29 +1771,61 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa5e044.png"
|
||||
"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_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -3075,26 +3287,51 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
"values": {
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -4428,26 +4665,51 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
"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_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
137,
|
||||
@@ -5751,5 +6013,34 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 484,
|
||||
"offset_end": 9939
|
||||
}
|
||||
+136
-31
@@ -29,46 +29,151 @@ welche also wohl noch ungl
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 28,
|
||||
"second": 40,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Fr�sche<br/><br/>Die Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein<br/>Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der<br/>Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod<br/>selbst. Auf, la�t uns ein f�r allemal sterben.\"<br/><br/>In einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;<br/>allein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte<br/>eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste<br/>untertauchten.<br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein<br/>wenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,<br/>welche also wohl noch ungl�cklicher sein m�ssen als wir.\"<br/><br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr�sche\r\n\r\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod\r\nselbst. Auf, la�t uns ein f�r allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\r\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte\r\neine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\r\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\r\n\r\n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 434,
|
||||
"offset_end": 1186
|
||||
}
|
||||
+172
-46
@@ -34,61 +34,187 @@ als wir."=20
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 27,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
"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": [
|
||||
{
|
||||
"contents": "<html><body>Die Hasen und die Frösche<br/><br/>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" <br/><br/>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. <br/><br/>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" <br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 579,
|
||||
"offset_end": 1440
|
||||
}
|
||||
+25
-8
@@ -12,14 +12,31 @@ Content-Type: text/html
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": ":foo"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": ":foo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 47
|
||||
}
|
||||
]
|
||||
},
|
||||
"structure": {
|
||||
"List": []
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 48,
|
||||
"offset_end": 160
|
||||
}
|
||||
+68
-12
@@ -12,24 +12,80 @@ Content-Type: text/plain
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 45
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Content-Type: text/plain<br/></body></html>"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "Content-Type: text/plain\n"
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 132
|
||||
}
|
||||
+30
-8
@@ -5,21 +5,43 @@ body
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 45
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 0
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 51
|
||||
}
|
||||
+76
-12
@@ -11,29 +11,93 @@ body
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"Attachment": 1
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 111,
|
||||
"end": 123
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 129
|
||||
}
|
||||
+30
-8
@@ -11,21 +11,43 @@ body
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 0
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 0
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 131
|
||||
}
|
||||
+92
-25
@@ -15,32 +15,99 @@ body2
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a--"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>body</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a--"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "body"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 46
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 123,
|
||||
"end": 135
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "body"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 47,
|
||||
"offset_end": 189
|
||||
}
|
||||
+76
-12
@@ -11,29 +11,93 @@ body
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"Attachment": 1
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 113,
|
||||
"end": 125
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 131
|
||||
}
|
||||
+71
-8
@@ -13,21 +13,84 @@ Content-Type: text/plain
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 1
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "--a--\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 157
|
||||
}
|
||||
+76
-12
@@ -15,29 +15,93 @@ body2
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 45
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"Attachment": 1
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 113,
|
||||
"end": 125
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "body\n--ab\nContent-Type: text/html\n\nbody2\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 46,
|
||||
"offset_end": 167
|
||||
}
|
||||
+114
-30
@@ -19,47 +19,131 @@ Content-Type: text/plain
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"Attachment": 3
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 62,
|
||||
"end": 93
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>1</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 193
|
||||
}
|
||||
+111
-18
@@ -9,49 +9,142 @@ Content-Type: text/plain
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 29
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"Attachment": 1
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 43,
|
||||
"end": 59
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"Attachment": 1
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 85
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "1\n"
|
||||
"Text": {
|
||||
"contents": "<html><body>1<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "1\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"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": 88
|
||||
}
|
||||
+114
-30
@@ -19,47 +19,131 @@ Content-Type: text/plain
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"Attachment": 3
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 62,
|
||||
"end": 93
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>1</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 193
|
||||
}
|
||||
+168
-20
@@ -25,35 +25,77 @@ Content-Type: text/plain
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"Attachment": 2
|
||||
},
|
||||
{
|
||||
"Attachment": 4
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
"offsets": [
|
||||
{
|
||||
"contents": "<html><body>1</body></html>"
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 62,
|
||||
"end": 93
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"contents": "1"
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 111,
|
||||
"end": 127
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -61,21 +103,127 @@ Content-Type: text/plain
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 141,
|
||||
"end": 153
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>1</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 128,
|
||||
"offset_body": 154,
|
||||
"offset_end": 160
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 283
|
||||
}
|
||||
+256
-56
@@ -34,77 +34,277 @@ hello, world
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 57,
|
||||
"end": 62
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
}
|
||||
0,
|
||||
3,
|
||||
6,
|
||||
9
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
4,
|
||||
7,
|
||||
10
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
"Text": {
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 80,
|
||||
"end": 92
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "2.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 123,
|
||||
"end": 154
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 167,
|
||||
"end": 172
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"Text": {
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 190,
|
||||
"end": 202
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "abc"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
},
|
||||
"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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 300,
|
||||
"end": 312
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 406,
|
||||
"end": 418
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
8,
|
||||
[
|
||||
{
|
||||
"Part": 10
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 63,
|
||||
"offset_end": 436
|
||||
}
|
||||
+61
-25
@@ -9,32 +9,68 @@ hello, world
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>hello, world</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 62,
|
||||
"end": 74
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 92
|
||||
}
|
||||
+187
-74
@@ -27,89 +27,189 @@ invalid
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Another User",
|
||||
"address": "test2@example.org"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "signed",
|
||||
"attributes": {
|
||||
"micalg": "pgp-sha1",
|
||||
"protocol": "application/pgp-signature",
|
||||
"boundary": "=-GNQXLhuj24Pl1aCkk4/d"
|
||||
}
|
||||
}
|
||||
},
|
||||
"return_path": {
|
||||
"Text": "test@example.org"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Test User",
|
||||
"address": "test@example.org"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "1.2.3.4@example"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2007,
|
||||
"month": 5,
|
||||
"day": 23,
|
||||
"hour": 4,
|
||||
"minute": 58,
|
||||
"second": 8,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 3,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Hello world"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>There was a day <br/>a happy day<br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "There was a day \na happy day\n"
|
||||
}
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 2
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 373,
|
||||
"end": 385
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 411,
|
||||
"end": 429
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "There was a day \na happy day\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "pgp-signature",
|
||||
"attributes": {
|
||||
"name": "signature.asc"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "pgp-signature",
|
||||
"attributes": {
|
||||
"name": "signature.asc"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 502,
|
||||
"end": 549
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
105,
|
||||
@@ -123,5 +223,18 @@ invalid
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 335,
|
||||
"offset_end": 585
|
||||
}
|
||||
+138
-30
@@ -26,47 +26,155 @@ Content-Type: text/plain
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1234567890123456789012345678901234567890123456789012345678901234567890123456789012"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>1<br/>--1234567890123456789012345678901234567890123456789012345678901234567890123456789012<br/>Content-Type: text/plain<br/><br/>22<br/>--123456789012345678901234567890123456789012345678901234567890123456789012345678901<br/>Content-Type: text/plain<br/><br/>333</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1234567890123456789012345678901234567890123456789012345678901234567890123456789012"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "1\n--1234567890123456789012345678901234567890123456789012345678901234567890123456789012\nContent-Type: text/plain\n\n22\n--123456789012345678901234567890123456789012345678901234567890123456789012345678901\nContent-Type: text/plain\n\n333"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 125
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"Attachment": 4
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 126,
|
||||
"offset_end": 997
|
||||
}
|
||||
+373
-113
@@ -74,103 +74,246 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "unique-boundary-1"
|
||||
"values": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@nsb.fv.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@nsb.fv.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "A multipart example"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1994,
|
||||
"month": 10,
|
||||
"day": 7,
|
||||
"hour": 16,
|
||||
"minute": 15,
|
||||
"second": 5,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 7,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>... Some text appears here ...<br/><br/>[Note that the blank between the boundary and the start<br/>of the text in this part means no header fields were<br/>given and this is text in the US-ASCII character set.<br/>It could have been done with explicit typing as in the<br/>next part.]<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>This could have been part of the previous part, but<br/>illustrates explicit versus implicit typing of body<br/>parts.<br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "unique-boundary-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "This could have been part of the previous part, but\nillustrates explicit versus implicit typing of body\nparts.\n"
|
||||
}
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 5
|
||||
},
|
||||
{
|
||||
"Attachment": 6
|
||||
},
|
||||
{
|
||||
"Attachment": 7
|
||||
},
|
||||
{
|
||||
"Attachment": 9
|
||||
}
|
||||
],
|
||||
"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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "audio",
|
||||
"c_subtype": "basic"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"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",
|
||||
"attributes": {
|
||||
"boundary": "unique-boundary-2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg"
|
||||
"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"
|
||||
}
|
||||
@@ -178,56 +321,173 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "enriched"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "ISO-8859-1"
|
||||
}
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "mailbox in US-ASCII"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "(subject in US-ASCII)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "address in US-ASCII"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "Quoted-printable"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
"offsets": [
|
||||
{
|
||||
"contents": "<html><body>... Additional text in ISO-8859-1 goes here ...<br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "... Additional text in ISO-8859-1 goes here ...\n"
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1590,
|
||||
"end": 1606
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "address in US-ASCII"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "ISO-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "(subject in US-ASCII)"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "Quoted-printable"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "mailbox in US-ASCII"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 1612,
|
||||
"end": 1635
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 1638,
|
||||
"end": 1661
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 1669,
|
||||
"end": 1692
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1705,
|
||||
"end": 1737
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 1763,
|
||||
"end": 1781
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>... Additional text in ISO-8859-1 goes here ...<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "... Additional text in ISO-8859-1 goes here ...\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 1607,
|
||||
"offset_body": 1782,
|
||||
"offset_end": 1850
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
4,
|
||||
[
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
},
|
||||
{
|
||||
"Part": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 239,
|
||||
"offset_end": 1852
|
||||
}
|
||||
+179
-59
@@ -42,56 +42,138 @@ get RFC-MIME.DOC
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "whatever"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "id1@host.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "42"
|
||||
"values": {
|
||||
"message_id": {
|
||||
"Text": "id1@host.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Someone"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Whomever"
|
||||
"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
|
||||
},
|
||||
{
|
||||
"Attachment": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"name": "BodyFormats.ps",
|
||||
"mode": "image",
|
||||
"site": "thumper.bellcore.com",
|
||||
"directory": "pub",
|
||||
"access-type": "ANON-FTP",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 216,
|
||||
"end": 432
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
67,
|
||||
@@ -179,18 +261,29 @@ get RFC-MIME.DOC
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"access-type": "local-file",
|
||||
"site": "thumper.bellcore.com"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 531,
|
||||
"end": 735
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
67,
|
||||
@@ -278,17 +371,28 @@ get RFC-MIME.DOC
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"access-type": "mail-server",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"server": "listserv@bogus.bitnet"
|
||||
"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)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 834,
|
||||
"end": 1001
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
67,
|
||||
@@ -391,5 +495,21 @@ get RFC-MIME.DOC
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 198,
|
||||
"offset_end": 1106
|
||||
}
|
||||
+386
-128
@@ -74,166 +74,398 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "[Fwd: Map of Argentina with Description]"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "White House Transportation Coordinator",
|
||||
"address": "transport@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "D7F------------D7FD5A0B8AB9C65CCDBFA872"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Al Gore",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Fred,<br/><br/>Fire up Air Force One! We're going South!<br/><br/>Thanks,<br/>Al</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"values": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Al Gore",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"contents": "Fred,\n\nFire up Air Force One! We're going South!\n\nThanks,\nAl"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "White House Transportation Coordinator",
|
||||
"address": "transport@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "D7F------------D7FD5A0B8AB9C65CCDBFA872"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "[Fwd: Map of Argentina with Description]"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 47
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 50,
|
||||
"end": 123
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 131,
|
||||
"end": 173
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 186,
|
||||
"end": 269
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"Attachment": 3
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>Fred,<br/><br/>Fire up Air Force One! We're going South!<br/><br/>Thanks,<br/>Al</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"received": {
|
||||
"Collection": [
|
||||
{
|
||||
"Text": "from mailhost.whitehouse.gov ([192.168.51.200])\n by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453\n for <vice-president@heartbeat.whitehouse.gov>;\n Mon, 13 Aug 1998 l8:14:23 +1000"
|
||||
},
|
||||
{
|
||||
"Text": "from the_big_box.whitehouse.gov ([192.168.51.50])\n by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366\n for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000"
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "199804130742.RAA20366@mai1host.whitehouse.gov"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "A1 Gore (The Enforcer)",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Map of Argentina with Description"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1998,
|
||||
"month": 8,
|
||||
"day": 13,
|
||||
"hour": 17,
|
||||
"minute": 42,
|
||||
"second": 41,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 10,
|
||||
"tz_minute": 0
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 370,
|
||||
"end": 400
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 426,
|
||||
"end": 432
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "Fred,\n\nFire up Air Force One! We're going South!\n\nThanks,\nAl"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Bill Clinton",
|
||||
"address": "president@whitehouse.gov"
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
|
||||
}
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
},
|
||||
"return_path": {
|
||||
"Text": "president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
"offsets": [
|
||||
{
|
||||
"contents": "<html><body>Hi A1,<br/><br/>I finally figured out this MIME thing. Pretty cool. I'll send you<br/>some sax music in .au files next week!<br/><br/>Anyway, the attached image is really too small to get a good look at<br/>Argentina. Try this for a much better map:<br/><br/> http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm<br/><br/>Then again, shouldn't the CIA have something like that?<br/><br/>Bill</body></html>"
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 550,
|
||||
"end": 566
|
||||
},
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 592,
|
||||
"end": 598
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 618,
|
||||
"end": 626
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"contents": "Hi A1,\n\nI finally figured out this MIME thing. Pretty cool. I'll send you\nsome sax music in .au files next week!\n\nAnyway, the attached image is really too small to get a good look at\nArgentina. Try this for a much better map:\n\n http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm\n\nThen again, shouldn't the CIA have something like that?\n\nBill"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "A1 Gore (The Enforcer)",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Bill Clinton",
|
||||
"address": "president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1998,
|
||||
"month": 8,
|
||||
"day": 13,
|
||||
"hour": 17,
|
||||
"minute": 42,
|
||||
"second": 41,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 10,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"return_path": {
|
||||
"Text": "president@whitehouse.gov"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "199804130742.RAA20366@mai1host.whitehouse.gov"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Map of Argentina with Description"
|
||||
},
|
||||
"received": {
|
||||
"Collection": [
|
||||
{
|
||||
"Text": "from mailhost.whitehouse.gov ([192.168.51.200])\n by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453\n for <vice-president@heartbeat.whitehouse.gov>;\n Mon, 13 Aug 1998 l8:14:23 +1000"
|
||||
},
|
||||
{
|
||||
"Text": "from the_big_box.whitehouse.gov ([192.168.51.50])\n by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366\n for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
0
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "return_path"
|
||||
},
|
||||
"start": 639,
|
||||
"end": 667
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "received"
|
||||
},
|
||||
"start": 676,
|
||||
"end": 893
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "received"
|
||||
},
|
||||
"start": 902,
|
||||
"end": 1100
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 1105,
|
||||
"end": 1138
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "message_id"
|
||||
},
|
||||
"start": 1149,
|
||||
"end": 1198
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 1203,
|
||||
"end": 1244
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "to"
|
||||
},
|
||||
"start": 1247,
|
||||
"end": 1303
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 1311,
|
||||
"end": 1347
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 1360,
|
||||
"end": 1365
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1378,
|
||||
"end": 1461
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0,
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Inline": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>Hi A1,<br/><br/>I finally figured out this MIME thing. Pretty cool. I'll send you<br/>some sax music in .au files next week!<br/><br/>Anyway, the attached image is really too small to get a good look at<br/>Argentina. Try this for a much better map:<br/><br/> http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm<br/><br/>Then again, shouldn't the CIA have something like that?<br/><br/>Bill</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "gif",
|
||||
"attributes": {
|
||||
"name": "map_of_Argentina.gif"
|
||||
"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": {
|
||||
"fi1ename": "map_of_Argentina.gif"
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 1562,
|
||||
"end": 1592
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 1618,
|
||||
"end": 1624
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "Hi A1,\n\nI finally figured out this MIME thing. Pretty cool. I'll send you\nsome sax music in .au files next week!\n\nAnyway, the attached image is really too small to get a good look at\nArgentina. Try this for a much better map:\n\n http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm\n\nThen again, shouldn't the CIA have something like that?\n\nBill"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "gif",
|
||||
"attributes": {
|
||||
"name": "map_of_Argentina.gif"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"fi1ename": "map_of_Argentina.gif"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 2036,
|
||||
"end": 2076
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 2102,
|
||||
"end": 2110
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 2130,
|
||||
"end": 2171
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
71,
|
||||
@@ -527,8 +759,34 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 627,
|
||||
"offset_body": 1462,
|
||||
"offset_end": 2607
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 270,
|
||||
"offset_end": 2650
|
||||
}
|
||||
+179
-70
@@ -26,78 +26,155 @@ Content-Type: application/x-whatever
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "boundary42"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Formatted text mail"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 22,
|
||||
"hour": 9,
|
||||
"minute": 41,
|
||||
"second": 9,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 8,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>... plain text version of message goes here ...<br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
"values": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"contents": "... plain text version of message goes here ...\n"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 1
|
||||
},
|
||||
{
|
||||
"Attachment": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "enriched"
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
@@ -105,12 +182,23 @@ Content-Type: application/x-whatever
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "x-whatever"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "x-whatever"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 472,
|
||||
"end": 496
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
46,
|
||||
@@ -166,6 +254,27 @@ Content-Type: application/x-whatever
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>... plain text version of message goes here ...<br/></body></html>"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 228,
|
||||
"offset_end": 563
|
||||
}
|
||||
+301
-92
@@ -37,129 +37,338 @@ Subject: my different opinion
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "Internet Digest, volume 42"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "---- main boundary ----"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Recipient-List"
|
||||
"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
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1994,
|
||||
"month": 3,
|
||||
"day": 22,
|
||||
"hour": 13,
|
||||
"minute": 34,
|
||||
"second": 51,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 0,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>...Introductory text or table of contents...<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "...Introductory text or table of contents...\n"
|
||||
}
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else"
|
||||
"Attachment": 4
|
||||
},
|
||||
{
|
||||
"Attachment": 6
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>...Introductory text or table of contents...<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "...Introductory text or table of contents...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "digest",
|
||||
"attributes": {
|
||||
"boundary": "---- next message ----"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 11,
|
||||
"minute": 13,
|
||||
"second": 32,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 2,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my opinion"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
"offsets": [
|
||||
{
|
||||
"contents": "<html><body>...body goes here ...<br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "...body goes here ...\n"
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 326,
|
||||
"end": 391
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else-again"
|
||||
"values": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my opinion"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 11,
|
||||
"minute": 13,
|
||||
"second": 32,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 2,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 10,
|
||||
"minute": 7,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 5,
|
||||
"tz_minute": 0
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 423,
|
||||
"end": 437
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 442,
|
||||
"end": 475
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 483,
|
||||
"end": 495
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my different opinion"
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>... another body goes here ...<br/></body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"contents": "... another body goes here ...\n"
|
||||
"Text": {
|
||||
"contents": "<html><body>...body goes here ...<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"subject": {
|
||||
"Text": "my different opinion"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else-again"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 10,
|
||||
"minute": 7,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 5,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 550,
|
||||
"end": 570
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 575,
|
||||
"end": 608
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 616,
|
||||
"end": 638
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>... another body goes here ...<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "... another body goes here ...\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 545,
|
||||
"offset_body": 639,
|
||||
"offset_end": 695
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
2,
|
||||
[
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 214,
|
||||
"offset_end": 726
|
||||
}
|
||||
+149
-65
@@ -26,72 +26,156 @@ This is the epilogue. It is also to be ignored.
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Sample message"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "simple boundary"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 21,
|
||||
"hour": 23,
|
||||
"minute": 56,
|
||||
"second": 48,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 8,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>This is implicitly typed plain US-ASCII text.<br/>It does NOT end with a linebreak.</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>This is explicitly typed plain US-ASCII text.<br/>It DOES end with a linebreak.<br/></body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "This is implicitly typed plain US-ASCII text.\nIt does NOT end with a linebreak."
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
"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
|
||||
}
|
||||
},
|
||||
"contents": "This is explicitly typed plain US-ASCII text.\nIt DOES end with a linebreak.\n"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
3
|
||||
],
|
||||
"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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 224,
|
||||
"offset_end": 639
|
||||
}
|
||||
+163
-60
@@ -24,75 +24,178 @@ Content-Disposition: inline
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"address": "sender@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "boundary-string"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Multipart Email Example"
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
1
|
||||
],
|
||||
"text_body": [
|
||||
0
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Plain text email goes here!\nThis is the fallback if email client does not support HTML\n"
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "Plain text email goes here!\nThis is the fallback if email client does not support HTML\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<h1>This is the HTML Section!</h1>\n<p>This is what displays in most modern email clients</p>\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 149,
|
||||
"offset_end": 615
|
||||
}
|
||||
+531
-127
@@ -74,136 +74,359 @@ K
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "RFC 8621 Section 4.1.4 test"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>A</body></html>"
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html>E</html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>K</body></html>"
|
||||
}
|
||||
0,
|
||||
9,
|
||||
15
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "A"
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "B"
|
||||
},
|
||||
0,
|
||||
{
|
||||
"headers": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "D"
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "K"
|
||||
}
|
||||
1,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
16
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"InlineBinary": {
|
||||
"Inline": 6
|
||||
},
|
||||
{
|
||||
"Attachment": 10
|
||||
},
|
||||
{
|
||||
"Attachment": 11
|
||||
},
|
||||
{
|
||||
"Attachment": 12
|
||||
},
|
||||
{
|
||||
"Attachment": 14
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>A</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"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": "inline"
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 161,
|
||||
"end": 192
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 314,
|
||||
"end": 326
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 346,
|
||||
"end": 354
|
||||
}
|
||||
]
|
||||
},
|
||||
"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": [
|
||||
67
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 438,
|
||||
"end": 450
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 470,
|
||||
"end": 478
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "D"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg"
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "5"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 506,
|
||||
"end": 539
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 557,
|
||||
"end": 568
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<html>E</html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 603,
|
||||
"end": 615
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
70
|
||||
]
|
||||
@@ -212,17 +435,35 @@ K
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg"
|
||||
"values": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment"
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 655,
|
||||
"end": 667
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 687,
|
||||
"end": 699
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
71
|
||||
@@ -232,12 +473,23 @@ K
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "x-excel"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "x-excel"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 721,
|
||||
"end": 742
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
72
|
||||
@@ -245,23 +497,175 @@ K
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "J"
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
"offsets": [
|
||||
{
|
||||
"contents": "<html><body>J</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "J"
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 764,
|
||||
"end": 780
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"subject": {
|
||||
"Text": "J"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 789,
|
||||
"end": 792
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>J</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "J"
|
||||
}
|
||||
}
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 781,
|
||||
"offset_body": 793,
|
||||
"offset_end": 798
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>K</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 821,
|
||||
"end": 833
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_disposition"
|
||||
},
|
||||
"start": 853,
|
||||
"end": 861
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "K"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
2,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
3,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
4,
|
||||
[
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 6
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"MultiPart": [
|
||||
8,
|
||||
[
|
||||
{
|
||||
"Part": 9
|
||||
},
|
||||
{
|
||||
"Part": 10
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 11
|
||||
},
|
||||
{
|
||||
"Part": 12
|
||||
},
|
||||
{
|
||||
"Part": 13
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 16
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 82,
|
||||
"offset_end": 869
|
||||
}
|
||||
Vendored
+119
-38
@@ -21,55 +21,136 @@ ZWg=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "bound"
|
||||
"values": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "bound"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 19
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 32,
|
||||
"end": 76
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"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>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>eh</body></html>"
|
||||
}
|
||||
2,
|
||||
3
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
"contents": "we have\ra lot \nof \u0000binary stuff in here\nb adjig sadjg jasidgjiaehga3wht8a3w8ghxjc dsgad hasdghsd gasd dsjdsoga sjdga0w3tjhawjgsertniq3n5oqerjqw2r89q23h awhrqh835r8a"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"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_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "eh"
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 78,
|
||||
"offset_end": 478
|
||||
}
|
||||
Vendored
+151
-50
@@ -26,69 +26,170 @@ hello world
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "bound"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "bound"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 19
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 32,
|
||||
"end": 76
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz<br/>aWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk<br/>Z2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>ZWg=</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>hello world<br/></body></html>"
|
||||
}
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"text_body": [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"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"
|
||||
"contents": "d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz\r\naWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk\r\nZ2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=\r"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"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="
|
||||
"contents": "ZWg="
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "hello world\r\n\r"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 78,
|
||||
"offset_end": 529
|
||||
}
|
||||
Vendored
+155
-57
@@ -21,79 +21,177 @@ Content-Type: text/plain; charset=utf-8
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "foo"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "foo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 13,
|
||||
"end": 44
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>päivää<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>yötä vaan.<br/>�\t�</body></html>"
|
||||
}
|
||||
0,
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "päivää\n"
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "yötä vaan.\n�\t�"
|
||||
}
|
||||
1,
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 4
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>päivää<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"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": 77,
|
||||
"end": 95
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 108,
|
||||
"end": 135
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "päivää\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>yötä vaan.<br/>�\t�</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": 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 301,
|
||||
"end": 309
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 322,
|
||||
"end": 349
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "?garbage"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 45,
|
||||
"offset_end": 366
|
||||
}
|
||||
Vendored
+257
-95
@@ -36,121 +36,283 @@ TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
"values": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Move black king to queen's bishop<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
}
|
||||
0,
|
||||
2,
|
||||
4,
|
||||
6,
|
||||
8
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
3,
|
||||
5,
|
||||
7,
|
||||
9
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Move black king to queen's bishop\n"
|
||||
"Text": {
|
||||
"contents": "<html><body>Move black king to queen's bishop<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
"Text": {
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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": 213,
|
||||
"end": 224
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 237,
|
||||
"end": 264
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
"Text": {
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"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": "base64"
|
||||
}
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
},
|
||||
{
|
||||
"Part": 9
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 63,
|
||||
"offset_end": 655
|
||||
}
|
||||
Vendored
+301
-112
@@ -42,138 +42,327 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
"values": {
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Move black king to queen's bishop<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>Move =E2=99=9A to =E2=99=9B's =E2=99=9D<br/></body></html>"
|
||||
}
|
||||
0,
|
||||
2,
|
||||
4,
|
||||
6,
|
||||
8,
|
||||
10
|
||||
],
|
||||
"text_body": [
|
||||
1,
|
||||
3,
|
||||
5,
|
||||
7,
|
||||
9,
|
||||
11
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "6bit"
|
||||
},
|
||||
"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 black king to queen's bishop<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "6bit"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 93,
|
||||
"end": 99
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 112,
|
||||
"end": 139
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bits"
|
||||
}
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
"contents": "Move black king to queen's bishop\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8 bit"
|
||||
}
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
"Text": {
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7-bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bits"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 205,
|
||||
"end": 218
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 231,
|
||||
"end": 258
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8-bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Move ♚ to ♛'s ♝\n"
|
||||
"Text": {
|
||||
"contents": "<html><body>Move ♚ to ♛'s ♝<br/></body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8 bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Move =E2=99=9A to =E2=99=9B's =E2=99=9D\n"
|
||||
},
|
||||
"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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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": 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>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"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": 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
},
|
||||
{
|
||||
"Part": 5
|
||||
},
|
||||
{
|
||||
"Part": 7
|
||||
},
|
||||
{
|
||||
"Part": 9
|
||||
},
|
||||
{
|
||||
"Part": 11
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 63,
|
||||
"offset_end": 703
|
||||
}
|
||||
Vendored
BIN
Binary file not shown.
Vendored
+211
-47
@@ -31,68 +31,206 @@ Signed by undersigned
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Hide and seek"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
"values": {
|
||||
"subject": {
|
||||
"Text": "Hide and seek"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html><head><title>Search me</title></head><body><p>Don't find me here</p></body></html>\n"
|
||||
}
|
||||
2
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
}
|
||||
},
|
||||
"contents": "Search me, and Find me here"
|
||||
}
|
||||
3
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"Attachment": 4
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "signature",
|
||||
"c_subtype": "plain",
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "signed",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"protocol": "signature/plain",
|
||||
"boundary": "2",
|
||||
"migalc": "pen+paper"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 226,
|
||||
"end": 261
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 279,
|
||||
"end": 308
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "signature",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 515,
|
||||
"end": 550
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
83,
|
||||
105,
|
||||
@@ -118,5 +256,31 @@ Signed by undersigned
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"MultiPart": [
|
||||
0,
|
||||
[
|
||||
{
|
||||
"MultiPart": [
|
||||
1,
|
||||
[
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 3
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 84,
|
||||
"offset_end": 585
|
||||
}
|
||||
Vendored
+332
-102
@@ -35,133 +35,334 @@ Foobar
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address",
|
||||
"address": "moderator"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "digest",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "digest",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address",
|
||||
"address": "moderator"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 5,
|
||||
"end": 36
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 49,
|
||||
"end": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "my opinion"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else",
|
||||
"address": "someone@else"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>This is my opinion</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "This is my opinion"
|
||||
}
|
||||
]
|
||||
}
|
||||
"Attachment": 1
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "i disagree"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "another one",
|
||||
"address": "another@one"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Not agreeing one bit!</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Not agreeing one bit!"
|
||||
}
|
||||
]
|
||||
}
|
||||
"Attachment": 3
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "funny hat"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "attachment",
|
||||
"address": "attachment@user"
|
||||
}
|
||||
},
|
||||
"Attachment": 5
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"subject": {
|
||||
"Text": "my opinion"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else",
|
||||
"address": "someone@else"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 92,
|
||||
"end": 121
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 129,
|
||||
"end": 141
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Lovely attachment for you</body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
"Text": {
|
||||
"contents": "<html><body>This is my opinion</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "another one",
|
||||
"address": "another@one"
|
||||
}
|
||||
},
|
||||
"contents": "Lovely attachment for you"
|
||||
"subject": {
|
||||
"Text": "i disagree"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 171,
|
||||
"end": 198
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 206,
|
||||
"end": 218
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>Not agreeing one bit!</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "attachment",
|
||||
"address": "attachment@user"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "funny hat"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 251,
|
||||
"end": 281
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 289,
|
||||
"end": 300
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 313,
|
||||
"end": 342
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"Attachment": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>Lovely attachment for you</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "test.txt",
|
||||
"disposition": "attachment"
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "test.txt",
|
||||
"disposition": "attachment"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 450,
|
||||
"end": 517
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 543,
|
||||
"end": 551
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
70,
|
||||
@@ -173,8 +374,37 @@ Foobar
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 246,
|
||||
"offset_body": 343,
|
||||
"offset_end": 565
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 82,
|
||||
"offset_end": 570
|
||||
}
|
||||
Vendored
+362
-107
@@ -58,137 +58,392 @@ Root MIME epilogue
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"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
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"address": "user@domain.org"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Another part</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "foo bar"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Another part"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"other_values": {
|
||||
"From user@domain Fri Feb 22 17": {
|
||||
"Text": "06:23 2008"
|
||||
}
|
||||
},
|
||||
"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
|
||||
],
|
||||
"text_body": [
|
||||
4
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Attachment": 0
|
||||
},
|
||||
{
|
||||
"Attachment": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "x-myown",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
"values": {
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"address": "sub@domain.org"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "submsg"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2012,
|
||||
"month": 8,
|
||||
"day": 12,
|
||||
"hour": 12,
|
||||
"minute": 34,
|
||||
"second": 56,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 3,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "sub1"
|
||||
}
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
"offsets": [
|
||||
{
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html"
|
||||
}
|
||||
}
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"contents": "<p>Hello world</p>\n"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>sub3 text</body></html>"
|
||||
},
|
||||
{
|
||||
"contents": "<html><body>sub3 text2</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "sub3 text"
|
||||
},
|
||||
{
|
||||
"contents": "sub3 text2"
|
||||
},
|
||||
{
|
||||
"contents": "sub2 text2"
|
||||
"start": 278,
|
||||
"end": 294
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"subject": {
|
||||
"Text": "submsg"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"address": "sub@domain.org"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2012,
|
||||
"month": 8,
|
||||
"day": 12,
|
||||
"hour": 12,
|
||||
"minute": 34,
|
||||
"second": 56,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 3,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "sub1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "from"
|
||||
},
|
||||
"start": 300,
|
||||
"end": 316
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "date"
|
||||
},
|
||||
"start": 321,
|
||||
"end": 354
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 362,
|
||||
"end": 370
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 383,
|
||||
"end": 423
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0,
|
||||
5
|
||||
],
|
||||
"text_body": [
|
||||
3,
|
||||
4,
|
||||
6
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 462,
|
||||
"end": 473
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "<p>Hello world</p>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "sub2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 514,
|
||||
"end": 554
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Multipart": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "sub3"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 295,
|
||||
"offset_body": 424,
|
||||
"offset_end": 710
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>Another part</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 752,
|
||||
"end": 764
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "Another part"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 0
|
||||
},
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 172,
|
||||
"offset_end": 789
|
||||
}
|
||||
Vendored
+122
-44
@@ -22,58 +22,123 @@ dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "In parts"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>Hi, this is the fancy thing I was talking about!</body></html>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
"values": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Hi, this is the fancy thing I was talking about!"
|
||||
}
|
||||
"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
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Binary": {
|
||||
"Attachment": 2
|
||||
}
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "<html><body>Hi, this is the fancy thing I was talking about!</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "partial",
|
||||
"attributes": {
|
||||
"total": "5",
|
||||
"number": "1",
|
||||
"id": "heks68ewe@example.org"
|
||||
"values": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 96,
|
||||
"end": 108
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 134,
|
||||
"end": 142
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": "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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 209,
|
||||
"end": 273
|
||||
}
|
||||
]
|
||||
},
|
||||
"contents": [
|
||||
88,
|
||||
@@ -320,5 +385,18 @@ dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"List": [
|
||||
{
|
||||
"Part": 1
|
||||
},
|
||||
{
|
||||
"Part": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 79,
|
||||
"offset_end": 521
|
||||
}
|
||||
Vendored
+96
-32
@@ -13,45 +13,109 @@ Content-Language: ja
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"headers": {
|
||||
"subject": {
|
||||
"Text": "こんにちは"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"comment": "人権の無視及",
|
||||
"boundary": "1"
|
||||
"values": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "こんにちは"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1",
|
||||
"comment": "人権の無視及"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "subject"
|
||||
},
|
||||
"start": 8,
|
||||
"end": 42
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "mime_version"
|
||||
},
|
||||
"start": 55,
|
||||
"end": 60
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 73,
|
||||
"end": 145
|
||||
}
|
||||
]
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html><body>人権の無視及</body></html>"
|
||||
}
|
||||
0
|
||||
],
|
||||
"text_body": [
|
||||
1
|
||||
],
|
||||
"parts": [
|
||||
{
|
||||
"headers": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
"Text": {
|
||||
"contents": "<html><body>人権の無視及</body></html>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers": {
|
||||
"values": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_language": {
|
||||
"Text": "ja"
|
||||
}
|
||||
},
|
||||
"offsets": [
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_type"
|
||||
},
|
||||
"start": 163,
|
||||
"end": 175
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_transfer_encoding"
|
||||
},
|
||||
"start": 201,
|
||||
"end": 209
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"Rfc": "content_language"
|
||||
},
|
||||
"start": 226,
|
||||
"end": 230
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"content_language": {
|
||||
"Text": "ja"
|
||||
}
|
||||
},
|
||||
"contents": "人権の無視及"
|
||||
"contents": "人権の無視及"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"structure": {
|
||||
"Part": 1
|
||||
},
|
||||
"offset_header": 0,
|
||||
"offset_body": 146,
|
||||
"offset_end": 255
|
||||
}
|
||||
Reference in New Issue
Block a user