mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 00:01:49 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da4a9d9a47 | ||
|
|
c3b36dd0d6 | ||
|
|
2f380451f5 | ||
|
|
1a2ac1d027 | ||
|
|
beb21b3d03 | ||
|
|
c77f3e2cb4 | ||
|
|
94522f1179 |
@@ -1,3 +1,9 @@
|
||||
mail-parser 0.4.5
|
||||
================================
|
||||
- DateTime to UNIX timestamp conversion.
|
||||
- Ord, PartialOrd support for DateTime (#13).
|
||||
- Fixed Message::parse() panic on duplicate Content-Type headers (#14).
|
||||
|
||||
mail-parser 0.4.4
|
||||
================================
|
||||
- Support for multi-line headers.
|
||||
|
||||
Generated
+83
-5
@@ -23,6 +23,19 @@ version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "chrono"
|
||||
version = "0.4.19"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"num-integer",
|
||||
"num-traits",
|
||||
"time",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dtoa"
|
||||
version = "0.4.8"
|
||||
@@ -60,6 +73,12 @@ version = "0.4.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.120"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ad5c14e80759d0939d013e6ca49930e59fc53dd8e5009132f76240c179380c09"
|
||||
|
||||
[[package]]
|
||||
name = "linked-hash-map"
|
||||
version = "0.5.4"
|
||||
@@ -68,15 +87,35 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
|
||||
|
||||
[[package]]
|
||||
name = "mail-parser"
|
||||
version = "0.4.4"
|
||||
version = "0.4.5"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"chrono",
|
||||
"encoding_rs",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"serde_yaml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-integer"
|
||||
version = "0.1.44"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-traits"
|
||||
version = "0.2.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.30"
|
||||
@@ -103,18 +142,18 @@ checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.130"
|
||||
version = "1.0.136"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913"
|
||||
checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.130"
|
||||
version = "1.0.136"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b"
|
||||
checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@@ -155,12 +194,51 @@ dependencies = [
|
||||
"unicode-xid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "time"
|
||||
version = "0.1.44"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"wasi",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unicode-xid"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
|
||||
|
||||
[[package]]
|
||||
name = "wasi"
|
||||
version = "0.10.0+wasi-snapshot-preview1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
|
||||
|
||||
[[package]]
|
||||
name = "winapi"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
||||
dependencies = [
|
||||
"winapi-i686-pc-windows-gnu",
|
||||
"winapi-x86_64-pc-windows-gnu",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winapi-i686-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
||||
|
||||
[[package]]
|
||||
name = "winapi-x86_64-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
||||
|
||||
[[package]]
|
||||
name = "yaml-rust"
|
||||
version = "0.4.5"
|
||||
|
||||
+2
-1
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "mail-parser"
|
||||
description = "Fast and robust e-mail parsing library for Rust"
|
||||
version = "0.4.4"
|
||||
version = "0.4.5"
|
||||
edition = "2018"
|
||||
authors = [ "Stalwart Labs <hello@stalw.art>"]
|
||||
license = "Apache-2.0 OR MIT"
|
||||
@@ -19,6 +19,7 @@ serde = { version = "1.0", features = ["derive"], optional=true}
|
||||
serde_yaml = "0.8"
|
||||
serde_json = "1.0"
|
||||
bincode = "1.3.3"
|
||||
chrono = "0.4"
|
||||
|
||||
[features]
|
||||
default = ["serde_support", "full_encoding"]
|
||||
|
||||
@@ -12,9 +12,6 @@
|
||||
#[cfg(feature = "full_encoding")]
|
||||
use encoding_rs::*;
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
use super::map::decoder_default;
|
||||
|
||||
#[cfg(feature = "full_encoding")]
|
||||
fn multi_byte_decoder(mut decoder: Decoder, bytes: &[u8]) -> String {
|
||||
let mut result = String::with_capacity(bytes.len() * 3);
|
||||
@@ -35,7 +32,7 @@ pub fn decoder_shift_jis(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +44,7 @@ pub fn decoder_big5(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +56,7 @@ pub fn decoder_euc_jp(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +68,7 @@ pub fn decoder_euc_kr(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +80,7 @@ pub fn decoder_gb18030(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +92,7 @@ pub fn decoder_gbk(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +104,7 @@ pub fn decoder_iso2022_jp(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +116,7 @@ pub fn decoder_windows874(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +128,6 @@ pub fn decoder_ibm866(bytes: &[u8]) -> String {
|
||||
|
||||
#[cfg(not(feature = "full_encoding"))]
|
||||
{
|
||||
decoder_default(bytes)
|
||||
String::from_utf8_lossy(bytes).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
+67
-41
@@ -515,12 +515,26 @@ pub enum HeaderName<'x> {
|
||||
}
|
||||
|
||||
impl<'x> HeaderName<'x> {
|
||||
pub fn as_str(&self) -> &str {
|
||||
match self {
|
||||
HeaderName::Rfc(header) => header.as_str(),
|
||||
HeaderName::Other(name) => name.as_ref(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn into_owned<'y>(&self) -> HeaderName<'y> {
|
||||
match self {
|
||||
HeaderName::Rfc(header) => HeaderName::Rfc(*header),
|
||||
HeaderName::Other(name) => HeaderName::Other(name.clone().into_owned().into()),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn unwrap(self) -> String {
|
||||
match self {
|
||||
HeaderName::Rfc(header) => header.as_str().to_owned(),
|
||||
HeaderName::Other(name) => name.into_owned(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A header field
|
||||
@@ -568,47 +582,53 @@ pub enum RfcHeader {
|
||||
ListUnsubscribe = 36,
|
||||
}
|
||||
|
||||
impl RfcHeader {
|
||||
pub fn as_str(&self) -> &str {
|
||||
match self {
|
||||
RfcHeader::Subject => "Subject",
|
||||
RfcHeader::From => "From",
|
||||
RfcHeader::To => "To",
|
||||
RfcHeader::Cc => "Cc",
|
||||
RfcHeader::Date => "Date",
|
||||
RfcHeader::Bcc => "Bcc",
|
||||
RfcHeader::ReplyTo => "Reply-To",
|
||||
RfcHeader::Sender => "Sender",
|
||||
RfcHeader::Comments => "Comments",
|
||||
RfcHeader::InReplyTo => "In-Reply-To",
|
||||
RfcHeader::Keywords => "Keywords",
|
||||
RfcHeader::Received => "Received",
|
||||
RfcHeader::MessageId => "Message-ID",
|
||||
RfcHeader::References => "References",
|
||||
RfcHeader::ReturnPath => "Return-Path",
|
||||
RfcHeader::MimeVersion => "MIME-Version",
|
||||
RfcHeader::ContentDescription => "Content-Description",
|
||||
RfcHeader::ContentId => "Content-ID",
|
||||
RfcHeader::ContentLanguage => "Content-Language",
|
||||
RfcHeader::ContentLocation => "Content-Location",
|
||||
RfcHeader::ContentTransferEncoding => "Content-Transfer-Encoding",
|
||||
RfcHeader::ContentType => "Content-Type",
|
||||
RfcHeader::ContentDisposition => "Content-Disposition",
|
||||
RfcHeader::ResentTo => "Resent-To",
|
||||
RfcHeader::ResentFrom => "Resent-From",
|
||||
RfcHeader::ResentBcc => "Resent-Bcc",
|
||||
RfcHeader::ResentCc => "Resent-Cc",
|
||||
RfcHeader::ResentSender => "Resent-Sender",
|
||||
RfcHeader::ResentDate => "Resent-Date",
|
||||
RfcHeader::ResentMessageId => "Resent-Message-ID",
|
||||
RfcHeader::ListArchive => "List-Archive",
|
||||
RfcHeader::ListHelp => "List-Help",
|
||||
RfcHeader::ListId => "List-ID",
|
||||
RfcHeader::ListOwner => "List-Owner",
|
||||
RfcHeader::ListPost => "List-Post",
|
||||
RfcHeader::ListSubscribe => "List-Subscribe",
|
||||
RfcHeader::ListUnsubscribe => "List-Unsubscribe",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for RfcHeader {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
RfcHeader::Subject => write!(f, "Subject"),
|
||||
RfcHeader::From => write!(f, "From"),
|
||||
RfcHeader::To => write!(f, "To"),
|
||||
RfcHeader::Cc => write!(f, "Cc"),
|
||||
RfcHeader::Date => write!(f, "Date"),
|
||||
RfcHeader::Bcc => write!(f, "Bcc"),
|
||||
RfcHeader::ReplyTo => write!(f, "Reply-To"),
|
||||
RfcHeader::Sender => write!(f, "Sender"),
|
||||
RfcHeader::Comments => write!(f, "Comments"),
|
||||
RfcHeader::InReplyTo => write!(f, "In-Reply-To"),
|
||||
RfcHeader::Keywords => write!(f, "Keywords"),
|
||||
RfcHeader::Received => write!(f, "Received"),
|
||||
RfcHeader::MessageId => write!(f, "Message-ID"),
|
||||
RfcHeader::References => write!(f, "References"),
|
||||
RfcHeader::ReturnPath => write!(f, "Return-Path"),
|
||||
RfcHeader::MimeVersion => write!(f, "MIME-Version"),
|
||||
RfcHeader::ContentDescription => write!(f, "Content-Description"),
|
||||
RfcHeader::ContentId => write!(f, "Content-ID"),
|
||||
RfcHeader::ContentLanguage => write!(f, "Content-Language"),
|
||||
RfcHeader::ContentLocation => write!(f, "Content-Location"),
|
||||
RfcHeader::ContentTransferEncoding => write!(f, "Content-Transfer-Encoding"),
|
||||
RfcHeader::ContentType => write!(f, "Content-Type"),
|
||||
RfcHeader::ContentDisposition => write!(f, "Content-Disposition"),
|
||||
RfcHeader::ResentTo => write!(f, "Resent-To"),
|
||||
RfcHeader::ResentFrom => write!(f, "Resent-From"),
|
||||
RfcHeader::ResentBcc => write!(f, "Resent-Bcc"),
|
||||
RfcHeader::ResentCc => write!(f, "Resent-Cc"),
|
||||
RfcHeader::ResentSender => write!(f, "Resent-Sender"),
|
||||
RfcHeader::ResentDate => write!(f, "Resent-Date"),
|
||||
RfcHeader::ResentMessageId => write!(f, "Resent-Message-ID"),
|
||||
RfcHeader::ListArchive => write!(f, "List-Archive"),
|
||||
RfcHeader::ListHelp => write!(f, "List-Help"),
|
||||
RfcHeader::ListId => write!(f, "List-ID"),
|
||||
RfcHeader::ListOwner => write!(f, "List-Owner"),
|
||||
RfcHeader::ListPost => write!(f, "List-Post"),
|
||||
RfcHeader::ListSubscribe => write!(f, "List-Subscribe"),
|
||||
RfcHeader::ListUnsubscribe => write!(f, "List-Unsubscribe"),
|
||||
}
|
||||
write!(f, "{}", self.as_str())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -690,7 +710,11 @@ impl<'x> HeaderValue<'x> {
|
||||
pub fn get_content_type(&self) -> &ContentType<'x> {
|
||||
match *self {
|
||||
HeaderValue::ContentType(ref ct) => ct,
|
||||
_ => panic!("HeaderValue::get_content_type called on non-ContentType value"),
|
||||
HeaderValue::Collection(ref c) => c.last().unwrap().get_content_type(),
|
||||
_ => panic!(
|
||||
"HeaderValue::get_content_type called on non-ContentType: {:?}",
|
||||
self
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -755,7 +779,7 @@ pub struct ContentType<'x> {
|
||||
}
|
||||
|
||||
/// An RFC5322 datetime.
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
|
||||
pub struct DateTime {
|
||||
pub year: u32,
|
||||
@@ -1484,6 +1508,7 @@ impl<'x> Part<'x, MessageAttachment<'x>> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "serde_support")]
|
||||
impl<'x> Serialize for MessageAttachment<'x> {
|
||||
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
|
||||
where
|
||||
@@ -1498,6 +1523,7 @@ impl<'x> Serialize for MessageAttachment<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "serde_support")]
|
||||
impl<'x, 'de> Deserialize<'de> for MessageAttachment<'x> {
|
||||
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>
|
||||
where
|
||||
|
||||
@@ -29,6 +29,64 @@ impl DateTime {
|
||||
self.tz_minute
|
||||
)
|
||||
}
|
||||
|
||||
/// Returns true if the date is vald
|
||||
pub fn is_valid(&self) -> bool {
|
||||
(0..23).contains(&self.tz_hour)
|
||||
&& (0..59).contains(&self.tz_minute)
|
||||
&& (1970..2500).contains(&self.year)
|
||||
&& (1..12).contains(&self.month)
|
||||
&& (1..31).contains(&self.day)
|
||||
&& (0..23).contains(&self.hour)
|
||||
&& (0..59).contains(&self.minute)
|
||||
&& (0..59).contains(&self.second)
|
||||
}
|
||||
|
||||
/// Returns the numbers of seconds since 1970-01-01T00:00:00Z (Unix epoch)
|
||||
/// or None if the date is invalid.
|
||||
pub fn to_timestamp(&self) -> Option<i64> {
|
||||
// Ported from https://github.com/protocolbuffers/upb/blob/22182e6e/upb/json_decode.c#L982-L992
|
||||
if self.is_valid() {
|
||||
let year_base = 4800; /* Before min year, multiple of 400. */
|
||||
let m_adj = self.month.overflowing_sub(3).0; /* March-based month. */
|
||||
let carry = if m_adj > self.month { 1 } else { 0 };
|
||||
let adjust = if carry > 0 { 12 } else { 0 };
|
||||
let y_adj = self.year as i64 + year_base - carry;
|
||||
let month_days = ((m_adj.overflowing_add(adjust).0) * 62719 + 769) / 2048;
|
||||
let leap_days = y_adj / 4 - y_adj / 100 + y_adj / 400;
|
||||
((y_adj * 365 + leap_days + month_days as i64 + (self.day as i64 - 1) - 2472632)
|
||||
* 86400
|
||||
+ self.hour as i64 * 3600
|
||||
+ self.minute as i64 * 60
|
||||
+ self.second as i64
|
||||
+ ((self.tz_hour as i64 * 3600 + self.tz_minute as i64 * 60)
|
||||
* if self.tz_before_gmt { 1 } else { -1 }))
|
||||
.into()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialOrd for DateTime {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
||||
match self.to_timestamp()? - other.to_timestamp()? {
|
||||
0 => std::cmp::Ordering::Equal,
|
||||
x if x > 0 => std::cmp::Ordering::Greater,
|
||||
_ => std::cmp::Ordering::Less,
|
||||
}
|
||||
.into()
|
||||
}
|
||||
}
|
||||
|
||||
impl Ord for DateTime {
|
||||
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
||||
match self.to_timestamp().unwrap_or_default() - other.to_timestamp().unwrap_or_default() {
|
||||
0 => std::cmp::Ordering::Equal,
|
||||
x if x > 0 => std::cmp::Ordering::Greater,
|
||||
_ => std::cmp::Ordering::Less,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for DateTime {
|
||||
@@ -195,6 +253,8 @@ pub static MONTH_MAP: &[u8; 31] = &[
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use chrono::{FixedOffset, LocalResult, SecondsFormat, TimeZone, Utc};
|
||||
|
||||
use crate::{
|
||||
parsers::{fields::date::parse_date, message::MessageStream},
|
||||
HeaderValue,
|
||||
@@ -265,9 +325,35 @@ mod tests {
|
||||
for input in inputs {
|
||||
let str = input.0.to_string();
|
||||
match parse_date(&mut MessageStream::new(str.as_bytes())) {
|
||||
HeaderValue::DateTime(date) => {
|
||||
//println!("{} -> {}", input.0.escape_debug(), date.to_iso8601());
|
||||
assert_eq!(input.1, date.to_iso8601());
|
||||
HeaderValue::DateTime(datetime) => {
|
||||
assert_eq!(input.1, datetime.to_iso8601());
|
||||
|
||||
if datetime.is_valid() {
|
||||
if let LocalResult::Single(chrono_datetime)
|
||||
| LocalResult::Ambiguous(chrono_datetime, _) = FixedOffset::west_opt(
|
||||
((datetime.tz_hour as i32 * 3600i32) + datetime.tz_minute as i32 * 60)
|
||||
* if datetime.tz_before_gmt { 1i32 } else { -1i32 },
|
||||
)
|
||||
.unwrap_or_else(|| FixedOffset::east(0))
|
||||
.ymd_opt(datetime.year as i32, datetime.month, datetime.day)
|
||||
.and_hms_opt(datetime.hour, datetime.minute, datetime.second)
|
||||
{
|
||||
assert_eq!(
|
||||
chrono_datetime.timestamp(),
|
||||
datetime.to_timestamp().unwrap(),
|
||||
"{} -> {} ({}) -> {} ({})",
|
||||
input.0.escape_debug(),
|
||||
datetime.to_timestamp().unwrap(),
|
||||
Utc.timestamp_opt(datetime.to_timestamp().unwrap(), 0)
|
||||
.unwrap()
|
||||
.to_rfc3339_opts(SecondsFormat::Secs, true),
|
||||
chrono_datetime.timestamp(),
|
||||
Utc.timestamp_opt(chrono_datetime.timestamp(), 0)
|
||||
.unwrap()
|
||||
.to_rfc3339_opts(SecondsFormat::Secs, true)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
HeaderValue::Empty => {
|
||||
//println!("{} -> None", input.0.escape_debug());
|
||||
|
||||
+22
-19
@@ -105,24 +105,7 @@ pub fn parse_header_name(data: &[u8]) -> (usize, HeaderParserResult) {
|
||||
match ch {
|
||||
b':' => {
|
||||
if token_start != 0 {
|
||||
let field = &data[token_start - 1..token_end];
|
||||
|
||||
if (2..=25).contains(&token_len) {
|
||||
token_hash +=
|
||||
token_len + HDR_HASH[last_ch.to_ascii_lowercase() as usize] as usize;
|
||||
|
||||
if (4..=72).contains(&token_hash) {
|
||||
let token_hash = token_hash - 4;
|
||||
|
||||
if field.eq_ignore_ascii_case(HDR_NAMES[token_hash]) {
|
||||
return (bytes_read, HeaderParserResult::Rfc(HDR_MAP[token_hash]));
|
||||
}
|
||||
}
|
||||
}
|
||||
return (
|
||||
bytes_read,
|
||||
HeaderParserResult::Other(String::from_utf8_lossy(field)),
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
b'\n' => {
|
||||
@@ -147,7 +130,27 @@ pub fn parse_header_name(data: &[u8]) -> (usize, HeaderParserResult) {
|
||||
}
|
||||
}
|
||||
|
||||
(bytes_read, HeaderParserResult::Eof)
|
||||
if token_start != 0 {
|
||||
let field = &data[token_start - 1..token_end];
|
||||
|
||||
if (2..=25).contains(&token_len) {
|
||||
token_hash += token_len + HDR_HASH[last_ch.to_ascii_lowercase() as usize] as usize;
|
||||
|
||||
if (4..=72).contains(&token_hash) {
|
||||
let token_hash = token_hash - 4;
|
||||
|
||||
if field.eq_ignore_ascii_case(HDR_NAMES[token_hash]) {
|
||||
return (bytes_read, HeaderParserResult::Rfc(HDR_MAP[token_hash]));
|
||||
}
|
||||
}
|
||||
}
|
||||
return (
|
||||
bytes_read,
|
||||
HeaderParserResult::Other(String::from_utf8_lossy(field)),
|
||||
);
|
||||
} else {
|
||||
(bytes_read, HeaderParserResult::Eof)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<RfcHeader> for u8 {
|
||||
|
||||
@@ -751,7 +751,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn generate_test_samples() {
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----\n".as_bytes();
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----".as_bytes();
|
||||
|
||||
for test_suite in ["legacy", "malformed", "rfc", "thirdparty"] {
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
@@ -770,6 +770,7 @@ mod tests {
|
||||
continue;
|
||||
}
|
||||
|
||||
println!("{:}", file_name.as_ref().unwrap().path().display());
|
||||
let mut input = fs::read(file_name.as_ref().unwrap().path()).unwrap();
|
||||
let mut pos = 0;
|
||||
for sep_pos in 0..input.len() {
|
||||
|
||||
+5
-1
@@ -62,7 +62,11 @@ pub fn get_bytes_to_boundary<'x>(
|
||||
match_count += 1;
|
||||
if match_count == boundary.len() {
|
||||
if is_boundary_end(stream, read_pos) {
|
||||
let match_pos = read_pos - match_count;
|
||||
let mut match_pos = read_pos - match_count;
|
||||
|
||||
if let Some(b'\r') = stream.data.get(match_pos - 1) {
|
||||
match_pos -= 1;
|
||||
}
|
||||
|
||||
return (
|
||||
read_pos - start_pos,
|
||||
|
||||
+21
-21
@@ -44,9 +44,27 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -59,24 +77,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
@@ -88,9 +88,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -100,6 +97,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
|
||||
+18
-18
@@ -35,18 +35,6 @@ m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
@@ -59,9 +47,6 @@ m+APw-ssen als wir.+ACI-=20
|
||||
}
|
||||
]
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -74,6 +59,21 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -87,9 +87,6 @@ m+APw-ssen als wir.+ACI-=20
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -98,6 +95,9 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+12
-12
@@ -37,18 +37,6 @@ wir." <br>
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -68,6 +56,18 @@ wir." <br>
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
|
||||
@@ -77,11 +77,8 @@ wir." <br>
|
||||
"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"
|
||||
@@ -92,12 +89,15 @@ wir." <br>
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"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",
|
||||
|
||||
+15
-15
@@ -19,12 +19,27 @@ Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -37,21 +52,6 @@ Slow but steady wins the race.
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "The Hare and the Tortoise"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+15
-15
@@ -33,24 +33,12 @@ m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -64,8 +52,20 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -79,6 +79,9 @@ m+APw-ssen als wir.+ACI-=20
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -87,9 +90,6 @@ m+APw-ssen als wir.+ACI-=20
|
||||
"charset": "utf-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+25
-25
@@ -84,24 +84,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -115,17 +97,35 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0004_01BFC037.28F2FA90"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
@@ -138,9 +138,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
@@ -150,6 +147,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
|
||||
+15
-15
@@ -32,10 +32,13 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
@@ -54,17 +57,14 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -78,6 +78,9 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -86,9 +89,6 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+29
-29
@@ -136,29 +136,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0002_01BFC036.AE309650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -173,11 +158,26 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0002_01BFC036.AE309650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -215,9 +215,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -235,6 +232,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1579,9 +1579,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1590,6 +1587,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -2907,9 +2907,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
@@ -2918,6 +2915,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+12
-12
@@ -37,6 +37,18 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010441.00a8d140@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -50,15 +62,6 @@ 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"
|
||||
},
|
||||
@@ -67,9 +70,6 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010441.00a8d140@pop.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+14
-14
@@ -25,6 +25,18 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -38,23 +50,11 @@ In einem nahen Teich wollten sie sich nun ers
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+11
-11
@@ -30,24 +30,18 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -61,8 +55,14 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+15
-15
@@ -31,24 +31,12 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -62,8 +50,20 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -77,6 +77,9 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -85,9 +88,6 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"charset": "Windows-1252"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+18
-18
@@ -35,24 +35,9 @@ welche also wohl noch ungl
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -65,6 +50,21 @@ welche also wohl noch ungl
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -78,6 +78,9 @@ welche also wohl noch ungl
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -86,9 +89,6 @@ welche also wohl noch ungl
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+18
-18
@@ -73,27 +73,21 @@ race. =20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -107,14 +101,20 @@ race. =20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+47
-47
@@ -199,11 +199,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -218,8 +215,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
@@ -236,11 +233,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -330,6 +330,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3ed95.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -342,15 +351,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa3ed95.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2"
|
||||
}
|
||||
@@ -1688,8 +1688,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa3edd1.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
@@ -1703,14 +1709,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "2aa3edd1.png"
|
||||
}
|
||||
}
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -3174,6 +3174,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -3185,15 +3194,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -4529,6 +4529,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -4540,15 +4549,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+17
-19
@@ -105,15 +105,24 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005150.00a85230@pop.example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -129,15 +138,6 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -154,6 +154,9 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -162,9 +165,6 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -2123,8 +2123,7 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
33,
|
||||
58,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -3282,8 +3281,7 @@ JB@ac)(GTFLiL)!d09'8!!!:
|
||||
33,
|
||||
58,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+34
-36
@@ -103,15 +103,31 @@ end
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 50,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
@@ -129,22 +145,6 @@ end
|
||||
"boundary": "=====================_716177458==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519004755.00a86100@pop.example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 50,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -172,7 +172,7 @@ end
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -187,6 +187,9 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -195,9 +198,6 @@ end
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -2055,14 +2055,22 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -2074,15 +2082,6 @@ end
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -3978,8 +3977,7 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+40
-40
@@ -139,6 +139,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -149,20 +158,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -180,8 +177,11 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -213,9 +213,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -224,6 +221,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -233,6 +233,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -241,9 +244,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -262,6 +262,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -270,12 +276,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1611,18 +1611,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1"
|
||||
},
|
||||
@@ -1634,6 +1622,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+36
-36
@@ -145,6 +145,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0008_01BFC037.FDD8EE90"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -161,31 +170,22 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0008_01BFC037.FDD8EE90"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -218,9 +218,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -229,6 +226,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -258,15 +258,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -278,6 +269,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1589,15 +1589,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1606,6 +1597,15 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+11
-11
@@ -32,9 +32,6 @@ welche also wohl noch ungl
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
@@ -44,11 +41,8 @@ welche also wohl noch ungl
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -63,6 +57,12 @@ welche also wohl noch ungl
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
@@ -78,9 +78,6 @@ welche also wohl noch ungl
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -89,6 +86,9 @@ welche also wohl noch ungl
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+30
-30
@@ -189,30 +189,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -226,11 +202,35 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0010_01BFC038.B91BC650"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -327,11 +327,11 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "938014623@17052000-0f9b"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "938014623@17052000-0f9b"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1667,6 +1667,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
@@ -1676,9 +1679,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
|
||||
+14
-14
@@ -31,18 +31,6 @@ IiANCg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"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,
|
||||
@@ -56,14 +44,26 @@ IiANCg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+34
-34
@@ -109,12 +109,6 @@ 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"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -127,6 +121,18 @@ 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"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -145,12 +151,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -197,9 +197,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -208,6 +205,9 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1543,15 +1543,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -1560,15 +1551,33 @@ 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
@@ -1580,15 +1589,6 @@ In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+33
-33
@@ -110,19 +110,13 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715429112==_.REL"
|
||||
"boundary": "=====================_715429112==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -139,12 +133,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
@@ -153,6 +141,18 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -169,9 +169,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -180,6 +177,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -189,14 +189,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48eb6.png"
|
||||
}
|
||||
}
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -207,8 +201,14 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2"
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa48eb6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
@@ -1547,12 +1547,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -1562,6 +1556,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1570,6 +1567,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "2aa48ec0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+33
-33
@@ -181,8 +181,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -200,20 +206,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -237,8 +237,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"type": "text/html",
|
||||
"boundary": "=====================_715462801==_.REL"
|
||||
"boundary": "=====================_715462801==_.REL",
|
||||
"type": "text/html"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -248,6 +248,9 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -256,9 +259,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -268,9 +268,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -283,6 +280,9 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -1635,6 +1635,12 @@ 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",
|
||||
@@ -1643,12 +1649,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"filename": "2aa51371.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -4467,15 +4467,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4487,6 +4478,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+26
-26
@@ -85,6 +85,9 @@ Birds of a feather flock together.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -94,11 +97,8 @@ Birds of a feather flock together.
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -119,14 +119,14 @@ Birds of a feather flock together.
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -143,6 +143,9 @@ Birds of a feather flock together.
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -151,9 +154,6 @@ Birds of a feather flock together.
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -163,17 +163,6 @@ Birds of a feather flock together.
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFr�sche.txt",
|
||||
"x-mac-type": "54455854",
|
||||
"x-mac-creator": "74747874"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
@@ -185,10 +174,21 @@ Birds of a feather flock together.
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"x-mac-type": "54455854",
|
||||
"name": "HasenundFr�sche.txt",
|
||||
"x-mac-creator": "74747874"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nbegin 600 HasenundFr�sche.txt\r\nM1&EE($AA<V5N('5N9\"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E\r\nM;B!E:6YS=\"#\\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L\r\nM('-P<F%C:\"!E:6X@4F5D;F5R+\"`B:6X@<W1E=&5R($9U<F-H=\"!V;W(@365N\r\nM<V-H96X@=6YD(%1I97)E;BP@96EN92!\"975T92!D97(@2'5N9&4L(&1E<B!!\r\nM9&QE<BP@:F$@9F%S=\"!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!\r\nM;F=S=\"!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@\r\nM=6YS(&5I;B!F_'(@86QL96UA;\"!S=&5R8F5N+B(@#0H-\"DEN(&5I;F5M(&YA\r\nM:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@\r\nM96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E\r\nM=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@\r\nM96EN92!-96YG92!&<O9S8VAE+\"!D:64@86T@569E<B!S8=]E;BP@<V\\@<V5H\r\nM<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-\r\nM\"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(\")W:7(@\r\nM=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E\r\nM;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+\"!E:6YI\r\nM9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:\"!U;F=L_&-K;&EC:&5R\r\n;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-\"@T*\r\n`\r\nend\r\n\r"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -214,7 +214,7 @@ Birds of a feather flock together.
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+15
-15
@@ -32,21 +32,6 @@ 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"
|
||||
}
|
||||
},
|
||||
"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": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com"
|
||||
},
|
||||
@@ -65,6 +50,21 @@ Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+34
-34
@@ -163,6 +163,30 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKFCHAA.doug@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -175,30 +199,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKFCHAA.doug@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "related",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_000C_01BFC038.5A5C8E60"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -230,9 +230,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -241,6 +238,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -270,8 +270,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f8d"
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -282,8 +282,8 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f8d"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1619,9 +1619,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f94"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1631,6 +1628,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "823504223@17052000-0f94"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
|
||||
+14
-14
@@ -28,11 +28,11 @@ Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "392362D8.B650789F@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
@@ -40,6 +40,15 @@ Slow but steady wins the race.
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -52,15 +61,6 @@ Slow but steady wins the race.
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392362D8.B650789F@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+32
-32
@@ -112,12 +112,21 @@ Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923635B.85C58444@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -145,15 +154,6 @@ Slow but steady wins the race.
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923635B.85C58444@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -175,9 +175,6 @@ Slow but steady wins the race.
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -186,27 +183,18 @@ Slow but steady wins the race.
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\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"
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race."
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -215,6 +203,18 @@ Slow but steady wins the race.
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1550,9 +1550,6 @@ Slow but steady wins the race.
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -1562,6 +1559,9 @@ Slow but steady wins the race.
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -2902,7 +2902,7 @@ Slow but steady wins the race.
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+48
-48
@@ -97,25 +97,10 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from PINE"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-952513540-958744548=:8452"
|
||||
}
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
@@ -131,13 +116,28 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from PINE"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190951410.8452-102000@penguin.example.com"
|
||||
},
|
||||
"to": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-952513540-958744548=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -166,18 +166,27 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "This is a test message from PINE MUA.\r\n\r\n\r"
|
||||
"body": "This is a test message from PINE MUA.\r\n\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
@@ -187,17 +196,8 @@ 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"
|
||||
}
|
||||
}
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1661,20 +1661,14 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -1685,8 +1679,14 @@ Z3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "A PNG graphic file"
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+15
-15
@@ -134,15 +134,12 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -152,8 +149,17 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -170,12 +176,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235EAD.E48E2160@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -245,7 +245,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -34,8 +34,8 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"message_id": {
|
||||
"Text": "392363E1.2AC47AB3@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
@@ -43,18 +43,18 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392363E1.2AC47AB3@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
|
||||
+15
-15
@@ -27,16 +27,10 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "39236497.12FA2A89@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr+APY-sche"
|
||||
},
|
||||
"from": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
@@ -55,10 +49,16 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr+APY-sche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236497.12FA2A89@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -73,9 +73,6 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -84,6 +81,9 @@ welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
"charset": "UTF-7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+43
-43
@@ -213,11 +213,11 @@ YII=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -232,6 +232,18 @@ YII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -241,20 +253,8 @@ YII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235FC5.276CCE00@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -327,9 +327,6 @@ YII=
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -338,15 +335,21 @@ YII=
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39235FC5.E71D8178@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39235FC5.E71D8178@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39235FC5.E71D8178@example.com\" height=27 width=27>\r\n<br> \r\n<br> </html>\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "part1.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -354,9 +357,6 @@ YII=
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part1.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -1703,9 +1703,19 @@ YII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part2.39235FC5.E71D8178@example.com"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -1714,16 +1724,6 @@ YII=
|
||||
"filename": "C:TEMPnsmail39.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -3187,6 +3187,15 @@ YII=
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -3198,15 +3207,6 @@ YII=
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
@@ -27,15 +27,18 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -52,9 +55,6 @@ lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
|
||||
+19
-19
@@ -52,8 +52,20 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------E7889DDF0F75D34163841C59"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392366A7.21929EA7@example.com"
|
||||
@@ -71,14 +83,8 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
@@ -86,14 +92,8 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------E7889DDF0F75D34163841C59"
|
||||
}
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -125,7 +125,7 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": " \r"
|
||||
"body": " "
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
+11
-11
@@ -18,12 +18,18 @@ Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923625B.59F0C3AC@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
@@ -43,14 +49,8 @@ Slow but steady wins the race.
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+35
-35
@@ -172,20 +172,8 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -196,6 +184,12 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39236103.FFE674FC@example.com"
|
||||
},
|
||||
@@ -212,8 +206,14 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -265,15 +265,12 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39236103.1B697A54@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b><font size=+2>Die Hasen und die Frösche</font></b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n\r"
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<img SRC=\"cid:part1.39236103.1B697A54@example.com\" ALT=\"blue ball\" height=27 width=27><b></b>\r\n<p><b><font size=+2>Die Hasen und die Frösche</font></b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<p><img SRC=\"cid:part2.39236103.1B697A54@example.com\" ALT=\"red ball\" height=27 width=27></html>\r\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "part1.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -281,6 +278,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part1.39236103.1B697A54@example.com"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -1627,6 +1627,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1634,9 +1637,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "part2.39236103.1B697A54@example.com"
|
||||
},
|
||||
@@ -3120,9 +3120,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -3131,6 +3128,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -4439,6 +4439,15 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4450,15 +4459,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+12
-12
@@ -29,15 +29,6 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -54,14 +45,23 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
"message_id": {
|
||||
"Text": "39236653.CAA8A090@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+27
-27
@@ -58,6 +58,12 @@ vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -71,21 +77,12 @@ vAAAAABJRU5ErkJggg==
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "PNG graphic"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -95,11 +92,14 @@ vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "PNG graphic"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -126,7 +126,7 @@ vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r"
|
||||
"body": "\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -135,18 +135,12 @@ vAAAAABJRU5ErkJggg==
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "red ball"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
@@ -156,8 +150,14 @@ vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "red ball"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"name": "redball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+28
-28
@@ -59,13 +59,16 @@ Birds of a feather flock together.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "3923686C.99FB5E36@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
@@ -90,16 +93,13 @@ Birds of a feather flock together.
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923686C.99FB5E36@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -130,12 +130,21 @@ Birds of a feather flock together.
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race."
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
@@ -148,19 +157,10 @@ Birds of a feather flock together.
|
||||
"name": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
|
||||
"body": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+25
-25
@@ -62,33 +62,15 @@ als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------9D454F23DA86BCD63FA3805F"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -102,8 +84,26 @@ als wir."
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------9D454F23DA86BCD63FA3805F"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392359CF.DFF4527@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -137,9 +137,6 @@ als wir."
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -148,10 +145,13 @@ als wir."
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
"body": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+29
-29
@@ -138,14 +138,17 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"message_id": {
|
||||
"Text": "39235E1C.1DC7EA90@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -156,9 +159,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "39235E1C.1DC7EA90@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -172,14 +172,14 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -1706,18 +1706,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1726,6 +1714,18 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -3034,6 +3034,9 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -3051,9 +3054,6 @@ eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+27
-27
@@ -43,6 +43,15 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -52,8 +61,8 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
|
||||
},
|
||||
"to": {
|
||||
"AddressList": [
|
||||
@@ -67,11 +76,8 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
}
|
||||
]
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -85,12 +91,6 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -117,22 +117,12 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r"
|
||||
"body": "\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"name": "HasenundFrösche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
@@ -142,14 +132,24 @@ bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFrösche.txt",
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_description": {
|
||||
"Text": "Short story in German"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "BASE64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
@@ -33,6 +33,9 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -46,21 +49,18 @@ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923561C.B7078DEF@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
|
||||
+31
-31
@@ -61,8 +61,29 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"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": "------------CA611088711119FBDB3473B4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "392367BC.3D075C95@example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -80,29 +101,8 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -132,25 +132,25 @@ n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race."
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"name": "HasenundFrösche.txt"
|
||||
"name": "HasenundFrösche.txt",
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
|
||||
+36
-39
@@ -156,6 +156,24 @@ end
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------177483472E7788F4AD46AB1A"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -169,18 +187,6 @@ end
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "3923670C.67D83A99@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
@@ -190,14 +196,8 @@ end
|
||||
"subject": {
|
||||
"Text": "Test message from Netscape Communicator 4.7"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------177483472E7788F4AD46AB1A"
|
||||
}
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "3923670C.67D83A99@example.com"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -235,12 +235,15 @@ end
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
"body": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race."
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -250,9 +253,6 @@ end
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -2331,8 +2331,7 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -4211,23 +4210,13 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -4239,6 +4228,15 @@ end
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "x-uuencode"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "png",
|
||||
"attributes": {
|
||||
"name": "blueball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -6129,8 +6127,7 @@ end
|
||||
110,
|
||||
100,
|
||||
13,
|
||||
10,
|
||||
13
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+15
-15
@@ -132,6 +132,21 @@ end
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKGCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Test message from Microsoft Outlook 00"
|
||||
},
|
||||
@@ -147,21 +162,6 @@ end
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGIEKGCHAA.doug@example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+42
-42
@@ -110,31 +110,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 39,
|
||||
"second": 36,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
@@ -148,11 +123,36 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 39,
|
||||
"second": 36,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -169,6 +169,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -177,9 +180,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -189,6 +189,12 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -198,9 +204,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -209,9 +212,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"filename": "2aa658b6.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -1547,6 +1547,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
@@ -1556,12 +1559,6 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -1570,6 +1567,9 @@ IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
|
||||
"name": "2aa658c0.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+55
-55
@@ -162,6 +162,36 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715515186==_"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -174,36 +204,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_715515186==_"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -258,8 +258,14 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e03a.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -270,14 +276,8 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "2aa5e03a.png"
|
||||
}
|
||||
}
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
@@ -1634,11 +1634,11 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -3102,6 +3102,9 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
@@ -3111,9 +3114,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -4457,6 +4457,15 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
{
|
||||
"Binary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
@@ -4468,15 +4477,6 @@ bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
|
||||
"name": "greenball.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "attachment",
|
||||
"c_subtype": null,
|
||||
"attributes": {
|
||||
"filename": "greenball.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+15
-15
@@ -28,9 +28,24 @@ welche also wohl noch ungl
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -43,21 +58,6 @@ welche also wohl noch ungl
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+12
-12
@@ -33,6 +33,12 @@ als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
@@ -42,12 +48,6 @@ als wir."=20
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2000,
|
||||
@@ -61,11 +61,11 @@ als wir."=20
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Die Hasen und die Frösche (Microsoft Outlook 00)"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -79,6 +79,9 @@ als wir."=20
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -87,9 +90,6 @@ als wir."=20
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
@@ -31,9 +31,6 @@ Content-Type: text/plain
|
||||
{
|
||||
"Multipart": {
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -42,6 +39,9 @@ Content-Type: text/plain
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,9 +33,6 @@ hello, world
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -44,6 +41,9 @@ hello, world
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+38
-38
@@ -26,6 +26,41 @@ invalid
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "1.2.3.4@example"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Another User",
|
||||
"address": "test2@example.org"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Hello world"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Test User",
|
||||
"address": "test@example.org"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2007,
|
||||
@@ -38,41 +73,6 @@ invalid
|
||||
"tz_hour": 3,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"return_path": {
|
||||
"Text": "test@example.org"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Hello world"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Test User",
|
||||
"address": "test@example.org"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Another User",
|
||||
"address": "test2@example.org"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "signed",
|
||||
"attributes": {
|
||||
"boundary": "=-GNQXLhuj24Pl1aCkk4/d",
|
||||
"protocol": "application/pgp-signature",
|
||||
"micalg": "pgp-sha1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "1.2.3.4@example"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -88,15 +88,15 @@ invalid
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+24
-24
@@ -73,18 +73,33 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@nsb.fv.com"
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "A multipart example"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "unique-boundary-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1994,
|
||||
@@ -97,21 +112,6 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
"tz_hour": 7,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "unique-boundary-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -179,15 +179,15 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "audio",
|
||||
"c_subtype": "basic",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": true,
|
||||
@@ -241,6 +241,9 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "(subject in US-ASCII)"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "address in US-ASCII",
|
||||
@@ -252,9 +255,6 @@ Content-Transfer-Encoding: Quoted-printable
|
||||
"name": "mailbox in US-ASCII",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "(subject in US-ASCII)"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+26
-26
@@ -41,23 +41,8 @@ get RFC-MIME.DOC
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "id001@guppylake.bellcore.com"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Someone",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Whomever",
|
||||
"address": null
|
||||
}
|
||||
"message_id": {
|
||||
"Text": "id1@host.com"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -68,11 +53,26 @@ get RFC-MIME.DOC
|
||||
}
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "id1@host.com"
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Someone",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "whatever"
|
||||
},
|
||||
"content_id": {
|
||||
"Text": "id001@guppylake.bellcore.com"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Whomever",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
@@ -91,12 +91,12 @@ get RFC-MIME.DOC
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"mode": "image",
|
||||
"site": "thumper.bellcore.com",
|
||||
"name": "BodyFormats.ps",
|
||||
"access-type": "ANON-FTP",
|
||||
"directory": "pub"
|
||||
"directory": "pub",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"name": "BodyFormats.ps"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -195,8 +195,8 @@ get RFC-MIME.DOC
|
||||
"attributes": {
|
||||
"site": "thumper.bellcore.com",
|
||||
"access-type": "local-file",
|
||||
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -294,8 +294,8 @@ get RFC-MIME.DOC
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"access-type": "mail-server",
|
||||
"server": "listserv@bogus.bitnet",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"server": "listserv@bogus.bitnet"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+44
-44
@@ -85,9 +85,6 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
"address": "transport@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "[Fwd: Map of Argentina with Description]"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -96,6 +93,9 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
"boundary": "D7F------------D7FD5A0B8AB9C65CCDBFA872"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "[Fwd: Map of Argentina with Description]"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -131,12 +131,8 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
{
|
||||
"Message": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
@@ -145,47 +141,23 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "rfc822",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"message_id": {
|
||||
"Text": "199804130742.RAA20366@mai1host.whitehouse.gov"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"received": {
|
||||
"Collection": [
|
||||
{
|
||||
"Text": "from mailhost.whitehouse.gov ([192.168.51.200])\n by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453\n for <vice-president@heartbeat.whitehouse.gov>;\n Mon, 13 Aug 1998 l8:14:23 +1000"
|
||||
},
|
||||
{
|
||||
"Text": "from the_big_box.whitehouse.gov ([192.168.51.50])\n by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366\n for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "A1 Gore (The Enforcer)",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Map of Argentina with Description"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1998,
|
||||
@@ -199,12 +171,40 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "199804130742.RAA20366@mai1host.whitehouse.gov"
|
||||
},
|
||||
"received": {
|
||||
"Collection": [
|
||||
{
|
||||
"Text": "from mailhost.whitehouse.gov ([192.168.51.200])\n by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453\n for <vice-president@heartbeat.whitehouse.gov>;\n Mon, 13 Aug 1998 l8:14:23 +1000"
|
||||
},
|
||||
{
|
||||
"Text": "from the_big_box.whitehouse.gov ([192.168.51.50])\n by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366\n for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
@@ -253,9 +253,6 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
@@ -264,6 +261,9 @@ U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
"name": "map_of_Argentina.gif"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+15
-15
@@ -25,21 +25,6 @@ Content-Type: application/x-whatever
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Formatted text mail"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1993,
|
||||
@@ -53,6 +38,9 @@ Content-Type: application/x-whatever
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Formatted text mail"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
@@ -64,6 +52,18 @@ Content-Type: application/x-whatever
|
||||
"boundary": "boundary42"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+27
-27
@@ -39,30 +39,6 @@ Subject: my different opinion
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Recipient-List",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "---- main boundary ----"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Internet Digest, volume 42"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 1994,
|
||||
@@ -75,6 +51,30 @@ Subject: my different opinion
|
||||
"tz_hour": 0,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "---- main boundary ----"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Internet Digest, volume 42"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Recipient-List",
|
||||
"address": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -215,14 +215,14 @@ Subject: my different opinion
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my different opinion"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else-again",
|
||||
"address": null
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my different opinion"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
+15
-15
@@ -25,16 +25,13 @@ This is the epilogue. It is also to be ignored.
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
"subject": {
|
||||
"Text": "Sample message"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "simple boundary"
|
||||
}
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
@@ -43,8 +40,8 @@ This is the epilogue. It is also to be ignored.
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Sample message"
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
@@ -59,10 +56,13 @@ This is the epilogue. It is also to be ignored.
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "simple boundary"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+22
-22
@@ -23,10 +23,13 @@ Content-Disposition: inline
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"subject": {
|
||||
"Text": "Multipart Email Example"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": null,
|
||||
"address": "sender@example.com"
|
||||
"address": "recipient@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
@@ -38,13 +41,10 @@ Content-Disposition: inline
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Multipart Email Example"
|
||||
},
|
||||
"to": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": null,
|
||||
"address": "recipient@example.com"
|
||||
"address": "sender@example.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -59,8 +59,12 @@ Content-Disposition: inline
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
@@ -71,12 +75,8 @@ Content-Disposition: inline
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": null
|
||||
}
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -86,6 +86,13 @@ Content-Disposition: inline
|
||||
{
|
||||
"Html": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -97,13 +104,6 @@ Content-Disposition: inline
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+14
-14
@@ -109,19 +109,19 @@ K
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -198,19 +198,19 @@ K
|
||||
{
|
||||
"InlineBinary": {
|
||||
"headers_rfc": {
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_disposition": {
|
||||
"ContentType": {
|
||||
"c_type": "inline",
|
||||
"c_subtype": null,
|
||||
"attributes": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
+29
-29
@@ -53,6 +53,9 @@ YWFhYWFhYWFhYWFhYS0tDQo=
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -61,9 +64,6 @@ YWFhYWFhYWFhYWFhYS0tDQo=
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -96,6 +96,27 @@ YWFhYWFhYWFhYWFhYS0tDQo=
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Name",
|
||||
"address": "email@example.com"
|
||||
}
|
||||
},
|
||||
"content_language": {
|
||||
"Text": "en-US"
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "email@example.com",
|
||||
"address": "email@example.com"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "HTML test"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "random-message-id@example.com"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2021,
|
||||
@@ -109,21 +130,6 @@ YWFhYWFhYWFhYWFhYS0tDQo=
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Name",
|
||||
"address": "email@example.com"
|
||||
}
|
||||
},
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "email@example.com",
|
||||
"address": "email@example.com"
|
||||
}
|
||||
},
|
||||
"content_language": {
|
||||
"Text": "en-US"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -133,12 +139,6 @@ YWFhYWFhYWFhYWFhYS0tDQo=
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "HTML test"
|
||||
},
|
||||
"message_id": {
|
||||
"Text": "random-message-id@example.com"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
@@ -154,6 +154,9 @@ YWFhYWFhYWFhYWFhYS0tDQo=
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -163,13 +166,10 @@ YWFhYWFhYWFhYWFhYS0tDQo=
|
||||
"format": "flowed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "This is an *HTML* test message\r"
|
||||
"body": "This is an *HTML* test message"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -189,7 +189,7 @@ YWFhYWFhYWFhYWFhYS0tDQo=
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "<html>\r\n <head>\r\n <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\r\n </head>\r\n <body>\r\n This is an <b>HTML</b> test message\r\n </body>\r\n</html>\r\n\r"
|
||||
"body": "<html>\r\n <head>\r\n <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\r\n </head>\r\n <body>\r\n This is an <b>HTML</b> test message\r\n </body>\r\n</html>\r\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Vendored
+3
-3
@@ -46,15 +46,15 @@ ZWg=
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
Vendored
+5
-5
@@ -25,9 +25,6 @@ hello world
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -36,6 +33,9 @@ hello world
|
||||
"boundary": "bound"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -65,7 +65,7 @@ hello world
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz\r\naWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk\r\nZ2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=\r"
|
||||
"body": "d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz\r\naWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk\r\nZ2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE="
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -98,7 +98,7 @@ hello world
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
"body": "hello world\r\n\r"
|
||||
"body": "hello world\r\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Vendored
+3
-3
@@ -45,6 +45,9 @@ Content-Type: text/plain; charset=utf-8
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -53,9 +56,6 @@ Content-Type: text/plain; charset=utf-8
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "quoted-printable"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
Vendored
+9
-9
@@ -87,6 +87,9 @@ TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -95,9 +98,6 @@ TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -107,9 +107,6 @@ TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -118,6 +115,9 @@ TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "8bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -147,9 +147,6 @@ TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -158,6 +155,9 @@ TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "base64"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
Vendored
+12
-12
@@ -41,6 +41,9 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -49,9 +52,6 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -75,9 +75,6 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "6bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -86,6 +83,9 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "6bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -95,9 +95,6 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bits"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -106,6 +103,9 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7bits"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -135,6 +135,9 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7-bit"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -143,9 +146,6 @@ Move =E2=99=9A to =E2=99=9B's =E2=99=9D
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "7-bit"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
+5
-5
@@ -30,9 +30,6 @@ Signed by undersigned
|
||||
--1--
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "Hide and seek"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -44,6 +41,9 @@ Signed by undersigned
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "Hide and seek"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -65,8 +65,8 @@ Signed by undersigned
|
||||
"c_subtype": "signed",
|
||||
"attributes": {
|
||||
"migalc": "pen+paper",
|
||||
"protocol": "signature/plain",
|
||||
"boundary": "2"
|
||||
"boundary": "2",
|
||||
"protocol": "signature/plain"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+17
-17
@@ -34,6 +34,12 @@ Foobar
|
||||
--1--
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address",
|
||||
"address": "moderator"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -42,12 +48,6 @@ Foobar
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address",
|
||||
"address": "moderator"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [],
|
||||
@@ -72,14 +72,14 @@ Foobar
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "my opinion"
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else",
|
||||
"address": "someone@else"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "my opinion"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -186,9 +186,6 @@ Foobar
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "funny hat"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -203,6 +200,9 @@ Foobar
|
||||
"name": "attachment",
|
||||
"address": "attachment@user"
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "funny hat"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -218,15 +218,15 @@ Foobar
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -241,8 +241,8 @@ Foobar
|
||||
"c_type": "application",
|
||||
"c_subtype": "octet-stream",
|
||||
"attributes": {
|
||||
"disposition": "attachment",
|
||||
"name": "test.txt"
|
||||
"name": "test.txt",
|
||||
"disposition": "attachment"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Vendored
+16
-16
@@ -131,22 +131,6 @@ Root MIME epilogue
|
||||
"is_encoding_problem": false,
|
||||
"body": {
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "submsg"
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2012,
|
||||
"month": 8,
|
||||
"day": 12,
|
||||
"hour": 12,
|
||||
"minute": 34,
|
||||
"second": 56,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 3,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": null,
|
||||
@@ -161,6 +145,22 @@ Root MIME epilogue
|
||||
"boundary": "sub1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"DateTime": {
|
||||
"year": 2012,
|
||||
"month": 8,
|
||||
"day": 12,
|
||||
"hour": 12,
|
||||
"minute": 34,
|
||||
"second": 56,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 3,
|
||||
"tz_minute": 0
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "submsg"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
|
||||
Vendored
+8
-8
@@ -24,9 +24,6 @@ dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
"subject": {
|
||||
"Text": "In parts"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "multipart",
|
||||
@@ -35,6 +32,9 @@ dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "In parts"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -50,15 +50,15 @@ dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
}
|
||||
},
|
||||
"is_encoding_problem": false,
|
||||
@@ -73,9 +73,9 @@ dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
|
||||
"c_type": "message",
|
||||
"c_subtype": "partial",
|
||||
"attributes": {
|
||||
"total": "5",
|
||||
"number": "1",
|
||||
"id": "heks68ewe@example.org",
|
||||
"total": "5"
|
||||
"id": "heks68ewe@example.org"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+6
-6
@@ -12,9 +12,6 @@ Content-Language: ja
|
||||
--1--
|
||||
---- EXPECTED STRUCTURE ----{
|
||||
"headers_rfc": {
|
||||
"subject": {
|
||||
"Text": "こんにちは"
|
||||
},
|
||||
"mime_version": {
|
||||
"Text": "1.0"
|
||||
},
|
||||
@@ -27,6 +24,9 @@ Content-Language: ja
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"subject": {
|
||||
"Text": "こんにちは"
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
@@ -40,6 +40,9 @@ Content-Language: ja
|
||||
{
|
||||
"Text": {
|
||||
"headers_rfc": {
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_type": {
|
||||
"ContentType": {
|
||||
"c_type": "text",
|
||||
@@ -47,9 +50,6 @@ Content-Language: ja
|
||||
"attributes": null
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": {
|
||||
"Text": "binary"
|
||||
},
|
||||
"content_language": {
|
||||
"Text": "ja"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user