Compare commits

..
8 Commits
Author SHA1 Message Date
Mauro D f7281e09cf v.0.4.3 2021-12-31 08:14:48 +00:00
Mauro D 46a8db9a54 MBox mailbox parsing support. 2021-12-29 18:40:23 +00:00
Mauro D a0448c31e9 Bincode serialization support. 2021-12-28 17:51:41 +00:00
Mauro D 41de06fd4e Thread name parsing. 2021-12-22 15:26:30 +00:00
Mauro D 7792452a88 Thread name parsing support. 2021-12-18 10:55:52 +00:00
Mauro D fdf7075e37 MessageAttachment is now an enum. 2021-12-17 18:20:03 +00:00
Mauro D bbb2979e4b Added get_attachment_name() 2021-12-17 11:58:12 +00:00
Mauro D c29fcdc8bf Nested message parsing improvements. 2021-12-17 11:47:44 +00:00
108 changed files with 3102 additions and 2155 deletions
+10
View File
@@ -1,3 +1,13 @@
mail-parser 0.4.3
================================
- Mbox file parsing support (issue #11) conforming to the [QMail specification](http://qmail.org/qmail-manual-html/man5/mbox.html).
- Support for bincode serialize/deserialize.
mail-parser 0.4.2
================================
- Added `Message::get_thread_name()` to obtain the base subject of a message as defined in [RFC 5957 - Internet Message Access Protocol - SORT and THREAD Extensions (Section 2.1)](https://datatracker.ietf.org/doc/html/rfc5256#section-2.1).
- Added `MimeHeader::get_attachment_name` for simplified access to a MIME attachment file name.
mail-parser 0.4.1
================================
- Lazy parsing of nested e-mail messages.
Generated
+11 -1
View File
@@ -8,6 +8,15 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "bincode"
version = "1.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
dependencies = [
"serde",
]
[[package]]
name = "cfg-if"
version = "1.0.0"
@@ -59,8 +68,9 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
[[package]]
name = "mail-parser"
version = "0.4.1"
version = "0.4.3"
dependencies = [
"bincode",
"encoding_rs",
"serde",
"serde_bytes",
+2 -1
View File
@@ -1,7 +1,7 @@
[package]
name = "mail-parser"
description = "Fast and robust e-mail parsing library for Rust"
version = "0.4.1"
version = "0.4.3"
edition = "2018"
authors = [ "Stalwart Labs <hello@stalw.art>"]
license = "Apache-2.0 OR MIT"
@@ -19,6 +19,7 @@ serde_bytes = { version = "0.11", optional=true}
[dev-dependencies]
serde_yaml = "0.8"
serde_json = "1.0"
bincode = "1.3.3"
[features]
default = ["serde_support", "full_encoding"]
+4 -6
View File
@@ -4,7 +4,6 @@
[![build](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml/badge.svg)](https://github.com/stalwartlabs/mail-parser/actions/workflows/rust.yml)
[![docs.rs](https://img.shields.io/docsrs/mail-parser)](https://docs.rs/mail-parser)
[![crates.io](https://img.shields.io/crates/l/mail-parser)](http://www.apache.org/licenses/LICENSE-2.0)
[![Twitter Follow](https://img.shields.io/twitter/follow/stalwartlabs?style=social)](https://twitter.com/stalwartlabs)
_mail-parser_ is an **e-mail parsing library** written in Rust that fully conforms to the Internet Message Format standard (_RFC 5322_), the
Multipurpose Internet Mail Extensions (MIME; _RFC 2045 - 2049_) as well as many other [internet messaging RFCs](#conformed-rfcs).
@@ -169,11 +168,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
// Full RFC2231 support for continuations and character sets
assert_eq!(
nested_attachment
.get_content_type()
.unwrap()
.get_attribute("name")
.unwrap(),
nested_attachment.get_attachment_name().unwrap(),
"Book about ☕ tables.gif"
);
@@ -182,6 +177,8 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
println!("{}", serde_yaml::to_string(&message).unwrap());
```
More examples available under the [examples](examples) directory.
## Testing, Fuzzing & Benchmarking
To run the testsuite:
@@ -228,6 +225,7 @@ and, to run the benchmarks:
- [RFC 2919 - List-Id: A Structured Field and Namespace for the Identification of Mailing Lists](https://datatracker.ietf.org/doc/html/rfc2919)
- [RFC 3339 - Date and Time on the Internet: Timestamps](https://datatracker.ietf.org/doc/html/rfc3339)
- [RFC 8621 - The JSON Meta Application Protocol (JMAP) for Mail (Section 4.1.4)](https://datatracker.ietf.org/doc/html/rfc8621#section-4.1.4)
- [RFC 5957 - Internet Message Access Protocol - SORT and THREAD Extensions (Section 2.1)](https://datatracker.ietf.org/doc/html/rfc5256#section-2.1)
## Supported Character Sets
+1 -5
View File
@@ -143,11 +143,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
// Full RFC2231 support for continuations and character sets
assert_eq!(
nested_attachment
.get_content_type()
.unwrap()
.get_attribute("name")
.unwrap(),
nested_attachment.get_attachment_name().unwrap(),
"Book about ☕ tables.gif"
);
+21
View File
@@ -0,0 +1,21 @@
/*
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
* file at the top-level directory of this distribution.
*
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
* option. This file may not be copied, modified, or distributed
* except according to those terms.
*/
use mail_parser::{parsers::mbox::MBoxParser, Message};
fn main() {
// Read an MBox mailbox from stdin and prints each message as YAML.
for raw_message in MBoxParser::new(std::io::stdin()) {
let message = Message::parse(&raw_message).unwrap();
println!("{}", serde_yaml::to_string(&message).unwrap());
}
}
+12 -10
View File
@@ -63,9 +63,17 @@ fn write_attachments(message: &Message) {
match attachment {
MessagePart::Text(text) | MessagePart::Html(text) => write_part(text),
MessagePart::Binary(blob) | MessagePart::InlineBinary(blob) => write_part(blob),
MessagePart::Message(raw_message) => {
write_part(raw_message);
write_attachments(&raw_message.parse().unwrap());
MessagePart::Message(attached_message) => {
// Write attachments of nested messages
match &attached_message.body {
MessageAttachment::Parsed(message) => write_attachments(message.as_ref()),
MessageAttachment::Raw(_) => {
write_attachments(&attached_message.parse_raw().unwrap())
}
}
// Write raw message
write_part(attached_message);
}
_ => (),
}
@@ -74,13 +82,7 @@ fn write_attachments(message: &Message) {
fn write_part<'x>(part: &'x impl BodyPart<'x>) {
std::fs::write(
part.get_content_disposition()
.and_then(|cd| cd.get_attribute("filename"))
.unwrap_or_else(|| {
part.get_content_type()
.and_then(|ct| ct.get_attribute("name"))
.unwrap_or("Untitled")
}),
part.get_attachment_name().unwrap_or("Untitled"),
part.get_contents(),
)
.unwrap();
+1 -1
View File
@@ -42,7 +42,7 @@ dependencies = [
[[package]]
name = "mail-parser"
version = "0.2.1"
version = "0.4.2"
dependencies = [
"encoding_rs",
"serde",
+9 -7
View File
@@ -22,11 +22,12 @@ use mail_parser::{
id::parse_id,
list::parse_comma_separared,
raw::{parse_and_ignore, parse_raw},
thread::{thread_name, trim_trailing_fwd},
unstructured::parse_unstructured,
},
mime::*,
header::parse_header_name,
message::MessageStream,
mime::*,
},
Message,
};
@@ -62,7 +63,7 @@ fuzz_target!(|data: &[u8]| {
parse_content_type(&mut stream);
}
9 => {
parse_header_name(&mut stream);
parse_header_name(&data);
}
10 => {
decode_rfc2047(&mut stream, 0);
@@ -113,26 +114,27 @@ fuzz_target!(|data: &[u8]| {
}
}
// Fuzz HTML functions
// Fuzz text functions
let mut html_str = String::with_capacity(data.len());
let str_data = String::from_utf8_lossy(data);
add_html_token(&mut html_str, str_data.as_ref().as_bytes(), false);
html_to_text(&str_data);
text_to_html(&str_data);
thread_name(&str_data);
trim_trailing_fwd(&str_data);
// Fuzz decoding functions
decode_hex(data);
get_charset_decoder(data);
let decoders: &[for<'x> fn(&'x [u8]) -> String] = &[
for decoder in &[
decoder_utf7,
decoder_utf16_le,
decoder_utf16_be,
decoder_utf16,
decoder_iso_8859_1,
];
for decoder in decoders {
] as &[for<'x> fn(&'x [u8]) -> String]
{
decoder(data);
}
+109 -78
View File
@@ -59,6 +59,7 @@
//! - [RFC 2919 - List-Id: A Structured Field and Namespace for the Identification of Mailing Lists](https://datatracker.ietf.org/doc/html/rfc2919)
//! - [RFC 3339 - Date and Time on the Internet: Timestamps](https://datatracker.ietf.org/doc/html/rfc3339)
//! - [RFC 8621 - The JSON Meta Application Protocol (JMAP) for Mail (Section 4.1.4)](https://datatracker.ietf.org/doc/html/rfc8621#section-4.1.4)
//! - [RFC 5957 - Internet Message Access Protocol - SORT and THREAD Extensions (Section 2.1)](https://datatracker.ietf.org/doc/html/rfc5256#section-2.1)
//!
//! ## Supported Character Sets
//!
@@ -246,11 +247,7 @@
//!
//! // Full RFC2231 support for continuations and character sets
//! assert_eq!(
//! nested_attachment
//! .get_content_type()
//! .unwrap()
//! .get_attribute("name")
//! .unwrap(),
//! nested_attachment.get_attachment_name().unwrap(),
//! "Book about ☕ tables.gif"
//! );
//!
@@ -265,6 +262,7 @@ pub mod parsers;
use std::{borrow::Cow, collections::HashMap, fmt};
use decoders::html::{html_to_text, text_to_html};
use parsers::fields::thread::thread_name;
#[cfg(feature = "serde_support")]
use serde::{Deserialize, Serialize};
@@ -272,48 +270,20 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Default, PartialEq)]
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
pub struct Message<'x> {
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "HashMap::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub headers_rfc: RfcHeaders<'x>,
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "HashMap::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub headers_other: OtherHeaders<'x>,
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Vec::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub headers_offsets: Vec<HeaderOffset<'x>>,
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Vec::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub html_body: Vec<MessagePartId>,
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Vec::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub text_body: Vec<MessagePartId>,
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Vec::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub attachments: Vec<MessagePartId>,
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Vec::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
#[cfg_attr(feature = "serde_support", serde(borrow))]
pub parts: Vec<MessagePart<'x>>,
@@ -324,6 +294,8 @@ pub struct Message<'x> {
pub offset_header: usize,
pub offset_body: usize,
pub offset_end: usize,
#[cfg_attr(feature = "serde_support", serde(skip))]
pub raw_message: Cow<'x, [u8]>,
}
/// Body structure.
@@ -345,10 +317,6 @@ impl Default for MessageStructure {
#[derive(Debug, Default, PartialEq)]
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
pub struct Part<'x, T> {
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "HashMap::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub headers: RfcHeaders<'x>,
@@ -416,9 +384,24 @@ impl<'x> MessagePart<'x> {
}
}
pub fn unwrap_message(&self) -> Message {
pub fn unwrap_message(&self) -> &Message {
match self {
MessagePart::Message(part) => part.parse().unwrap(),
MessagePart::Message(part) => match &part.body {
MessageAttachment::Parsed(message) => message.as_ref(),
MessageAttachment::Raw(_) => panic!(
"This message part has not been parsed yet, use parse_message() instead."
),
},
_ => panic!("Expected message part."),
}
}
pub fn parse_message(&'x self) -> Option<Message<'x>> {
match self {
MessagePart::Message(part) => match &part.body {
MessageAttachment::Parsed(_) => None,
MessageAttachment::Raw(raw_message) => Message::parse(raw_message.as_ref()),
},
_ => panic!("Expected message part."),
}
}
@@ -429,18 +412,10 @@ impl<'x> MessagePart<'x> {
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
pub struct Addr<'x> {
/// The address name including comments
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Option::is_none")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub name: Option<Cow<'x, str>>,
/// An e-mail address (RFC5322/RFC2369) or URL (RFC2369)
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Option::is_none")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub address: Option<Cow<'x, str>>,
}
@@ -450,18 +425,10 @@ pub struct Addr<'x> {
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
pub struct Group<'x> {
/// Group name
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Option::is_none")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub name: Option<Cow<'x, str>>,
/// Addressess member of the group
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Vec::is_empty")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub addresses: Vec<Addr<'x>>,
}
@@ -534,6 +501,7 @@ pub enum HeaderName {
/// A parsed header value.
#[derive(Debug, PartialEq)]
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
//#[cfg_attr(feature = "serde_support", serde(tag = "type"))]
pub enum HeaderValue<'x> {
/// A single address
Address(Addr<'x>),
@@ -632,16 +600,8 @@ impl<'x> HeaderValue<'x> {
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
pub struct ContentType<'x> {
pub c_type: Cow<'x, str>,
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Option::is_none")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub c_subtype: Option<Cow<'x, str>>,
#[cfg_attr(
feature = "serde_support",
serde(skip_serializing_if = "Option::is_none")
)]
#[cfg_attr(feature = "serde_support", serde(default))]
pub attributes: Option<HashMap<Cow<'x, str>, Cow<'x, str>>>,
}
@@ -870,6 +830,11 @@ impl<'x> Message<'x> {
.and_then(|header| header.as_text_ref())
}
/// Returns the message thread name
pub fn get_thread_name(&self) -> Option<&str> {
thread_name(self.get_subject()?).into()
}
/// Returns the To header field
pub fn get_to(&self) -> &HeaderValue<'x> {
self.headers_rfc
@@ -983,6 +948,15 @@ pub trait MimeHeaders<'x> {
fn get_content_language(&self) -> &HeaderValue<'x>;
/// Returns the Content-Location field
fn get_content_location(&self) -> Option<&str>;
/// Returns the attachment name, if any.
fn get_attachment_name(&self) -> Option<&str> {
self.get_content_disposition()
.and_then(|cd| cd.get_attribute("filename"))
.or_else(|| {
self.get_content_type()
.and_then(|ct| ct.get_attribute("name"))
})
}
}
impl<'x> MimeHeaders<'x> for Message<'x> {
@@ -1110,11 +1084,14 @@ impl<'x> fmt::Display for Part<'x, Cow<'x, [u8]>> {
impl<'x> BodyPart<'x> for Part<'x, MessageAttachment<'x>> {
fn get_contents(&'x self) -> &'x [u8] {
self.body.raw_message.as_ref()
match &self.body {
MessageAttachment::Parsed(msg) => msg.raw_message.as_ref(),
MessageAttachment::Raw(raw) => raw.as_ref(),
}
}
fn get_text_contents(&'x self) -> &'x str {
std::str::from_utf8(self.body.raw_message.as_ref()).unwrap_or("")
std::str::from_utf8(self.get_contents()).unwrap_or("")
}
fn is_text(&self) -> bool {
@@ -1126,13 +1103,16 @@ impl<'x> BodyPart<'x> for Part<'x, MessageAttachment<'x>> {
}
fn len(&self) -> usize {
self.body.raw_message.len()
match &self.body {
MessageAttachment::Parsed(msg) => msg.raw_message.len(),
MessageAttachment::Raw(raw) => raw.len(),
}
}
}
impl<'x> fmt::Display for Part<'x, MessageAttachment<'x>> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.write_str(String::from_utf8_lossy(self.body.raw_message.as_ref()).as_ref())
fmt.write_str(self.get_text_contents())
}
}
@@ -1262,23 +1242,71 @@ impl<'x> ContentType<'x> {
}
}
/// Raw contents of an e-mail message attachment.
#[derive(Debug, PartialEq, Eq)]
pub struct MessageAttachment<'x> {
pub raw_message: Cow<'x, [u8]>,
/// Contents of an e-mail message attachment.
#[derive(Debug, PartialEq)]
pub enum MessageAttachment<'x> {
Parsed(Box<Message<'x>>),
Raw(Cow<'x, [u8]>),
}
impl<'x> Default for MessageAttachment<'x> {
fn default() -> Self {
MessageAttachment::Raw((&[] as &[u8]).into())
}
}
impl<'x> MessageAttachment<'x> {
/// Parse the message attachment and return a `Message` object.
pub fn parse(&'x self) -> Option<Message<'x>> {
Message::parse(self.raw_message.as_ref())
pub fn parse_raw(&'x self) -> Option<Message<'x>> {
if let MessageAttachment::Raw(raw) = self {
Message::parse(raw.as_ref())
} else {
None
}
}
/// Returns a reference to the parsed `Message` object.
pub fn as_ref(&self) -> Option<&Message> {
if let MessageAttachment::Parsed(message) = self {
message.as_ref().into()
} else {
None
}
}
/// Returns ```true``` is the message has been parsed.
/// Call `MessageAttachment::parse_raw` when this method returns ```false```,
/// otherwise use `MessageAttachment::as_ref`.
pub fn is_parsed(&self) -> bool {
matches!(self, MessageAttachment::Parsed(_))
}
/*/// Returns the parsed message if available, otherwise
/// parses the raw message and returns the results.
pub fn unwrap(&'x mut self) -> Option<Message<'x>> {
match self {
MessageAttachment::Parsed(message) => (*std::mem::take(&mut message).unwrap()).into(),
MessageAttachment::Raw(raw) => Message::parse(raw.as_ref()),
}
}*/
}
impl<'x> Part<'x, MessageAttachment<'x>> {
/// Parse the message attachment and return a `Message` object.
pub fn parse(&'x self) -> Option<Message<'x>> {
self.body.parse()
pub fn parse_raw(&'x self) -> Option<Message<'x>> {
self.body.parse_raw()
}
/// Returns a reference to the parsed `Message` object.
pub fn as_ref(&self) -> Option<&Message> {
self.body.as_ref()
}
/// Returns ```true``` is the message has been parsed.
/// Call `MessageAttachment::parse_raw` when this method returns ```false```,
/// otherwise use `MessageAttachment::as_ref`.
pub fn is_parsed(&self) -> bool {
self.body.is_parsed()
}
}
@@ -1287,9 +1315,12 @@ impl<'x> Serialize for MessageAttachment<'x> {
where
S: serde::Serializer,
{
self.parse()
.ok_or_else(|| serde::ser::Error::custom("Failed to parse message attachment."))?
.serialize(serializer)
match self {
MessageAttachment::Parsed(message) => message.serialize(serializer),
MessageAttachment::Raw(raw) => Message::parse(raw.as_ref())
.ok_or_else(|| serde::ser::Error::custom("Failed to parse message attachment."))?
.serialize(serializer),
}
}
}
+1
View File
@@ -15,4 +15,5 @@ pub mod date;
pub mod id;
pub mod list;
pub mod raw;
pub mod thread;
pub mod unstructured;
+308
View File
@@ -0,0 +1,308 @@
/*
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
* file at the top-level directory of this distribution.
*
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
* option. This file may not be copied, modified, or distributed
* except according to those terms.
*/
static RE_PREFIXES: &[&str] = &[
"re", "res", "sv", "antw", "ref", "aw", "απ", "השב", "vá", "r", "rif", "bls", "odp", "ynt",
"atb", "رد", "回复", "转发",
];
static FWD_PREFIXES: &[&str] = &[
"fwd",
"fw",
"rv",
"enc",
"vs",
"doorst",
"vl",
"tr",
"wg",
"πρθ",
"הועבר",
"továbbítás",
"i",
"fs",
"trs",
"vb",
"pd",
"i̇lt",
"yml",
"إعادة توجيه",
"回覆",
"轉寄",
];
pub fn thread_name(text: &str) -> &str {
let mut token_start = 0;
let mut token_end = 0;
let mut thread_name_start = 0;
let mut fwd_start = 0;
let mut fwd_end = 0;
let mut last_blob_end = 0;
let mut in_blob = false;
let mut in_blob_ignore = false;
let mut seen_header = false;
let mut seen_blob_header = false;
let mut token_found = false;
for (pos, ch) in text.char_indices() {
match ch {
'[' => {
if !in_blob {
if token_found {
if token_end == 0 {
token_end = pos;
}
let prefix = text[token_start..token_end].to_lowercase();
if RE_PREFIXES.contains(&prefix.as_ref())
|| FWD_PREFIXES.contains(&prefix.as_ref())
{
seen_header = true;
} else {
break;
}
}
token_found = false;
in_blob = true;
} else {
break;
}
}
']' if in_blob => {
if seen_blob_header && token_found {
fwd_start = token_start;
fwd_end = pos;
}
if !seen_header {
last_blob_end = pos + 1;
}
in_blob = false;
token_found = false;
seen_blob_header = false;
in_blob_ignore = false;
}
':' if !in_blob => {
if (seen_header && token_found) || (!seen_header && !token_found) {
break;
} else if !seen_header {
if token_end == 0 {
token_end = pos;
}
let prefix = text[token_start..token_end].to_lowercase();
if !RE_PREFIXES.contains(&prefix.as_ref())
&& !FWD_PREFIXES.contains(&prefix.as_ref())
{
break;
}
} else {
seen_header = false;
}
thread_name_start = pos + 1;
token_found = false;
}
':' if in_blob && !in_blob_ignore => {
if token_end == 0 {
token_end = pos;
}
let prefix = text[token_start..token_end].to_lowercase();
if FWD_PREFIXES.contains(&prefix.as_ref()) {
token_found = false;
seen_blob_header = true;
} else if seen_blob_header && RE_PREFIXES.contains(&prefix.as_ref()) {
token_found = false;
} else {
in_blob_ignore = true;
}
}
_ if ch.is_whitespace() => {
if token_end == 0 {
token_end = pos;
}
}
_ => {
if !token_found {
token_start = pos;
token_end = 0;
token_found = true;
} else if !in_blob && pos - token_start > 21 {
break;
}
}
}
}
if last_blob_end > thread_name_start
|| (fwd_start > 0 && last_blob_end > fwd_start && fwd_start > thread_name_start)
{
let result = trim_trailing_fwd(&text[last_blob_end..]);
if !result.is_empty() {
return result;
}
}
if fwd_start > 0 && thread_name_start < fwd_start {
let result = trim_trailing_fwd(&text[fwd_start..fwd_end]);
if !result.is_empty() {
return result;
}
}
trim_trailing_fwd(&text[thread_name_start..])
}
pub fn trim_trailing_fwd(text: &str) -> &str {
let mut in_parentheses = false;
let mut trim_end = true;
let mut end_found = false;
let mut text_start = 0;
let mut text_end = text.len();
let mut fwd_end = 0;
for (pos, ch) in text.char_indices().rev() {
match ch {
'(' if !end_found => {
if in_parentheses {
in_parentheses = false;
if fwd_end - pos > 2
&& FWD_PREFIXES.contains(&text[pos + 1..fwd_end].to_lowercase().as_ref())
{
text_end = pos;
trim_end = true;
continue;
}
}
end_found = true;
}
')' if !end_found => {
if !in_parentheses {
in_parentheses = true;
fwd_end = pos;
} else {
end_found = true;
}
}
_ if ch.is_whitespace() => {
if trim_end {
text_end = pos;
}
continue;
}
_ => {
if !in_parentheses && !end_found {
end_found = true;
}
}
}
if trim_end {
trim_end = false;
}
text_start = pos;
}
if text_end >= text_start {
&text[text_start..text_end]
} else {
""
}
}
#[cfg(test)]
mod tests {
use crate::parsers::fields::thread::{thread_name, trim_trailing_fwd};
#[test]
fn parse_thread_name() {
let tests = [
("re: hello", "hello"),
("re:re: hello", "hello"),
("re:fwd: hello", "hello"),
("fwd[5]:re[5]: hello", "hello"),
("fwd[99]: re[40]: hello", "hello"),
(": hello", ": hello"),
("z: hello", "z: hello"),
("re:: hello", ": hello"),
("[10] hello", "hello"),
("fwd[a]: hello", "hello"),
("re:", ""),
("re::", ":"),
("", ""),
(" ", ""),
("回复: 轉寄: 轉寄", "轉寄"),
("aw[50]: wg: aw[1]: hallo", "hallo"),
("res: rv: enc: továbbítás: ", ""),
("[fwd: hello world]", "hello world"),
("re: enc: re[5]: [fwd: hello world]", "hello world"),
("[fwd: re: fw: hello world]", "hello world"),
("[fwd: hello world]: another text", ": another text"),
("[fwd: re: fwd:] another text", "another text"),
("[hello world]", "[hello world]"),
("re: fwd[9]: [hello world]", "[hello world]"),
("[mailing-list] hello world", "hello world"),
("[mailing-list] re: hello world", "hello world"),
("[mailing-list] wg[8]:re: hello world", "hello world"),
("hello [world]", "hello [world]"),
(" [hello] [world] ", "[hello] [world]"),
("[mailing-list] hello [world]", "hello [world]"),
("[hello [world]", "[hello [world]"),
("[]hello [world]", "hello [world]"),
("[fwd: re: re:] fwd[6]:re: fw:", ""),
("[fwd hello] world hello", "world hello"),
("[fwd: مرحبا بالعالم]", "مرحبا بالعالم"),
("[fwd: hello world] مرحبا بالعالم", "مرحبا بالعالم"),
(" hello world ", "hello world"),
(
"[mailing-list] wg[8]:re: hello world (fwd)(fwd)",
"hello world",
),
("[fwd: re: fw: hello world (fwd)]", "hello world"),
(
"res: rv: enc: továbbítás: hello world (doorst)",
"hello world",
),
("[fwd: re: re: (fwd)] fwd[6]:re: fw: (fwd)", ""),
];
for (input, expected) in tests {
assert_eq!(thread_name(input), expected, "{:?}", input);
}
}
#[test]
fn parse_trail_fwd() {
let tests = [
("hello (fwd)", "hello"),
(" hello (fwd)(fwd)", "hello"),
("hello (wg) (fwd) (fwd)", "hello"),
("(fwd)(fwd)", ""),
("(fwd)hello(fwd)", "(fwd)hello"),
(" hello ", "hello"),
(" hello world ", "hello world"),
("", ""),
(" ", ""),
("hello ()(fwd)", "hello ()"),
("(hello)", "(hello)"),
("hello () (fwd) ()(fwd)", "hello () (fwd) ()"),
(")(", ")("),
(" 你好世界(fwd) ", "你好世界"),
("你好世界 (回覆)", "你好世界"),
("hello(fwd", "hello(fwd"),
("hello(fwd))", "hello(fwd))"),
];
for (input, expected) in tests {
assert_eq!(trim_trailing_fwd(input), expected, "{:?}", input);
}
}
}
-1
View File
@@ -106,7 +106,6 @@ pub fn parse_unstructured<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x>
#[cfg(test)]
mod tests {
#[test]
fn parse_unstructured_text() {
use crate::parsers::fields::unstructured::parse_unstructured;
+126
View File
@@ -0,0 +1,126 @@
/*
* Copyright Stalwart Labs, Minter Ltd. See the COPYING
* file at the top-level directory of this distribution.
*
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
* option. This file may not be copied, modified, or distributed
* except according to those terms.
*/
use std::io::{BufRead, BufReader, Read};
/// Parses an MBox mailbox from a `Read` stream, returning each message as a
/// `Vec<u8>`.
/// supports >From quoting as defined in the [QMail mbox specification](http://qmail.org/qmail-manual-html/man5/mbox.html).
pub struct MBoxParser<T: Read> {
reader: BufReader<T>,
found_from: bool,
}
impl<T> MBoxParser<T>
where
T: Read,
{
pub fn new(reader: T) -> MBoxParser<T> {
MBoxParser {
reader: BufReader::new(reader),
found_from: false,
}
}
}
impl<T> Iterator for MBoxParser<T>
where
T: Read,
{
type Item = Vec<u8>;
fn next(&mut self) -> Option<Vec<u8>> {
let mut message = Vec::with_capacity(1024);
let mut message_line = Vec::with_capacity(80);
while self
.reader
.read_until(b'\n', &mut message_line)
.expect("Error while reading Mbox")
> 0
{
let is_from = message_line
.get(..5)
.map(|line| line == b"From ")
.unwrap_or(false);
if self.found_from {
if !is_from {
if message_line[0] != b'>' {
message.append(&mut message_line);
} else if message_line
.iter()
.skip_while(|&&ch| ch == b'>')
.take(5)
.copied()
.collect::<Vec<u8>>()
== b"From "
{
message.extend_from_slice(&message_line[1..]);
message_line.clear();
} else {
message.append(&mut message_line);
}
} else {
break;
}
} else {
if is_from {
self.found_from = true;
}
message_line.clear();
}
}
if !message.is_empty() {
Some(message)
} else {
None
}
}
}
#[cfg(test)]
mod tests {
use super::MBoxParser;
#[test]
fn parse_mbox() {
let message = br#"From Mon, 15 Jan 2018 15:30:00 +0100
Message 1
From Mon, 15 Jan 2018 15:30:00 +0100
Message 2
From Mon, 15 Jan 2018 15:30:00 +0100
Message 3
>From hello
>>From world
>>>From test
From Mon, 15 Jan 2018 15:30:00 +0100
Message 4
> From
>F
"#;
let mut parser = MBoxParser::new(&message[..]);
assert_eq!(parser.next().unwrap(), b"Message 1\n\n");
assert_eq!(parser.next().unwrap(), b"Message 2\n\n");
assert_eq!(
parser.next().unwrap(),
b"Message 3\nFrom hello\n>From world\n>>From test\n\n"
);
assert_eq!(parser.next().unwrap(), b"Message 4\n> From\n>F\n");
assert!(parser.next().is_none());
}
}
+74 -10
View File
@@ -16,8 +16,8 @@ use crate::{
base64::decode_base64, charsets::map::get_charset_decoder,
quoted_printable::decode_quoted_printable, DecodeFnc, DecodeResult,
},
ContentType, HeaderName, HeaderValue, Message, MessagePart, MessagePartId, MessageStructure,
Part, RfcHeaders,
ContentType, HeaderName, HeaderValue, Message, MessageAttachment, MessagePart, MessagePartId,
MessageStructure, Part, RfcHeaders,
};
use super::{
@@ -205,7 +205,9 @@ impl<'x> Message<'x> {
///
pub fn parse(raw_message: &'x [u8]) -> Option<Message<'x>> {
let mut stream = MessageStream::new(raw_message);
let mut message = Message::new();
let mut message_stack = Vec::new();
let mut state = MessageParserState::new();
let mut state_stack = Vec::new();
@@ -298,6 +300,26 @@ impl<'x> Message<'x> {
_ => (true, get_bytes_to_boundary),
};
state
.structure
.push(MessageStructure::Part(message.parts.len()));
if is_binary && mime_type == MimeType::Message {
let new_state = MessageParserState {
mime_type: MimeType::Message,
mime_boundary: state.mime_boundary.take(),
need_html_body: true,
need_text_body: true,
..Default::default()
};
add_missing_type(&mut mime_part_header, "message".into(), "rfc822".into());
message_stack.push((message, std::mem::take(&mut mime_part_header)));
state_stack.push(state);
message = Message::new();
state = new_state;
continue;
}
let (bytes_read, mut bytes) = decode_fnc(
&stream,
stream.pos,
@@ -311,6 +333,7 @@ impl<'x> Message<'x> {
// Attempt to recover contents of an invalid message
if bytes_read == 0 {
if stream.pos >= stream.data.len() || (is_binary && state.mime_boundary.is_none()) {
state.structure.pop();
break;
}
@@ -338,9 +361,11 @@ impl<'x> Message<'x> {
bytes = r_bytes;
stream.pos += bytes_read;
} else {
state.structure.pop();
break;
}
} else {
state.structure.pop();
break;
}
} else {
@@ -354,10 +379,6 @@ impl<'x> Message<'x> {
stream.pos += bytes_read;
}
state
.structure
.push(MessageStructure::Part(message.parts.len()));
if mime_type != MimeType::Message {
let is_inline = is_inline
&& header
@@ -445,15 +466,38 @@ impl<'x> Message<'x> {
message.attachments.push(message.parts.len());
message.parts.push(MessagePart::Message(Part::new(
std::mem::take(&mut mime_part_header),
crate::MessageAttachment {
raw_message: result_to_bytes(bytes, stream.data),
},
MessageAttachment::Raw(result_to_bytes(bytes, stream.data)),
)));
}
if state.mime_boundary.is_some() {
// Currently processing a MIME part
let mut last_part_offset = stream.pos;
'inner: loop {
if let MimeType::Message = state.mime_type {
// Finished processing nested message, restore parent message from stack
if let (Some((mut prev_message, headers)), Some(mut prev_state)) =
(message_stack.pop(), state_stack.pop())
{
message.structure = state.get_structure();
message.offset_end = seek_crlf_end(&stream, last_part_offset);
message.raw_message =
raw_message[message.offset_header..message.offset_end].into();
prev_message.attachments.push(prev_message.parts.len());
prev_message.parts.push(MessagePart::Message(Part::new(
headers,
MessageAttachment::Parsed(Box::new(message)),
)));
message = prev_message;
prev_state.mime_boundary = state.mime_boundary;
state = prev_state;
} else {
debug_assert!(false, "Failed to restore parent message. Aborting.");
break 'outer;
}
}
if skip_multipart_end(&mut stream) {
// End of MIME part reached
@@ -486,6 +530,7 @@ impl<'x> Message<'x> {
// Restore ancestor's state
state = prev_state;
last_part_offset = stream.pos;
if let Some(ref mime_boundary) = state.mime_boundary {
// Ancestor has a MIME boundary, seek it.
@@ -506,6 +551,24 @@ impl<'x> Message<'x> {
}
}
while let (Some((mut prev_message, headers)), Some(prev_state)) =
(message_stack.pop(), state_stack.pop())
{
message.offset_end = stream.pos;
if !message.is_empty() {
message.structure = state.get_structure();
message.raw_message = raw_message[message.offset_header..message.offset_end].into();
prev_message.attachments.push(prev_message.parts.len());
prev_message.parts.push(MessagePart::Message(Part::new(
headers,
MessageAttachment::Parsed(Box::new(message)),
)));
}
message = prev_message;
state = prev_state;
}
message.raw_message = raw_message.into();
message.structure = state.get_structure();
message.offset_end = stream.pos;
@@ -581,7 +644,8 @@ mod tests {
}
}
/*#[test]
/*/
#[test]
fn message_to_yaml() {
let mut file_name = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
file_name.push("tests");
+1
View File
@@ -11,5 +11,6 @@
pub mod fields;
pub mod header;
pub mod mbox;
pub mod message;
pub mod mime;
+18 -8
View File
@@ -56,6 +56,12 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
let message = Message::parse(input).unwrap();
assert_eq!(
bincode::deserialize::<RfcHeaders>(&bincode::serialize(&message.headers_rfc).unwrap())
.unwrap(),
message.headers_rfc
);
assert_eq!(
message.get_from(),
&HeaderValue::Address(Addr {
@@ -63,6 +69,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
address: Some("art@vandelay.com".into())
})
);
assert_eq!(
message.get_to(),
&HeaderValue::GroupList(vec![
@@ -93,10 +100,12 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
message.get_date().unwrap().to_iso8601(),
"2021-11-20T14:22:01-08:00"
);
assert_eq!(
message.get_subject().unwrap(),
"Why not both importing AND exporting? ☺"
);
assert_eq!(
message.get_html_body(0).unwrap(),
concat!(
@@ -105,6 +114,7 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
" why not do both? &#x263A;</p></html>"
)
);
assert_eq!(
message.get_text_body(0).unwrap(),
concat!(
@@ -112,30 +122,30 @@ R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
" “importing”,\nbut then I thought, why not do both? ☺\n"
)
);
let nested_message = message.get_attachment(0).unwrap().unwrap_message();
assert_eq!(
nested_message.get_subject().unwrap(),
"Exporting my book about coffee tables"
);
assert_eq!(
nested_message.get_text_body(0).unwrap(),
"ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!"
);
assert_eq!(
nested_message.get_html_body(0).unwrap(),
"<html><body>ℌ𝔢𝔩𝔭 𝔪𝔢 𝔢𝔵𝔭𝔬𝔯𝔱 𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>"
);
let nested_attachment = nested_message.get_attachment(0).unwrap().unwrap_binary();
assert_eq!(nested_attachment.len(), 42);
assert_eq!(
nested_attachment
.get_content_type()
.unwrap()
.get_attribute("name")
.unwrap(),
nested_attachment.get_attachment_name().unwrap(),
"Book about ☕ tables.gif"
);
//println!("{}", serde_json::to_string_pretty(&message).unwrap());
//println!("{}", serde_yaml::to_string(&message).unwrap());
}
+30 -26
View File
@@ -45,12 +45,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -60,6 +54,27 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
@@ -76,24 +91,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"tz_minute": 0
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
@@ -101,18 +102,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
},
"headers_other": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
}
@@ -217,12 +218,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"end": 576
}
],
"html_body": [],
"text_body": [],
"attachments": [
0
],
"parts": [
{
"Binary": {
"headers": {},
"body": [
137,
80,
+26 -24
View File
@@ -36,14 +36,8 @@ m+APw-ssen als wir.+ACI-=20
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
"mime_version": {
"Text": "1.0"
},
"to": {
"AddressList": [
@@ -57,16 +51,10 @@ m+APw-ssen als wir.+ACI-=20
}
]
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-7"
}
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"date": {
@@ -82,23 +70,35 @@ m+APw-ssen als wir.+ACI-=20
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-7"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
@@ -205,9 +205,11 @@ m+APw-ssen als wir.+ACI-=20
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
}
+21 -19
View File
@@ -38,27 +38,18 @@ wir.&quot; <br>
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"message_id": {
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -71,6 +62,12 @@ wir.&quot; <br>
"subject": {
"Text": "Die Hasen und die Frösche"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -83,17 +80,20 @@ wir.&quot; <br>
"tz_hour": 4,
"tz_minute": 0
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
"X-Priority": {
"Text": "2 (High)"
}
},
"headers_offsets": [
@@ -181,9 +181,11 @@ wir.&quot; <br>
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Html": {
"headers": {},
"body": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben.&quot; <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir.&quot; <br>\n<br>\n</font></html>\n\n"
}
}
+34 -33
View File
@@ -65,9 +65,36 @@ wir.&quot; <br>
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "=====================_714967308==_.ALT"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"message_id": {
"Text": "4.2.0.58.20000519002557.00a88870@pop.example.com"
},
"date": {
"DateTime": {
"year": 2000,
@@ -80,44 +107,17 @@ wir.&quot; <br>
"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.20000519002557.00a88870@pop.example.com"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "=====================_714967308==_.ALT"
}
}
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
}
},
"headers_offsets": [
@@ -198,13 +198,11 @@ wir.&quot; <br>
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -213,6 +211,9 @@ wir.&quot; <br>
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
+31 -29
View File
@@ -20,12 +20,36 @@ Slow but steady wins the race.
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"subject": {
"Text": "The Hare and the Tortoise"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "The Hare and the Tortoise"
},
"date": {
"DateTime": {
"year": 2000,
@@ -38,41 +62,17 @@ Slow but steady wins the race.
"tz_hour": 4,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"message_id": {
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
}
},
"headers_other": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "5 (Lowest)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "5 (Lowest)"
}
},
"headers_offsets": [
@@ -153,9 +153,11 @@ Slow but steady wins the race.
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r\n"
}
}
+21 -19
View File
@@ -34,18 +34,24 @@ m+APw-ssen als wir.+ACI-=20
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -62,12 +68,6 @@ m+APw-ssen als wir.+ACI-=20
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -82,20 +82,20 @@ m+APw-ssen als wir.+ACI-=20
}
},
"headers_other": {
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
}
},
"headers_offsets": [
@@ -197,9 +197,11 @@ m+APw-ssen als wir.+ACI-=20
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
}
}
+39 -35
View File
@@ -91,15 +91,27 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"address": "jblow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
}
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
},
@@ -115,33 +127,21 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"tz_hour": 4,
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
}
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
}
@@ -232,6 +232,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"end": 522
}
],
"html_body": [],
"text_body": [],
"attachments": [
0,
1
@@ -240,17 +242,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -259,6 +250,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
}
},
"body": [
@@ -1593,6 +1596,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1602,12 +1608,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
+30 -28
View File
@@ -33,11 +33,8 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"from": {
"Address": {
@@ -45,15 +42,21 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"address": "doug@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
"year": 2000,
@@ -67,34 +70,31 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
}
},
"headers_other": {
"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"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
}
},
"headers_offsets": [
@@ -196,9 +196,11 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
}
+44 -41
View File
@@ -137,17 +137,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
@@ -162,8 +153,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
},
"content_type": {
"ContentType": {
@@ -174,28 +165,37 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
"X-Priority": {
"Text": "3 (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)"
"X-MSMail-Priority": {
"Text": "Normal"
},
"Importance": {
"Text": "Normal"
}
},
"headers_offsets": [
@@ -318,6 +318,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -327,14 +336,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
@@ -1671,6 +1672,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1680,14 +1690,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
@@ -2997,17 +2999,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
+29 -27
View File
@@ -41,28 +41,9 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"message_id": {
"Text": "4.2.0.58.20000519010441.00a8d140@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1",
"format": "flowed"
}
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -76,28 +57,47 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"format": "flowed",
"charset": "iso-8859-1"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
}
},
"headers_other": {
"Disposition-Notification-To": {
"Text": "<dwsauder@example.com>"
},
"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)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
"Disposition-Notification-To": {
"Text": "<dwsauder@example.com>"
}
},
"headers_offsets": [
@@ -192,9 +192,11 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein \nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, \nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der \nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; \nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte \neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste \nuntertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein \nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, \nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
}
}
+18 -16
View File
@@ -23,8 +23,14 @@ In einem nahen Teich wollten sie sich nun ers
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"content_transfer_encoding": {
"Text": "8bit"
"to": {
"Address": {
"name": "Heinz M�ller",
"address": "mueller@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
@@ -39,24 +45,18 @@ In einem nahen Teich wollten sie sich nun ers
"tz_minute": 0
}
},
"message_id": {
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
},
"subject": {
"Text": "Die Hasen und die Fr�sche"
},
"to": {
"Address": {
"name": "Heinz M�ller",
"address": "mueller@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_transfer_encoding": {
"Text": "8bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -66,19 +66,19 @@ In einem nahen Teich wollten sie sich nun ers
}
}
},
"mime_version": {
"Text": "1.0"
"message_id": {
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
}
},
"headers_other": {
"X-Priority": {
"Text": "1 (Highest)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "1 (Highest)"
}
},
"headers_offsets": [
@@ -166,9 +166,11 @@ In einem nahen Teich wollten sie sich nun ers
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n\r\n\r\n"
}
}
+23 -21
View File
@@ -31,8 +31,18 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"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
}
},
"message_id": {
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
@@ -40,18 +50,21 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
@@ -63,19 +76,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
"charset": "iso-8859-1"
}
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 17,
"second": 39,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_other": {
@@ -164,9 +164,11 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
}
}
+31 -29
View File
@@ -32,17 +32,19 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 30,
"second": 20,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"mime_version": {
@@ -51,12 +53,6 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
},
@@ -69,31 +65,35 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 30,
"second": 20,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
@@ -195,9 +195,11 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
}
}
+36 -34
View File
@@ -33,39 +33,9 @@ welche also wohl noch ungl
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"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"
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "8bit"
},
"date": {
"DateTime": {
"year": 2000,
@@ -78,17 +48,47 @@ welche also wohl noch ungl
"tz_hour": 4,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"content_transfer_encoding": {
"Text": "8bit"
}
},
"headers_other": {
"X-Priority": {
"Text": "3 (Normal)"
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
@@ -196,9 +196,11 @@ welche also wohl noch ungl
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
}
}
+22 -21
View File
@@ -74,18 +74,6 @@ race.&nbsp;=20
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
},
"date": {
"DateTime": {
"year": 2000,
@@ -108,6 +96,18 @@ race.&nbsp;=20
"address": "jblow@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -119,18 +119,18 @@ race.&nbsp;=20
}
},
"headers_other": {
"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"
},
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
}
@@ -227,10 +227,14 @@ race.&nbsp;=20
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -239,9 +243,6 @@ race.&nbsp;=20
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
+57 -53
View File
@@ -203,6 +203,18 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"message_id": {
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -216,24 +228,12 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"tz_minute": 0
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -245,14 +245,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
}
},
"headers_offsets": [
@@ -347,8 +347,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "multipart/alternative",
"boundary": "=====================_715392540==_.REL"
"boundary": "=====================_715392540==_.REL",
"type": "multipart/alternative"
}
}
}
@@ -370,6 +370,9 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -378,9 +381,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa3ed95.png2aa3edd1.png"
@@ -408,12 +408,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_id": {
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -423,9 +417,16 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa3ed95.png"
}
@@ -1764,13 +1765,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa3edd1.png"
}
}
"content_id": {
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
},
"content_type": {
"ContentType": {
@@ -1784,8 +1780,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa3edd1.png"
}
}
}
},
"body": [
@@ -3248,13 +3250,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
@@ -3265,8 +3262,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"content_transfer_encoding": {
"Text": "base64"
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
}
},
"body": [
@@ -4601,25 +4604,26 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": {
"name": "greenball.png"
}
}
}
},
"body": [
+25 -23
View File
@@ -97,27 +97,12 @@ JB@ac)(GTFLiL)!d09'8!!!:
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
@@ -131,6 +116,9 @@ JB@ac)(GTFLiL)!d09'8!!!:
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -139,6 +127,18 @@ JB@ac)(GTFLiL)!d09'8!!!:
"boundary": "=====================_716373961==_"
}
}
},
"message_id": {
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "jschmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
@@ -247,14 +247,6 @@ JB@ac)(GTFLiL)!d09'8!!!:
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "application",
@@ -263,6 +255,15 @@ JB@ac)(GTFLiL)!d09'8!!!:
"name": "blueball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
}
},
"body": [
@@ -2214,6 +2215,7 @@ JB@ac)(GTFLiL)!d09'8!!!:
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "HasenundFr�sche.txt"
}
+34 -32
View File
@@ -104,14 +104,8 @@ end
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "The Hare and the Tortoise"
"message_id": {
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
},
"to": {
"Address": {
@@ -119,21 +113,12 @@ end
"address": "jschmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716177458==_"
}
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"message_id": {
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
},
"date": {
"DateTime": {
"year": 2000,
@@ -146,14 +131,29 @@ end
"tz_hour": 4,
"tz_minute": 0
}
},
"subject": {
"Text": "The Hare and the Tortoise"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "=====================_716177458==_"
}
}
}
},
"headers_other": {
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
}
},
"headers_offsets": [
@@ -251,6 +251,15 @@ end
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "x-uuencode"
},
@@ -262,14 +271,6 @@ end
"name": "greenball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
}
},
"body": [
@@ -2149,6 +2150,7 @@ end
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
+33 -31
View File
@@ -145,23 +145,26 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"boundary": "=====================_715157131==_.REL",
"type": "multipart/alternative"
"type": "multipart/alternative",
"boundary": "=====================_715157131==_.REL"
}
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"message_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"message_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
@@ -180,20 +183,17 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
}
},
"headers_offsets": [
@@ -295,6 +295,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -303,9 +306,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "blueball.png\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\nredball.png"
@@ -314,6 +314,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Html": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -322,9 +325,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "<html>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.0\" width=27 height=27 alt=\"blueball.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben.&quot; <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir.&quot; <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.1\" width=27 height=27 alt=\"redball.png\"></font></html>\n"
@@ -333,12 +333,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
@@ -355,6 +353,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
@@ -1689,6 +1690,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1698,19 +1711,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
}
}
},
"body": [
+35 -33
View File
@@ -146,24 +146,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
@@ -176,6 +161,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"date": {
"DateTime": {
"year": 2000,
@@ -188,23 +182,29 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"tz_hour": 4,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MSMail-Priority": {
"Text": "Normal"
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
"X-MSMail-Priority": {
"Text": "Normal"
}
},
"headers_offsets": [
@@ -358,14 +358,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
@@ -377,6 +369,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"name": "greenball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
}
},
"body": [
@@ -1684,6 +1685,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1696,13 +1700,11 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
+24 -22
View File
@@ -42,6 +42,21 @@ welche also wohl noch ungl
}
}
},
"content_transfer_encoding": {
"Text": "8bit"
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "schmuergen@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -55,15 +70,6 @@ welche also wohl noch ungl
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "schmuergen@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
@@ -72,29 +78,23 @@ welche also wohl noch ungl
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "8bit"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
@@ -196,9 +196,11 @@ welche also wohl noch ungl
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
}
}
+40 -38
View File
@@ -190,27 +190,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
},
"date": {
"DateTime": {
"year": 2000,
@@ -224,6 +212,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -232,23 +226,29 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
}
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
}
},
"headers_other": {
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
}
},
"headers_offsets": [
@@ -1764,6 +1764,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1772,17 +1784,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"name": "greenball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
@@ -3099,16 +3100,17 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
+26 -24
View File
@@ -32,29 +32,38 @@ IiANCg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"content_transfer_encoding": {
"Text": "base64"
},
"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)"
},
"to": {
"Address": {
"name": "J�rgen Schm�rgen",
"address": "schmuergen@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
},
"date": {
"DateTime": {
@@ -68,32 +77,23 @@ IiANCg==
"tz_hour": 4,
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
}
},
"headers_other": {
"X-Priority": {
"Text": "3 (Normal)"
"X-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)"
},
"Importance": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
}
},
"headers_offsets": [
@@ -195,9 +195,11 @@ IiANCg==
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n"
}
}
+40 -37
View File
@@ -116,6 +116,9 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
"address": "jschmuergen@example.com"
}
},
"message_id": {
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
@@ -125,19 +128,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
"address": "dwsauder@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 56,
"second": 13,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
@@ -150,16 +140,26 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
}
}
},
"message_id": {
"Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com"
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 19,
"hour": 0,
"minute": 56,
"second": 13,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
@@ -261,6 +261,9 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -270,12 +273,10 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
@@ -1614,14 +1615,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
{
"Text": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "farmerandstork.txt"
}
}
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -1630,6 +1623,15 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
"charset": "us-ascii"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "farmerandstork.txt"
}
}
}
},
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
@@ -1638,6 +1640,15 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
{
"Text": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "HasenundFr�sche.txt"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
@@ -1649,14 +1660,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
"charset": "iso-8859-1"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFr�sche.txt"
}
}
}
},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
+17 -15
View File
@@ -111,12 +111,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -127,18 +121,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -152,19 +146,25 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"message_id": {
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "2 (High)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Priority": {
"Text": "2 (High)"
}
},
"headers_offsets": [
@@ -281,6 +281,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa48eb6.png"
}
@@ -1631,6 +1632,7 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa48ec0.png"
}
+56 -52
View File
@@ -173,18 +173,19 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
"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",
@@ -197,33 +198,32 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"subject": {
"Text": "Die Hasen und die Frösche"
},
"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": 38,
"second": 13,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
"message_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Priority": {
"Text": "2 (High)"
}
@@ -349,6 +349,21 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa51367.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -357,20 +372,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "2aa51367.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "2aa51367.png"
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
}
},
"body": [
@@ -1705,6 +1706,9 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1714,19 +1718,17 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa51371.png"
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3"
}
},
"body": [
@@ -3204,6 +3206,7 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
@@ -4542,14 +4545,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -4559,6 +4554,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
+34 -32
View File
@@ -95,15 +95,12 @@ Birds of a feather flock together.
}
}
},
"to": {
"from": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"message_id": {
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
},
"date": {
"DateTime": {
"year": 2000,
@@ -117,25 +114,28 @@ Birds of a feather flock together.
"tz_minute": 0
}
},
"from": {
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
},
"to": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
@@ -239,24 +239,25 @@ Birds of a feather flock together.
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "HasenundFr�sche.txt"
}
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"name": "HasenundFr�sche.txt",
"x-mac-type": "54455854",
"name": "HasenundFr�sche.txt",
"x-mac-creator": "74747874"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "HasenundFr�sche.txt"
}
}
}
},
"body": "\r\nbegin 600 HasenundFr�sche.txt\r\nM1&EE($AA<V5N('5N9\"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E\r\nM;B!E:6YS=\"#\\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L\r\nM('-P<F%C:\"!E:6X@4F5D;F5R+\"`B:6X@<W1E=&5R($9U<F-H=\"!V;W(@365N\r\nM<V-H96X@=6YD(%1I97)E;BP@96EN92!\"975T92!D97(@2'5N9&4L(&1E<B!!\r\nM9&QE<BP@:F$@9F%S=\"!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!\r\nM;F=S=\"!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@\r\nM=6YS(&5I;B!F_'(@86QL96UA;\"!S=&5R8F5N+B(@#0H-\"DEN(&5I;F5M(&YA\r\nM:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@\r\nM96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E\r\nM=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@\r\nM96EN92!-96YG92!&<O9S8VAE+\"!D:64@86T@569E<B!S8=]E;BP@<V\\@<V5H\r\nM<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-\r\nM\"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(\")W:7(@\r\nM=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E\r\nM;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+\"!E:6YI\r\nM9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:\"!U;F=L_&-K;&EC:&5R\r\n;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-\"@T*\r\n`\r\nend\r\n\r"
@@ -265,6 +266,15 @@ Birds of a feather flock together.
{
"Text": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "farmerandstork.txt"
}
}
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -273,14 +283,6 @@ Birds of a feather flock together.
"charset": "us-ascii"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "farmerandstork.txt"
}
}
}
},
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
+22 -20
View File
@@ -33,6 +33,12 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -42,11 +48,8 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
}
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"to": {
"Address": {
@@ -54,11 +57,8 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"address": "schmuergen@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"date": {
"DateTime": {
@@ -73,14 +73,20 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"tz_minute": 0
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com"
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"Importance": {
"Text": "Normal"
},
@@ -89,12 +95,6 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
@@ -196,9 +196,11 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
}
}
+40 -40
View File
@@ -158,17 +158,10 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 44,
"second": 45,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
"to": {
"Address": {
"name": "Joe Blow",
"address": "jblow@example.com"
}
},
"message_id": {
@@ -183,40 +176,47 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"subject": {
"Text": "Test message from Microsoft Outlook 00"
},
"mime_version": {
"Text": "1.0"
},
"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"
}
},
"date": {
"DateTime": {
"year": 2000,
"month": 5,
"day": 17,
"hour": 19,
"minute": 44,
"second": 45,
"tz_before_gmt": true,
"tz_hour": 4,
"tz_minute": 0
}
}
},
"headers_other": {
"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"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
}
},
"headers_offsets": [
@@ -332,6 +332,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -340,9 +343,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n\n\n \nSlow but steady wins the race. \n\n\n\n"
@@ -370,9 +370,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_id": {
"Text": "823504223@17052000-0f8d"
},
"content_transfer_encoding": {
"Text": "base64"
},
@@ -384,6 +381,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"name": "blueball.png"
}
}
},
"content_id": {
"Text": "823504223@17052000-0f8d"
}
},
"body": [
@@ -1718,6 +1718,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_id": {
"Text": "823504223@17052000-0f94"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1726,12 +1732,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"name": "redball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "823504223@17052000-0f94"
}
},
"body": [
+32 -30
View File
@@ -29,15 +29,39 @@ Slow but steady wins the race.
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"message_id": {
"Text": "392362D8.B650789F@example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"date": {
"DateTime": {
"year": 2000,
@@ -50,41 +74,17 @@ Slow but steady wins the race.
"tz_hour": 4,
"tz_minute": 0
}
},
"content_transfer_encoding": {
"Text": "7bit"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii"
}
}
},
"message_id": {
"Text": "392362D8.B650789F@example.com"
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Priority": {
"Text": "1 (Highest)"
},
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
@@ -172,9 +172,11 @@ Slow but steady wins the race.
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
}
}
+50 -47
View File
@@ -113,36 +113,6 @@ Slow but steady wins the race.
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"message_id": {
"Text": "3923635B.85C58444@example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------0BBC657DDC74A0B8454627FD"
}
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
@@ -155,14 +125,44 @@ Slow but steady wins the race.
"tz_hour": 4,
"tz_minute": 0
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"message_id": {
"Text": "3923635B.85C58444@example.com"
},
"mime_version": {
"Text": "1.0"
},
"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": "------------0BBC657DDC74A0B8454627FD"
}
}
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
@@ -268,14 +268,6 @@ Slow but steady wins the race.
{
"InlineBinary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -287,6 +279,15 @@ Slow but steady wins the race.
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
}
},
"body": [
@@ -1630,16 +1631,17 @@ Slow but steady wins the race.
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
@@ -2947,9 +2949,6 @@ Slow but steady wins the race.
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -2963,10 +2962,14 @@ Slow but steady wins the race.
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "hareandtoroise.txt"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, 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"
+29 -26
View File
@@ -98,15 +98,6 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
},
"subject": {
"Text": "Test message from PINE"
},
"message_id": {
"Text": "Pine.LNX.4.21.0005190951410.8452-102000@penguin.example.com"
},
@@ -140,8 +131,18 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from PINE"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -232,9 +233,13 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"content_id": {
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
@@ -243,9 +248,6 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_id": {
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
},
"content_description": {
"Text": "A PNG graphic file"
}
@@ -1710,6 +1712,21 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_id": {
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
},
"content_description": {
"Text": "A PNG graphic file"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "application",
@@ -1719,22 +1736,8 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"content_id": {
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
},
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_description": {
"Text": "A PNG graphic file"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
}
},
"body": [
+43 -41
View File
@@ -144,6 +144,27 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"message_id": {
"Text": "39235EAD.E48E2160@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
@@ -156,35 +177,14 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"tz_hour": 4,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "39235EAD.E48E2160@example.com"
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
@@ -283,9 +283,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -294,6 +291,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\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"
@@ -324,11 +324,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -337,9 +341,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
@@ -1647,17 +1648,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"InlineBinary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1666,6 +1656,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
}
},
"body": [
+23 -21
View File
@@ -35,17 +35,11 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "392363E1.2AC47AB3@example.com"
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"to": {
"Address": {
@@ -53,6 +47,9 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"address": "blow@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
@@ -66,31 +63,34 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"tz_minute": 0
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
"message_id": {
"Text": "392363E1.2AC47AB3@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "UTF-8"
}
}
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
},
"X-Priority": {
"Text": "5 (Lowest)"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
@@ -178,9 +178,11 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Fr�sche\n\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der\nTod selbst. Auf, la�t uns ein f�r allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt\nerschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs\nschnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\n"
}
}
+20 -18
View File
@@ -41,6 +41,24 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Fr+APY-sche"
},
"mime_version": {
"Text": "1.0"
},
"content_transfer_encoding": {
"Text": "7bit"
},
"message_id": {
"Text": "39236497.12FA2A89@example.com"
},
"to": {
"Address": {
"name": "Heinz M+APw-ller",
"address": "mueller@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
@@ -55,24 +73,6 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
"charset": "UTF-7"
}
}
},
"to": {
"Address": {
"name": "Heinz M+APw-ller",
"address": "mueller@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Fr+APY-sche"
},
"content_transfer_encoding": {
"Text": "7bit"
},
"message_id": {
"Text": "39236497.12FA2A89@example.com"
}
},
"headers_other": {
@@ -161,9 +161,11 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Fr岣he\r\n\r\nDie Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\r\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der\r\nTod selbst. Auf, la޴ uns ein f밠allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;\r\nallein das auޥrordentliche Get岥 und ihre wunderbare Gestalt\r\nerschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs\r\nschnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein\r\nwenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl뢫licher sein m벳en als wir.\"\r\n"
}
}
+43 -37
View File
@@ -223,14 +223,17 @@ YII=
}
}
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
},
"date": {
"DateTime": {
@@ -253,9 +256,6 @@ YII=
},
"message_id": {
"Text": "39235FC5.276CCE00@example.com"
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
}
},
"headers_other": {
@@ -396,6 +396,9 @@ YII=
{
"Html": {
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -404,9 +407,6 @@ YII=
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39235FC5.E71D8178@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b>Die Hasen und die Fr&ouml;sche</b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;liche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br>&nbsp;\r\n<br>&nbsp;</html>\r\n\r"
@@ -415,25 +415,27 @@ YII=
{
"Binary": {
"headers": {
"content_id": {
"Text": "part1.39235FC5.E71D8178@example.com"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_id": {
"Text": "part1.39235FC5.E71D8178@example.com"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "C:TEMPnsmailEG.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"attributes": null
}
}
},
"body": [
@@ -1768,23 +1770,25 @@ YII=
{
"Binary": {
"headers": {
"content_id": {
"Text": "part2.39235FC5.E71D8178@example.com"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
"c_subtype": "png",
"attributes": null
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "C:TEMPnsmail39.png"
}
}
},
"content_id": {
"Text": "part2.39235FC5.E71D8178@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
}
@@ -3252,6 +3256,15 @@ YII=
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -3260,14 +3273,6 @@ YII=
"name": "redball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
}
}
},
"body": [
@@ -4730,14 +4735,6 @@ YII=
{
"InlineBinary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -4749,6 +4746,15 @@ YII=
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
}
},
"body": [
+30 -27
View File
@@ -28,8 +28,29 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com"
"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"
}
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
},
"date": {
"DateTime": {
@@ -44,37 +65,17 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"tz_minute": 0
}
},
"content_transfer_encoding": {
"Text": "QUOTED-PRINTABLE"
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
"content_transfer_encoding": {
"Text": "QUOTED-PRINTABLE"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
"message_id": {
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -139,9 +140,11 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
}
}
+33 -32
View File
@@ -53,30 +53,12 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------E7889DDF0F75D34163841C59"
}
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -90,19 +72,37 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------E7889DDF0F75D34163841C59"
}
}
},
"message_id": {
"Text": "392366A7.21929EA7@example.com"
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
@@ -204,17 +204,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"InlineBinary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -223,6 +212,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "blueball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
+29 -27
View File
@@ -19,30 +19,6 @@ Slow but steady wins the race.
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "3923625B.59F0C3AC@example.com"
},
"content_transfer_encoding": {
"Text": "7bit"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
@@ -56,6 +32,15 @@ Slow but steady wins the race.
"tz_minute": 0
}
},
"content_transfer_encoding": {
"Text": "7bit"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -64,14 +49,29 @@ Slow but steady wins the race.
"charset": "us-ascii"
}
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"message_id": {
"Text": "3923625B.59F0C3AC@example.com"
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
@@ -152,9 +152,11 @@ Slow but steady wins the race.
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
}
}
+37 -31
View File
@@ -173,6 +173,12 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"from": {
"Address": {
"name": "Doug Sauder",
@@ -188,15 +194,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"message_id": {
"Text": "39236103.FFE674FC@example.com"
},
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
@@ -323,9 +323,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Html": {
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -334,6 +331,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39236103.1B697A54@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b><font size=+2>Die Hasen und die Fr&ouml;sche</font></b>\r\n<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;liche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist &auml;rger\r\nals der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten\r\nihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare\r\nGestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so\r\nsehr, da&szlig; sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers&auml;ufen\r\nnoch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n\r"
@@ -342,24 +342,26 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_id": {
"Text": "part1.39236103.1B697A54@example.com"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "C:TEMPnsmailV0.png"
}
}
},
"content_id": {
"Text": "part1.39236103.1B697A54@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
"c_subtype": "png",
"attributes": null
}
}
},
@@ -1695,24 +1697,26 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "C:TEMPnsmailNM.png"
}
}
},
"content_id": {
"Text": "part2.39236103.1B697A54@example.com"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "png"
"c_subtype": "png",
"attributes": null
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "C:TEMPnsmailNM.png"
}
}
}
},
@@ -3176,9 +3180,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"InlineBinary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -3191,10 +3192,14 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
@@ -4505,11 +4510,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -4518,9 +4527,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
+24 -22
View File
@@ -30,36 +30,21 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "iso-8859-1"
}
}
"message_id": {
"Text": "39236653.CAA8A090@example.com"
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"to": {
"Address": {
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"message_id": {
"Text": "39236653.CAA8A090@example.com"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
"year": 2000,
@@ -73,8 +58,23 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
"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"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"headers_other": {
@@ -163,9 +163,11 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n"
}
}
+45 -43
View File
@@ -59,36 +59,6 @@ vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "-1463757054-170444605-958746196=:8452"
}
}
},
"subject": {
"Text": "PNG graphic"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -101,8 +71,39 @@ vAAAAABJRU5ErkJggg==
"tz_hour": 4,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "PNG graphic"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "-1463757054-170444605-958746196=:8452"
}
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@penguin.example.com"
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"message_id": {
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -183,15 +184,18 @@ vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
}
},
"content_id": {
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
},
"content_description": {
"Text": "red ball"
},
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_type": {
"ContentType": {
"c_type": "application",
@@ -201,13 +205,11 @@ vAAAAABJRU5ErkJggg==
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "redball.png"
}
}
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_description": {
"Text": "red ball"
}
},
"body": [
+27 -26
View File
@@ -60,6 +60,27 @@ Birds of a feather flock together.
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "3923686C.99FB5E36@example.com"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------77060D866A66DC8D0921E051"
}
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -76,32 +97,11 @@ Birds of a feather flock together.
"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"
}
}
},
"message_id": {
"Text": "3923686C.99FB5E36@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
}
},
"headers_other": {
@@ -190,9 +190,6 @@ Birds of a feather flock together.
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -201,6 +198,9 @@ Birds of a feather flock together.
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
@@ -212,6 +212,7 @@ Birds of a feather flock together.
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "farmerandstork.txt"
}
@@ -225,8 +226,8 @@ Birds of a feather flock together.
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "us-ascii",
"name": "farmerandstork.txt"
"name": "farmerandstork.txt",
"charset": "us-ascii"
}
}
}
+15 -14
View File
@@ -63,6 +63,9 @@ als wir."
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
},
"message_id": {
"Text": "392359CF.DFF4527@example.com"
},
@@ -72,8 +75,14 @@ als wir."
"address": "mueller@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "------------9D454F23DA86BCD63FA3805F"
}
}
},
"date": {
"DateTime": {
@@ -96,23 +105,14 @@ als wir."
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "------------9D454F23DA86BCD63FA3805F"
}
}
}
},
"headers_other": {
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
}
},
"headers_offsets": [
@@ -186,6 +186,7 @@ als wir."
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
+34 -31
View File
@@ -139,9 +139,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "39235E1C.1DC7EA90@example.com"
},
"mime_version": {
"Text": "1.0"
},
@@ -154,6 +151,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"message_id": {
"Text": "39235E1C.1DC7EA90@example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -184,11 +184,11 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
},
"headers_other": {
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
},
"X-Accept-Language": {
"Text": "en"
},
"X-Mailer": {
"Text": "Mozilla 4.7 [en] (WinNT; I)"
}
},
"headers_offsets": [
@@ -296,12 +296,10 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"InlineBinary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
@@ -315,6 +313,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "redball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
@@ -1777,17 +1778,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"InlineBinary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1796,6 +1786,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "greenball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
@@ -3103,17 +3105,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"InlineBinary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -3122,6 +3113,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
}
},
"body": [
+22 -20
View File
@@ -44,6 +44,18 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "-1463757054-891160829-958746372=:8452"
}
}
},
"to": {
"AddressList": [
{
@@ -56,9 +68,6 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
}
]
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 2000,
@@ -72,6 +81,9 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
@@ -80,20 +92,9 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
},
"subject": {
"Text": "Die Hasen und die Frösche"
},
"message_id": {
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "-1463757054-891160829-958746372=:8452"
}
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -184,22 +185,23 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
}
}
},
"content_description": {
"Text": "Short story in German"
"content_id": {
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
},
"content_transfer_encoding": {
"Text": "BASE64"
},
"content_description": {
"Text": "Short story in German"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "HasenundFrösche.txt"
}
}
},
"content_id": {
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
}
},
"body": "Die Hasen und die Frösche\r\r\n\r\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\r\n\r\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\r\n\r\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\r\n\r\r\n"
+20 -18
View File
@@ -34,15 +34,6 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
"year": 2000,
@@ -56,6 +47,24 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"message_id": {
"Text": "3923561C.B7078DEF@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -70,15 +79,6 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"name": "Jürgen Schmürgen",
"address": "schmuergen@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
},
"message_id": {
"Text": "3923561C.B7078DEF@example.com"
}
},
"headers_other": {
@@ -167,9 +167,11 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
}
}
+23 -22
View File
@@ -62,14 +62,11 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------CA611088711119FBDB3473B4"
}
}
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"from": {
"Address": {
@@ -77,18 +74,21 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
"address": "dwsauder@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "392367BC.3D075C95@example.com"
},
"to": {
"Address": {
"name": "Joe Blow",
"address": "blow@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "------------CA611088711119FBDB3473B4"
}
}
},
"date": {
"DateTime": {
"year": 2000,
@@ -102,8 +102,8 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
"tz_minute": 0
}
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
"message_id": {
"Text": "392367BC.3D075C95@example.com"
}
},
"headers_other": {
@@ -192,6 +192,9 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -200,9 +203,6 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
"charset": "us-ascii"
}
}
},
"content_transfer_encoding": {
"Text": "7bit"
}
},
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
@@ -211,9 +211,6 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -227,10 +224,14 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "HasenundFrösche.txt"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
+45 -42
View File
@@ -163,12 +163,21 @@ end
"address": "blow@example.com"
}
},
"mime_version": {
"Text": "1.0"
},
"subject": {
"Text": "Test message from Netscape Communicator 4.7"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"message_id": {
"Text": "3923670C.67D83A99@example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -178,9 +187,6 @@ end
}
}
},
"message_id": {
"Text": "3923670C.67D83A99@example.com"
},
"date": {
"DateTime": {
"year": 2000,
@@ -193,12 +199,6 @@ end
"tz_hour": 4,
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
}
},
"headers_other": {
@@ -317,14 +317,6 @@ end
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "redball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -333,6 +325,15 @@ end
"name": "redball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "redball.png"
}
}
}
},
"body": [
@@ -2410,6 +2411,18 @@ end
{
"InlineBinary": {
"headers": {
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -2418,17 +2431,6 @@ end
"name": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "greenball.png"
}
}
}
},
"body": [
@@ -4288,17 +4290,6 @@ end
{
"InlineBinary": {
"headers": {
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -4307,6 +4298,18 @@ end
"name": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "x-uuencode"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
}
},
"body": [
+12 -10
View File
File diff suppressed because one or more lines are too long
+36 -34
View File
@@ -111,21 +111,24 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "text/html",
"boundary": "=====================_715546120==_.REL"
"boundary": "=====================_715546120==_.REL",
"type": "text/html"
}
}
},
"message_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
},
"subject": {
"Text": "Die Hasen und die Frösche"
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"date": {
"DateTime": {
@@ -140,31 +143,28 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"tz_minute": 0
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"mime_version": {
"Text": "1.0"
"message_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche"
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
}
},
"headers_offsets": [
@@ -253,9 +253,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Html": {
"headers": {
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -264,6 +261,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"charset": "iso-8859-1"
}
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
}
},
"body": "<html>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.2\" width=27 height=27 alt=\"2aa658b6.png\"><br>\n<br>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben.&quot; <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir.&quot; <br>\n<br>\n<img src=\"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.3\" width=27 height=27 alt=\"2aa658c0.png\"></font></html>\n"
@@ -275,23 +275,24 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"content_disposition": {
"ContentType": {
"c_type": "image",
"c_subtype": "png",
"c_type": "inline",
"c_subtype": null,
"attributes": {
"name": "2aa658b6.png"
"filename": "2aa658b6.png"
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
},
"content_disposition": {
"content_type": {
"ContentType": {
"c_type": "inline",
"c_type": "image",
"c_subtype": "png",
"attributes": {
"filename": "2aa658b6.png"
"name": "2aa658b6.png"
}
}
}
@@ -1628,6 +1629,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
{
"Binary": {
"headers": {
"content_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -1637,19 +1644,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa658c0.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
+54 -50
View File
@@ -166,12 +166,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"subject": {
"Text": "Die Hasen und die Frösche"
},
"message_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -181,17 +175,11 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
"message_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
@@ -205,17 +193,29 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"tz_hour": 4,
"tz_minute": 0
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "dwsauder@example.com"
}
}
},
"headers_other": {
"X-Priority": {
"Text": "2 (High)"
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
},
"X-Mailer": {
"Text": "QUALCOMM Windows Eudora Pro Version 4.2.0.58"
},
"X-Sender": {
"Text": "dwsauder@pop.example.com (Unverified)"
"X-Priority": {
"Text": "2 (High)"
}
},
"headers_offsets": [
@@ -310,8 +310,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"c_type": "multipart",
"c_subtype": "related",
"attributes": {
"type": "text/plain",
"boundary": "=====================_715515186==_.REL"
"boundary": "=====================_715515186==_.REL",
"type": "text/plain"
}
}
}
@@ -339,16 +339,20 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa5e03a.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
"content_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
},
"content_type": {
"ContentType": {
@@ -358,9 +362,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "2aa5e03a.png"
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
}
},
"body": [
@@ -1695,8 +1696,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
"content_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
},
"content_type": {
"ContentType": {
@@ -1707,12 +1708,13 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"content_id": {
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"filename": "2aa5e044.png"
}
@@ -3179,14 +3181,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "blueball.png"
}
}
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -3196,6 +3190,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "blueball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
@@ -4532,17 +4535,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
{
"Binary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -4551,6 +4543,18 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
"name": "greenball.png"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "greenball.png"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": [
+20 -18
View File
@@ -29,12 +29,24 @@ welche also wohl noch ungl
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"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,
@@ -47,35 +59,23 @@ welche also wohl noch ungl
"tz_hour": 4,
"tz_minute": 0
}
},
"subject": {
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
}
},
"headers_offsets": [
@@ -156,9 +156,11 @@ welche also wohl noch ungl
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Fr�sche\r\n\r\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod\r\nselbst. Auf, la�t uns ein f�r allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\r\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte\r\neine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\r\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\r\n\r\n"
}
}
+39 -37
View File
@@ -34,35 +34,11 @@ als wir."=20
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"date": {
"DateTime": {
@@ -77,25 +53,49 @@ als wir."=20
"tz_minute": 0
}
},
"content_transfer_encoding": {
"Text": "quoted-printable"
"from": {
"Address": {
"name": "Doug Sauder",
"address": "doug@example.com"
}
},
"subject": {
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
},
"to": {
"Address": {
"name": "Heinz Müller",
"address": "mueller@example.com"
}
},
"message_id": {
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": {
"charset": "utf-8"
}
}
}
},
"headers_other": {
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"X-MSMail-Priority": {
"Text": "Normal"
},
"X-MimeOLE": {
"Text": "Produced By Microsoft MimeOLE V5.00.2314.1300"
},
"X-Mailer": {
"Text": "Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
},
"Importance": {
"Text": "Normal"
},
"X-Priority": {
"Text": "3 (Normal)"
}
},
"headers_offsets": [
@@ -197,9 +197,11 @@ als wir."=20
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
}
}
+5 -1
View File
@@ -22,6 +22,7 @@ Content-Type: text/html
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -39,9 +40,11 @@ Content-Type: text/html
0,
1
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "Content-Type: text/plain"
}
},
@@ -51,7 +54,8 @@ Content-Type: text/html
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+3
View File
@@ -22,6 +22,7 @@ Content-Type: text/plain
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -37,6 +38,7 @@ Content-Type: text/plain
"text_body": [
1
],
"attachments": [],
"parts": [
{
"Multipart": {
@@ -53,6 +55,7 @@ Content-Type: text/plain
},
{
"Text": {
"headers": {},
"body": "Content-Type: text/plain\n"
}
}
+4
View File
@@ -15,6 +15,7 @@ body
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -24,12 +25,15 @@ body
"end": 45
}
],
"html_body": [],
"text_body": [],
"attachments": [
0
],
"parts": [
{
"Text": {
"headers": {},
"body": "body\n"
}
}
+5 -1
View File
@@ -21,6 +21,7 @@ body
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -30,6 +31,8 @@ body
"end": 44
}
],
"html_body": [],
"text_body": [],
"attachments": [
1
],
@@ -53,7 +56,8 @@ body
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+4
View File
@@ -21,6 +21,7 @@ body
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -30,12 +31,15 @@ body
"end": 44
}
],
"html_body": [],
"text_body": [],
"attachments": [
0
],
"parts": [
{
"Text": {
"headers": {},
"body": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
}
}
+4 -1
View File
@@ -25,6 +25,7 @@ body2
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -40,6 +41,7 @@ body2
"text_body": [
1
],
"attachments": [],
"parts": [
{
"Multipart": {
@@ -60,7 +62,8 @@ body2
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+5 -1
View File
@@ -21,6 +21,7 @@ body
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -30,6 +31,8 @@ body
"end": 44
}
],
"html_body": [],
"text_body": [],
"attachments": [
1
],
@@ -53,7 +56,8 @@ body
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+7 -3
View File
@@ -23,6 +23,7 @@ Content-Type: text/plain
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -32,12 +33,17 @@ Content-Type: text/plain
"end": 44
}
],
"html_body": [],
"text_body": [],
"attachments": [
1
],
"parts": [
{
"Multipart": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -46,14 +52,12 @@ Content-Type: text/plain
"boundary": "ab"
}
}
},
"mime_version": {
"Text": "1.0"
}
}
},
{
"Text": {
"headers": {},
"body": "--a--\n\n"
}
}
+5 -1
View File
@@ -25,6 +25,7 @@ body2
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -34,6 +35,8 @@ body2
"end": 45
}
],
"html_body": [],
"text_body": [],
"attachments": [
1
],
@@ -57,7 +60,8 @@ body2
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+5 -2
View File
@@ -29,6 +29,7 @@ Content-Type: text/plain
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -67,7 +68,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
@@ -80,7 +82,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+29 -15
View File
@@ -12,10 +12,12 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -25,6 +27,8 @@ Content-Type: text/plain
"end": 29
}
],
"html_body": [],
"text_body": [],
"attachments": [
0
],
@@ -35,7 +39,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
@@ -44,19 +49,23 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 29
"start": 43,
"end": 59
}
],
"html_body": [],
"text_body": [],
"attachments": [
0
],
@@ -67,7 +76,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
@@ -76,17 +86,19 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 25
"start": 73,
"end": 85
}
],
"html_body": [
@@ -95,9 +107,11 @@ Content-Type: text/plain
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "1\n"
}
}
@@ -105,9 +119,9 @@ Content-Type: text/plain
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 26,
"offset_end": 28
"offset_header": 60,
"offset_body": 86,
"offset_end": 88
}
}
}
@@ -115,9 +129,9 @@ Content-Type: text/plain
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 30,
"offset_end": 58
"offset_header": 30,
"offset_body": 60,
"offset_end": 88
}
}
}
+5 -2
View File
@@ -29,6 +29,7 @@ Content-Type: text/plain
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -67,7 +68,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
@@ -80,7 +82,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+58 -10
View File
@@ -35,6 +35,7 @@ Content-Type: text/plain
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -44,6 +45,8 @@ Content-Type: text/plain
"end": 44
}
],
"html_body": [],
"text_body": [],
"attachments": [
1,
2
@@ -68,7 +71,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
@@ -77,17 +81,19 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 13,
"end": 25
"start": 141,
"end": 153
}
],
"html_body": [
@@ -96,9 +102,11 @@ Content-Type: text/plain
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "1"
}
}
@@ -106,23 +114,63 @@ Content-Type: text/plain
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 26,
"offset_end": 27
"offset_header": 128,
"offset_body": 154,
"offset_end": 160
}
}
},
{
"Text": {
"Message": {
"headers": {
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
"body": "Content-Type: text/plain\n\n22\n--1\nContent-Type: message/rfc822\n\nContent-Type: text/plain\n\n333\n"
"body": {
"headers_rfc": {
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain",
"attributes": null
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "content_type"
},
"start": 203,
"end": 215
}
],
"html_body": [],
"text_body": [],
"attachments": [
0
],
"parts": [
{
"Text": {
"headers": {},
"body": "22\n--1\nContent-Type: message/rfc822\n\nContent-Type: text/plain\n\n333\n"
}
}
],
"structure": {
"Part": 0
},
"offset_header": 190,
"offset_body": 216,
"offset_end": 283
}
}
}
],
+10 -4
View File
@@ -47,6 +47,7 @@ hello, world
"Text": "1.0"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -75,6 +76,7 @@ hello, world
4,
6
],
"attachments": [],
"parts": [
{
"Text": {
@@ -82,7 +84,8 @@ hello, world
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
@@ -111,7 +114,8 @@ hello, world
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
@@ -140,7 +144,8 @@ hello, world
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
@@ -166,7 +171,8 @@ hello, world
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+4 -1
View File
@@ -19,6 +19,7 @@ hello, world
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -34,6 +35,7 @@ hello, world
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
@@ -41,7 +43,8 @@ hello, world
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+24 -22
View File
@@ -30,18 +30,10 @@ invalid
"message_id": {
"Text": "1.2.3.4@example"
},
"subject": {
"Text": "Hello world"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "signed",
"attributes": {
"boundary": "=-GNQXLhuj24Pl1aCkk4/d",
"micalg": "pgp-sha1",
"protocol": "application/pgp-signature"
}
"from": {
"Address": {
"name": "Test User",
"address": "test@example.org"
}
},
"to": {
@@ -50,18 +42,9 @@ invalid
"address": "test2@example.org"
}
},
"return_path": {
"Text": "test@example.org"
},
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
"name": "Test User",
"address": "test@example.org"
}
},
"date": {
"DateTime": {
"year": 2007,
@@ -74,8 +57,26 @@ invalid
"tz_hour": 3,
"tz_minute": 0
}
},
"subject": {
"Text": "Hello world"
},
"return_path": {
"Text": "test@example.org"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "signed",
"attributes": {
"protocol": "application/pgp-signature",
"boundary": "=-GNQXLhuj24Pl1aCkk4/d",
"micalg": "pgp-sha1"
}
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -150,7 +151,8 @@ invalid
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
},
"content_transfer_encoding": {
+5 -2
View File
@@ -36,6 +36,7 @@ Content-Type: text/plain
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -87,7 +88,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
@@ -100,7 +102,8 @@ Content-Type: text/plain
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+49 -38
View File
@@ -74,10 +74,10 @@ Content-Transfer-Encoding: Quoted-printable
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"to": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@nsb.fv.com"
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
},
"date": {
@@ -93,13 +93,13 @@ Content-Transfer-Encoding: Quoted-printable
"tz_minute": 0
}
},
"subject": {
"Text": "A multipart example"
"mime_version": {
"Text": "1.0"
},
"to": {
"from": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
"name": "Nathaniel Borenstein",
"address": "nsb@nsb.fv.com"
}
},
"content_type": {
@@ -111,10 +111,11 @@ Content-Transfer-Encoding: Quoted-printable
}
}
},
"mime_version": {
"Text": "1.0"
"subject": {
"Text": "A multipart example"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -176,6 +177,7 @@ Content-Transfer-Encoding: Quoted-printable
"parts": [
{
"Text": {
"headers": {},
"body": "... Some text appears here ...\n\n[Note that the blank between the boundary and the start\nof the text in this part means no header fields were\ngiven and this is text in the US-ASCII character set.\nIt could have been done with explicit typing as in the\nnext part.]\n"
}
},
@@ -214,7 +216,8 @@ Content-Transfer-Encoding: Quoted-printable
"content_type": {
"ContentType": {
"c_type": "audio",
"c_subtype": "basic"
"c_subtype": "basic",
"attributes": null
}
},
"content_transfer_encoding": {
@@ -227,14 +230,15 @@ Content-Transfer-Encoding: Quoted-printable
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
"c_subtype": "jpeg",
"attributes": null
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": "... base64-encoded image data goes here ...\n"
@@ -246,7 +250,8 @@ Content-Transfer-Encoding: Quoted-printable
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "enriched"
"c_subtype": "enriched",
"attributes": null
}
}
},
@@ -259,15 +264,23 @@ Content-Transfer-Encoding: Quoted-printable
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
"body": {
"headers_rfc": {
"to": {
"Address": {
"name": "address in US-ASCII",
"address": null
}
},
"from": {
"Address": {
"name": "mailbox in US-ASCII"
"name": "mailbox in US-ASCII",
"address": null
}
},
"content_type": {
@@ -279,53 +292,49 @@ Content-Transfer-Encoding: Quoted-printable
}
}
},
"to": {
"Address": {
"name": "address in US-ASCII"
}
"subject": {
"Text": "(subject in US-ASCII)"
},
"content_transfer_encoding": {
"Text": "Quoted-printable"
},
"subject": {
"Text": "(subject in US-ASCII)"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 28
"start": 1612,
"end": 1635
},
{
"name": {
"Rfc": "to"
},
"start": 31,
"end": 54
"start": 1638,
"end": 1661
},
{
"name": {
"Rfc": "subject"
},
"start": 62,
"end": 85
"start": 1669,
"end": 1692
},
{
"name": {
"Rfc": "content_type"
},
"start": 98,
"end": 130
"start": 1705,
"end": 1737
},
{
"name": {
"Rfc": "content_transfer_encoding"
},
"start": 156,
"end": 174
"start": 1763,
"end": 1781
}
],
"html_body": [
@@ -334,9 +343,11 @@ Content-Transfer-Encoding: Quoted-printable
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "... Additional text in ISO-8859-1 goes here ...\n"
}
}
@@ -344,9 +355,9 @@ Content-Transfer-Encoding: Quoted-printable
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 175,
"offset_end": 223
"offset_header": 1607,
"offset_body": 1782,
"offset_end": 1850
}
}
}
+19 -14
View File
@@ -45,8 +45,8 @@ get RFC-MIME.DOC
"mime_version": {
"Text": "1.0"
},
"message_id": {
"Text": "id1@host.com"
"content_id": {
"Text": "id001@guppylake.bellcore.com"
},
"content_type": {
"ContentType": {
@@ -57,23 +57,26 @@ get RFC-MIME.DOC
}
}
},
"content_id": {
"Text": "id001@guppylake.bellcore.com"
},
"to": {
"Address": {
"name": "Someone"
"name": "Someone",
"address": null
}
},
"subject": {
"Text": "whatever"
},
"message_id": {
"Text": "id1@host.com"
},
"from": {
"Address": {
"name": "Whomever"
"name": "Whomever",
"address": null
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -132,6 +135,8 @@ get RFC-MIME.DOC
"end": 197
}
],
"html_body": [],
"text_body": [],
"attachments": [
0,
1,
@@ -146,12 +151,12 @@ get RFC-MIME.DOC
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"directory": "pub",
"access-type": "ANON-FTP",
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"mode": "image",
"name": "BodyFormats.ps",
"site": "thumper.bellcore.com",
"access-type": "ANON-FTP"
"site": "thumper.bellcore.com"
}
}
}
@@ -247,9 +252,9 @@ get RFC-MIME.DOC
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"access-type": "local-file",
"site": "thumper.bellcore.com",
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"site": "thumper.bellcore.com",
"access-type": "local-file",
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps"
}
}
@@ -346,9 +351,9 @@ get RFC-MIME.DOC
"c_type": "message",
"c_subtype": "external-body",
"attributes": {
"server": "listserv@bogus.bitnet",
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
"access-type": "mail-server"
"access-type": "mail-server",
"server": "listserv@bogus.bitnet"
}
}
}
+64 -58
View File
@@ -86,6 +86,9 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
"address": "vice-president@whitehouse.gov"
}
},
"subject": {
"Text": "[Fwd: Map of Argentina with Description]"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -94,11 +97,9 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
"boundary": "D7F------------D7FD5A0B8AB9C65CCDBFA872"
}
}
},
"subject": {
"Text": "[Fwd: Map of Argentina with Description]"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -161,38 +162,26 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
{
"Message": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"content_transfer_encoding": {
"Text": "7bit"
},
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
}
},
"body": {
"headers_rfc": {
"from": {
"Address": {
"name": "Bill Clinton",
"address": "president@whitehouse.gov"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
}
}
},
"received": {
"Collection": [
{
@@ -206,12 +195,6 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
"message_id": {
"Text": "199804130742.RAA20366@mai1host.whitehouse.gov"
},
"subject": {
"Text": "Map of Argentina with Description"
},
"mime_version": {
"Text": "1.0"
},
"date": {
"DateTime": {
"year": 1998,
@@ -225,86 +208,108 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
"tz_minute": 0
}
},
"return_path": {
"Text": "president@whitehouse.gov"
"from": {
"Address": {
"name": "Bill Clinton",
"address": "president@whitehouse.gov"
}
},
"to": {
"Address": {
"name": "A1 Gore (The Enforcer)",
"address": "vice-president@whitehouse.gov"
}
},
"return_path": {
"Text": "president@whitehouse.gov"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
}
}
},
"subject": {
"Text": "Map of Argentina with Description"
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "return_path"
},
"start": 12,
"end": 40
"start": 639,
"end": 667
},
{
"name": {
"Rfc": "received"
},
"start": 49,
"end": 266
"start": 676,
"end": 893
},
{
"name": {
"Rfc": "received"
},
"start": 275,
"end": 473
"start": 902,
"end": 1100
},
{
"name": {
"Rfc": "date"
},
"start": 478,
"end": 511
"start": 1105,
"end": 1138
},
{
"name": {
"Rfc": "message_id"
},
"start": 522,
"end": 571
"start": 1149,
"end": 1198
},
{
"name": {
"Rfc": "from"
},
"start": 576,
"end": 617
"start": 1203,
"end": 1244
},
{
"name": {
"Rfc": "to"
},
"start": 620,
"end": 676
"start": 1247,
"end": 1303
},
{
"name": {
"Rfc": "subject"
},
"start": 684,
"end": 720
"start": 1311,
"end": 1347
},
{
"name": {
"Rfc": "mime_version"
},
"start": 733,
"end": 738
"start": 1360,
"end": 1365
},
{
"name": {
"Rfc": "content_type"
},
"start": 751,
"end": 834
"start": 1378,
"end": 1461
}
],
"html_body": [
@@ -341,9 +346,6 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
{
"InlineBinary": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "image",
@@ -353,9 +355,13 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
}
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": {
"fi1ename": "map_of_Argentina.gif"
}
@@ -665,9 +671,9 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
}
]
},
"offset_header": 0,
"offset_body": 835,
"offset_end": 1978
"offset_header": 627,
"offset_body": 1462,
"offset_end": 2607
}
}
}
+16 -13
View File
@@ -26,6 +26,9 @@ Content-Type: application/x-whatever
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"subject": {
"Text": "Formatted text mail"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -35,14 +38,8 @@ Content-Type: application/x-whatever
}
}
},
"subject": {
"Text": "Formatted text mail"
},
"to": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
"mime_version": {
"Text": "1.0"
},
"from": {
"Address": {
@@ -50,6 +47,12 @@ Content-Type: application/x-whatever
"address": "nsb@bellcore.com"
}
},
"to": {
"Address": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
},
"date": {
"DateTime": {
"year": 1993,
@@ -62,11 +65,9 @@ Content-Type: application/x-whatever
"tz_hour": 8,
"tz_minute": 0
}
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -144,7 +145,8 @@ Content-Type: application/x-whatever
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "enriched"
"c_subtype": "enriched",
"attributes": null
}
}
},
@@ -157,7 +159,8 @@ Content-Type: application/x-whatever
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "x-whatever"
"c_subtype": "x-whatever",
"attributes": null
}
}
},
+61 -47
View File
@@ -37,26 +37,18 @@ Subject: my different opinion
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"to": {
"Address": {
"name": "Recipient-List"
"name": "Recipient-List",
"address": null
}
},
"subject": {
"Text": "Internet Digest, volume 42"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "---- main boundary ----"
}
}
},
"date": {
"DateTime": {
"year": 1994,
@@ -70,12 +62,23 @@ Subject: my different opinion
"tz_minute": 0
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "mixed",
"attributes": {
"boundary": "---- main boundary ----"
}
}
},
"from": {
"Address": {
"name": "Moderator-Address"
"name": "Moderator-Address",
"address": null
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -133,6 +136,7 @@ Subject: my different opinion
"parts": [
{
"Text": {
"headers": {},
"body": "...Introductory text or table of contents...\n"
}
},
@@ -155,17 +159,13 @@ Subject: my different opinion
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
"body": {
"headers_rfc": {
"from": {
"Address": {
"name": "someone-else"
}
},
"date": {
"DateTime": {
"year": 1993,
@@ -179,31 +179,38 @@ Subject: my different opinion
"tz_minute": 0
}
},
"from": {
"Address": {
"name": "someone-else",
"address": null
}
},
"subject": {
"Text": "my opinion"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 19
"start": 423,
"end": 437
},
{
"name": {
"Rfc": "date"
},
"start": 24,
"end": 57
"start": 442,
"end": 475
},
{
"name": {
"Rfc": "subject"
},
"start": 65,
"end": 77
"start": 483,
"end": 495
}
],
"html_body": [
@@ -212,9 +219,11 @@ Subject: my different opinion
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "...body goes here ...\n"
}
}
@@ -222,9 +231,9 @@ Subject: my different opinion
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 78,
"offset_end": 100
"offset_header": 418,
"offset_body": 496,
"offset_end": 545
}
}
},
@@ -234,20 +243,13 @@ Subject: my different opinion
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
"body": {
"headers_rfc": {
"from": {
"Address": {
"name": "someone-else-again"
}
},
"subject": {
"Text": "my different opinion"
},
"date": {
"DateTime": {
"year": 1993,
@@ -260,29 +262,39 @@ Subject: my different opinion
"tz_hour": 5,
"tz_minute": 0
}
},
"subject": {
"Text": "my different opinion"
},
"from": {
"Address": {
"name": "someone-else-again",
"address": null
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "from"
},
"start": 5,
"end": 25
"start": 550,
"end": 570
},
{
"name": {
"Rfc": "date"
},
"start": 30,
"end": 63
"start": 575,
"end": 608
},
{
"name": {
"Rfc": "subject"
},
"start": 71,
"end": 93
"start": 616,
"end": 638
}
],
"html_body": [
@@ -291,9 +303,11 @@ Subject: my different opinion
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "... another body goes here ...\n"
}
}
@@ -301,9 +315,9 @@ Subject: my different opinion
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 94,
"offset_end": 125
"offset_header": 545,
"offset_body": 639,
"offset_end": 695
}
}
}
+13 -10
View File
@@ -26,14 +26,8 @@ This is the epilogue. It is also to be ignored.
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"from": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@bellcore.com"
}
},
"mime_version": {
"Text": "1.0"
"subject": {
"Text": "Sample message"
},
"to": {
"Address": {
@@ -41,6 +35,12 @@ This is the epilogue. It is also to be ignored.
"address": "ned@innosoft.com"
}
},
"from": {
"Address": {
"name": "Nathaniel Borenstein",
"address": "nsb@bellcore.com"
}
},
"date": {
"DateTime": {
"year": 1993,
@@ -63,10 +63,11 @@ This is the epilogue. It is also to be ignored.
}
}
},
"subject": {
"Text": "Sample message"
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -119,9 +120,11 @@ This is the epilogue. It is also to be ignored.
0,
1
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "This is implicitly typed plain US-ASCII text.\nIt does NOT end with a linebreak."
}
},
+21 -13
View File
@@ -24,19 +24,21 @@ Content-Disposition: inline
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"subject": {
"Text": "Multipart Email Example"
},
"to": {
"Address": {
"name": null,
"address": "recipient@example.com"
}
},
"from": {
"Address": {
"name": null,
"address": "sender@example.com"
}
},
"subject": {
"Text": "Multipart Email Example"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -47,6 +49,7 @@ Content-Disposition: inline
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -83,6 +86,7 @@ Content-Disposition: inline
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
@@ -90,11 +94,6 @@ Content-Disposition: inline
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -103,6 +102,13 @@ Content-Disposition: inline
"charset": "utf-8"
}
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
}
},
"body": "Plain text email goes here!\nThis is the fallback if email client does not support HTML\n"
@@ -111,11 +117,6 @@ Content-Disposition: inline
{
"Html": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -127,6 +128,13 @@ Content-Disposition: inline
},
"content_transfer_encoding": {
"Text": "quoted-printable"
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
}
},
"body": "<h1>This is the HTML Section!</h1>\n<p>This is what displays in most modern email clients</p>\n"
+62 -36
View File
@@ -74,9 +74,6 @@ K
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"subject": {
"Text": "RFC 8621 Section 4.1.4 test"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -85,8 +82,12 @@ K
"boundary": "1"
}
}
},
"subject": {
"Text": "RFC 8621 Section 4.1.4 test"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -129,12 +130,15 @@ K
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
}
},
@@ -183,15 +187,18 @@ K
{
"Text": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
}
},
@@ -201,15 +208,18 @@ K
{
"InlineBinary": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
},
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline"
"c_subtype": "jpeg",
"attributes": null
}
}
},
@@ -221,15 +231,18 @@ K
{
"Text": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline"
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
},
"content_disposition": {
"ContentType": {
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
}
},
@@ -255,7 +268,8 @@ K
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "html"
"c_subtype": "html",
"attributes": null
}
}
},
@@ -268,7 +282,8 @@ K
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
"c_subtype": "jpeg",
"attributes": null
}
}
},
@@ -283,12 +298,15 @@ K
"content_type": {
"ContentType": {
"c_type": "image",
"c_subtype": "jpeg"
"c_subtype": "jpeg",
"attributes": null
}
},
"content_disposition": {
"ContentType": {
"c_type": "attachment"
"c_type": "attachment",
"c_subtype": null,
"attributes": null
}
}
},
@@ -303,7 +321,8 @@ K
"content_type": {
"ContentType": {
"c_type": "application",
"c_subtype": "x-excel"
"c_subtype": "x-excel",
"attributes": null
}
}
},
@@ -318,7 +337,8 @@ K
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
}
},
@@ -328,13 +348,14 @@ K
"Text": "J"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
"Rfc": "subject"
},
"start": 8,
"end": 11
"start": 789,
"end": 792
}
],
"html_body": [
@@ -343,9 +364,11 @@ K
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {},
"body": "J"
}
}
@@ -353,9 +376,9 @@ K
"structure": {
"Part": 0
},
"offset_header": 0,
"offset_body": 12,
"offset_end": 13
"offset_header": 781,
"offset_body": 793,
"offset_end": 798
}
}
},
@@ -364,13 +387,16 @@ K
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "inline"
"c_type": "inline",
"c_subtype": null,
"attributes": null
}
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+29 -24
View File
@@ -41,6 +41,7 @@ YWFhYWFhYWFhYWFhYS0tDQo=
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -82,28 +83,30 @@ YWFhYWFhYWFhYWFhYS0tDQo=
{
"Message": {
"headers": {
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"attributes": {
"filename": "attached_email.eml"
}
}
},
"content_type": {
"ContentType": {
"c_type": "message",
"c_subtype": "rfc822"
"c_subtype": "rfc822",
"attributes": null
}
},
"content_transfer_encoding": {
"Text": "base64"
},
"content_disposition": {
"ContentType": {
"c_type": "attachment",
"c_subtype": null,
"attributes": {
"filename": "attached_email.eml"
}
}
}
},
"body": {
"headers_rfc": {
"subject": {
"Text": "HTML test"
"content_language": {
"Text": "en-US"
},
"to": {
"Address": {
@@ -111,14 +114,8 @@ YWFhYWFhYWFhYWFhYS0tDQo=
"address": "email@example.com"
}
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
"subject": {
"Text": "HTML test"
},
"from": {
"Address": {
@@ -126,8 +123,8 @@ YWFhYWFhYWFhYWFhYS0tDQo=
"address": "email@example.com"
}
},
"content_language": {
"Text": "en-US"
"message_id": {
"Text": "random-message-id@example.com"
},
"date": {
"DateTime": {
@@ -142,13 +139,20 @@ YWFhYWFhYWFhYWFhYS0tDQo=
"tz_minute": 0
}
},
"message_id": {
"Text": "random-message-id@example.com"
},
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
"c_subtype": "alternative",
"attributes": {
"boundary": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -213,6 +217,7 @@ YWFhYWFhYWFhYWFhYS0tDQo=
"text_body": [
0
],
"attachments": [],
"parts": [
{
"Text": {
+12 -8
View File
@@ -21,9 +21,6 @@ ZWg=
---- EXPECTED STRUCTURE ----
{
"headers_rfc": {
"mime_version": {
"Text": "1.0"
},
"content_type": {
"ContentType": {
"c_type": "multipart",
@@ -32,8 +29,12 @@ ZWg=
"boundary": "bound"
}
}
},
"mime_version": {
"Text": "1.0"
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -58,18 +59,20 @@ ZWg=
0,
1
],
"attachments": [],
"parts": [
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": "we have\ra lot \nof \u0000binary stuff in here\nb adjig sadjg jasidgjiaehga3wht8a3w8ghxjc dsgad hasdghsd gasd dsjdsoga sjdga0w3tjhawjgsertniq3n5oqerjqw2r89q23h awhrqh835r8a"
@@ -81,7 +84,8 @@ ZWg=
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
},
"content_transfer_encoding": {
+8 -3
View File
@@ -39,6 +39,7 @@ hello world
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -65,6 +66,7 @@ hello world
1,
2
],
"attachments": [],
"parts": [
{
"Text": {
@@ -72,7 +74,8 @@ hello world
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
},
"content_transfer_encoding": {
@@ -91,7 +94,8 @@ hello world
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
@@ -104,7 +108,8 @@ hello world
"content_type": {
"ContentType": {
"c_type": "text",
"c_subtype": "plain"
"c_subtype": "plain",
"attributes": null
}
}
},
+7 -6
View File
@@ -31,6 +31,7 @@ Content-Type: text/plain; charset=utf-8
}
}
},
"headers_other": {},
"headers_offsets": [
{
"name": {
@@ -74,6 +75,9 @@ Content-Type: text/plain; charset=utf-8
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -82,9 +86,6 @@ Content-Type: text/plain; charset=utf-8
"charset": "utf-8"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": "yötä vaan.\n�\t�"
@@ -93,6 +94,9 @@ Content-Type: text/plain; charset=utf-8
{
"Text": {
"headers": {
"content_transfer_encoding": {
"Text": "base64"
},
"content_type": {
"ContentType": {
"c_type": "text",
@@ -101,9 +105,6 @@ Content-Type: text/plain; charset=utf-8
"charset": "utf-8"
}
}
},
"content_transfer_encoding": {
"Text": "base64"
}
},
"body": "?garbage"

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