mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-28 08:01:24 +00:00
Test suite using Serde.
This commit is contained in:
Generated
+34
@@ -45,6 +45,12 @@ dependencies = [
|
||||
"hashbrown",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "itoa"
|
||||
version = "0.4.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
|
||||
|
||||
[[package]]
|
||||
name = "linked-hash-map"
|
||||
version = "0.5.4"
|
||||
@@ -69,6 +75,12 @@ dependencies = [
|
||||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ryu"
|
||||
version = "1.0.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.130"
|
||||
@@ -78,6 +90,15 @@ dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_bytes"
|
||||
version = "0.11.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "16ae07dd2f88a366f15bd0632ba725227018c69a1c8550a927324f8eb8368bb9"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.130"
|
||||
@@ -89,6 +110,17 @@ dependencies = [
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_json"
|
||||
version = "1.0.68"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0f690853975602e1bfe1ccbf50504d67174e3bcf340f23b5ea9992e0587a52d8"
|
||||
dependencies = [
|
||||
"itoa",
|
||||
"ryu",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_yaml"
|
||||
version = "0.8.21"
|
||||
@@ -107,6 +139,8 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"encoding_rs",
|
||||
"serde",
|
||||
"serde_bytes",
|
||||
"serde_json",
|
||||
"serde_yaml",
|
||||
]
|
||||
|
||||
|
||||
+7
-3
@@ -5,9 +5,13 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
encoding_rs = {version=">=0.8.28", optional=true}
|
||||
serde = { version = "1.0", features = ["derive"], optional=true}
|
||||
serde_yaml = "0.8"
|
||||
serde = { version = ">=1.0.117", features = ["derive"], optional=true}
|
||||
serde_bytes = { version = ">=0.11.5", optional=true}
|
||||
|
||||
[dev-dependencies]
|
||||
serde_yaml = ">=0.8.21"
|
||||
serde_json = ">=1.0.59"
|
||||
|
||||
[features]
|
||||
default = ["multibytedecode", "serde"]
|
||||
default = ["multibytedecode", "serde", "serde_bytes"]
|
||||
multibytedecode = ["encoding_rs"]
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
#### Conformed RFCs
|
||||
-------------
|
||||
- [RFC 822 - Standard for ARPA Internet Text Messages](https://datatracker.ietf.org/doc/html/rfc822)
|
||||
- [RFC 5322 - Internet Message Format](https://datatracker.ietf.org/doc/html/rfc5322)
|
||||
- [RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies](https://datatracker.ietf.org/doc/html/rfc2045)
|
||||
- [RFC 2046 - Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types](https://datatracker.ietf.org/doc/html/rfc2046)
|
||||
- [RFC 2047 - MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text](https://datatracker.ietf.org/doc/html/rfc2047)
|
||||
- [RFC 2048 - Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures](https://datatracker.ietf.org/doc/html/rfc2048)
|
||||
- [RFC 2049 - Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples](https://datatracker.ietf.org/doc/html/rfc2049)
|
||||
- [RFC 2231 - MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations](https://datatracker.ietf.org/doc/html/rfc2231)
|
||||
- [RFC 2183 - Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field](https://datatracker.ietf.org/doc/html/rfc2183)
|
||||
- [RFC 6532 - Internationalized Email Headers](https://datatracker.ietf.org/doc/html/rfc6532)
|
||||
- [RFC 2369 - The Use of URLs as Meta-Syntax for Core Mail List Commands and their Transport through Message Header Fields](https://datatracker.ietf.org/doc/html/rfc2369)
|
||||
- [RFC 2919 - List-Id: A Structured Field and Namespace for the Identification of Mailing Lists](https://datatracker.ietf.org/doc/html/rfc2919)
|
||||
- [RFC 8621 - The JSON Meta Application Protocol (JMAP) for Mail (Section 4.1.4)](https://datatracker.ietf.org/doc/html/rfc8621#section-4.1.4)
|
||||
|
||||
#### TODO
|
||||
--------------
|
||||
- HTML / Test body conversion
|
||||
- UTF-7 support
|
||||
|
||||
@@ -116,9 +116,7 @@ impl<'x> Base64Decoder<'x> for MessageStream<'x> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{
|
||||
parsers::message_stream::MessageStream,
|
||||
};
|
||||
use crate::parsers::message_stream::MessageStream;
|
||||
|
||||
use super::Base64Decoder;
|
||||
|
||||
|
||||
@@ -45,12 +45,16 @@ impl<'x> QuotedPrintableDecoder<'x> for MessageStream<'x> {
|
||||
if ch == *boundary.get_unchecked(match_count) {
|
||||
match_count += 1;
|
||||
if match_count == boundary.len() {
|
||||
success = true;
|
||||
break;
|
||||
if is_word || self.is_boundary_end(read_pos) {
|
||||
success = true;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
} else if match_count > 0 {
|
||||
}
|
||||
|
||||
if match_count > 0 {
|
||||
for ch in boundary[..match_count].iter() {
|
||||
if *ch != b'\n' || QuotedPrintableState::Eq != state {
|
||||
*((*data).get_unchecked_mut(write_pos)) = *ch;
|
||||
@@ -151,10 +155,7 @@ impl<'x> QuotedPrintableDecoder<'x> for MessageStream<'x> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{
|
||||
decoders::{
|
||||
quoted_printable::QuotedPrintableDecoder,
|
||||
},
|
||||
parsers::message_stream::MessageStream,
|
||||
decoders::quoted_printable::QuotedPrintableDecoder, parsers::message_stream::MessageStream,
|
||||
};
|
||||
|
||||
#[test]
|
||||
|
||||
+402
-503
File diff suppressed because it is too large
Load Diff
+653
-106
@@ -417,6 +417,8 @@ pub fn parse_content_type<'x>(stream: &MessageStream<'x>) -> Option<ContentType<
|
||||
b')' if parser.state == ContentState::Comment => {
|
||||
if !parser.is_escaped {
|
||||
parser.state = parser.state_stack.pop().unwrap();
|
||||
parser.token_start = 0;
|
||||
parser.is_token_safe = true;
|
||||
} else {
|
||||
parser.is_escaped = false;
|
||||
}
|
||||
@@ -453,74 +455,179 @@ pub fn parse_content_type<'x>(stream: &MessageStream<'x>) -> Option<ContentType<
|
||||
mod tests {
|
||||
#[test]
|
||||
fn parse_content_fields() {
|
||||
use std::{borrow::Cow, collections::HashMap};
|
||||
|
||||
use crate::parsers::{fields::content_type::ContentType, message_stream::MessageStream};
|
||||
|
||||
|
||||
use super::parse_content_type;
|
||||
|
||||
|
||||
let inputs = [
|
||||
("audio/basic\n", "audio||basic"),
|
||||
("application/postscript \n", "application||postscript"),
|
||||
("image/ jpeg\n", "image||jpeg"),
|
||||
(" message / rfc822\n", "message||rfc822"),
|
||||
("inline\n", "inline"),
|
||||
(
|
||||
"audio/basic\n",
|
||||
concat!("---\n", "c_type: audio\n", "c_subtype: basic\n"),
|
||||
),
|
||||
(
|
||||
"application/postscript \n",
|
||||
concat!("---\n", "c_type: application\n", "c_subtype: postscript\n"),
|
||||
),
|
||||
(
|
||||
"image/ jpeg\n",
|
||||
concat!("---\n", "c_type: image\n", "c_subtype: jpeg\n"),
|
||||
),
|
||||
(
|
||||
" message / rfc822\n",
|
||||
concat!("---\n", "c_type: message\n", "c_subtype: rfc822\n"),
|
||||
),
|
||||
("inline\n", concat!("---\n", "c_type: inline\n")),
|
||||
(
|
||||
" text/plain; charset =us-ascii (Plain text)\n",
|
||||
"text||plain||charset~~us-ascii",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"text/plain; charset= \"us-ascii\"\n",
|
||||
"text||plain||charset~~us-ascii",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"text/plain; charset =ISO-8859-1\n",
|
||||
"text||plain||charset~~ISO-8859-1",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" charset: ISO-8859-1\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"text/foo; charset= bar\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: foo\n",
|
||||
"attributes:\n",
|
||||
" charset: bar\n"
|
||||
),
|
||||
),
|
||||
("text/foo; charset= bar\n", "text||foo||charset~~bar"),
|
||||
(
|
||||
" text /plain; charset=\"iso-8859-1\"; format=flowed\n",
|
||||
"text||plain||charset~~iso-8859-1||format~~flowed",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" charset: iso-8859-1\n",
|
||||
" format: flowed\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/pgp-signature; x-mac-type=70674453;\n name=PGP.sig\n",
|
||||
"application||pgp-signature||x-mac-type~~70674453||name~~PGP.sig",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: pgp-signature\n",
|
||||
"attributes:\n",
|
||||
" name: PGP.sig\n",
|
||||
" x-mac-type: \"70674453\"\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"multipart/mixed; boundary=gc0p4Jq0M2Yt08j34c0p\n",
|
||||
"multipart||mixed||boundary~~gc0p4Jq0M2Yt08j34c0p",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: mixed\n",
|
||||
"attributes:\n",
|
||||
" boundary: gc0p4Jq0M2Yt08j34c0p\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"multipart/mixed; boundary=gc0pJq0M:08jU534c0p\n",
|
||||
"multipart||mixed||boundary~~gc0pJq0M:08jU534c0p",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: mixed\n",
|
||||
"attributes:\n",
|
||||
" boundary: \"gc0pJq0M:08jU534c0p\"\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"multipart/mixed; boundary=\"gc0pJq0M:08jU534c0p\"\n",
|
||||
"multipart||mixed||boundary~~gc0pJq0M:08jU534c0p",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: mixed\n",
|
||||
"attributes:\n",
|
||||
" boundary: \"gc0pJq0M:08jU534c0p\"\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"multipart/mixed; boundary=\"simple boundary\"\n",
|
||||
"multipart||mixed||boundary~~simple boundary",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: mixed\n",
|
||||
"attributes:\n",
|
||||
" boundary: simple boundary\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"multipart/alternative; boundary=boundary42\n",
|
||||
"multipart||alternative||boundary~~boundary42",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: alternative\n",
|
||||
"attributes:\n",
|
||||
" boundary: boundary42\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
" multipart/mixed;\n boundary=\"---- main boundary ----\"\n",
|
||||
"multipart||mixed||boundary~~---- main boundary ----",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: mixed\n",
|
||||
"attributes:\n",
|
||||
" boundary: \"---- main boundary ----\"\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"multipart/alternative; boundary=42\n",
|
||||
"multipart||alternative||boundary~~42",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: alternative\n",
|
||||
"attributes:\n",
|
||||
" boundary: \"42\"\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"message/partial; id=\"ABC@host.com\";\n",
|
||||
"message||partial||id~~ABC@host.com",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: partial\n",
|
||||
"attributes:\n",
|
||||
" id: ABC@host.com\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"multipart/parallel;boundary=unique-boundary-2\n",
|
||||
"multipart||parallel||boundary~~unique-boundary-2",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: parallel\n",
|
||||
"attributes:\n",
|
||||
" boundary: unique-boundary-2\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
@@ -529,9 +636,16 @@ mod tests {
|
||||
"ation=\"Fri, 14 Jun 1991 19:13:14 -0400 (EDT)\"\n"
|
||||
),
|
||||
concat!(
|
||||
"message||external-body||name~~BodyFormats.ps||site~~thumper.bellcore.c",
|
||||
"om||mode~~image||access-type~~ANON-FTP||directory~~pub||expiration~~Fr",
|
||||
"i, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: external-body\n",
|
||||
"attributes:\n",
|
||||
" expiration: \"Fri, 14 Jun 1991 19:13:14 -0400 (EDT)\"\n",
|
||||
" site: thumper.bellcore.com\n",
|
||||
" directory: pub\n",
|
||||
" name: BodyFormats.ps\n",
|
||||
" mode: image\n",
|
||||
" access-type: ANON-FTP\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -541,9 +655,14 @@ mod tests {
|
||||
", 14 Jun 1991 19:13:14 -0400 (EDT)\"\n"
|
||||
),
|
||||
concat!(
|
||||
"message||external-body||access-type~~local-file||expiration~~Fri, 14 J",
|
||||
"un 1991 19:13:14 -0400 (EDT)||name~~/u/nsb/writing/rfcs/RFC-MIME.ps||s",
|
||||
"ite~~thumper.bellcore.com"
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: external-body\n",
|
||||
"attributes:\n",
|
||||
" expiration: \"Fri, 14 Jun 1991 19:13:14 -0400 (EDT)\"\n",
|
||||
" access-type: local-file\n",
|
||||
" name: /u/nsb/writing/rfcs/RFC-MIME.ps\n",
|
||||
" site: thumper.bellcore.com\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -553,8 +672,13 @@ mod tests {
|
||||
"T)\"\n"
|
||||
),
|
||||
concat!(
|
||||
"message||external-body||access-type~~mail-server||server~~listserv@bog",
|
||||
"us.bitnet||expiration~~Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: external-body\n",
|
||||
"attributes:\n",
|
||||
" access-type: mail-server\n",
|
||||
" server: listserv@bogus.bitnet\n",
|
||||
" expiration: \"Fri, 14 Jun 1991 19:13:14 -0400 (EDT)\"\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -563,8 +687,13 @@ mod tests {
|
||||
"llcore.com\"\n"
|
||||
),
|
||||
concat!(
|
||||
"message||partial||number~~2||total~~3||id~~oc=jpbe0M2Yt4s@thumper.bell",
|
||||
"core.com"
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: partial\n",
|
||||
"attributes:\n",
|
||||
" total: \"3\"\n",
|
||||
" number: \"2\"\n",
|
||||
" id: oc=jpbe0M2Yt4s@thumper.bellcore.com\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -573,8 +702,13 @@ mod tests {
|
||||
"\";\n boundary=\"=-J1qXPoyGtE2XNN5N6Z6j\"\n"
|
||||
),
|
||||
concat!(
|
||||
"multipart||signed||protocol~~application/pgp-signature||boundary~~=-J1",
|
||||
"qXPoyGtE2XNN5N6Z6j||micalg~~pgp-sha1"
|
||||
"---\n",
|
||||
"c_type: multipart\n",
|
||||
"c_subtype: signed\n",
|
||||
"attributes:\n",
|
||||
" boundary: \"=-J1qXPoyGtE2XNN5N6Z6j\"\n",
|
||||
" micalg: pgp-sha1\n",
|
||||
" protocol: application/pgp-signature\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -582,7 +716,14 @@ mod tests {
|
||||
"message/external-body;\n access-type=local-file;\n name=\"/u/nsb/M",
|
||||
"e.jpeg\"\n"
|
||||
),
|
||||
concat!("message||external-body||access-type~~local-file||name~~/u/nsb/Me.jpeg"),
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: external-body\n",
|
||||
"attributes:\n",
|
||||
" name: /u/nsb/Me.jpeg\n",
|
||||
" access-type: local-file\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
@@ -590,8 +731,12 @@ mod tests {
|
||||
"\"cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar\"\n"
|
||||
),
|
||||
concat!(
|
||||
"message||external-body||url~~ftp://cs.utk.edu/pub/moore/bulk-mailer/bu",
|
||||
"lk-mailer.tar||access-type~~URL"
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: external-body\n",
|
||||
"attributes:\n",
|
||||
" url: \"ftp://cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar\"\n",
|
||||
" access-type: URL\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -600,8 +745,12 @@ mod tests {
|
||||
"/moore/bulk-mailer/bulk-mailer.tar\"\n"
|
||||
),
|
||||
concat!(
|
||||
"message||external-body||access-type~~URL||url~~ftp://cs.utk.edu/pub/mo",
|
||||
"ore/bulk-mailer/bulk-mailer.tar"
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: external-body\n",
|
||||
"attributes:\n",
|
||||
" url: \"ftp://cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar\"\n",
|
||||
" access-type: URL\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -610,8 +759,13 @@ mod tests {
|
||||
"un%2A%2A%2A\n"
|
||||
),
|
||||
concat!(
|
||||
"application||x-stuff||title-language~~en-us||title~~This is ***fun***|",
|
||||
"|title-charset~~us-ascii"
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: x-stuff\n",
|
||||
"attributes:\n",
|
||||
" title: This is ***fun***\n",
|
||||
" title-charset: us-ascii\n",
|
||||
" title-language: en-us\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -620,8 +774,13 @@ mod tests {
|
||||
"\n title*1*=%2A%2A%2Afun%2A%2A%2A%20\n title*2=\"isn't it!\"\n"
|
||||
),
|
||||
concat!(
|
||||
"application||x-stuff||title~~This is even more ***fun*** isn't it!||ti",
|
||||
"tle-charset~~us-ascii||title-language~~en"
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: x-stuff\n",
|
||||
"attributes:\n",
|
||||
" title-language: en\n",
|
||||
" title-charset: us-ascii\n",
|
||||
" title: \"This is even more ***fun*** isn't it!\"\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -630,8 +789,13 @@ mod tests {
|
||||
"%20r%E1pido\n filename*2=\" (versi%F3n \\'99 \\\"oficial\\\").pdf\"\n"
|
||||
),
|
||||
concat!(
|
||||
"application||pdf||filename~~Ñandú rápido (versión '99 \"oficial\").pdf||",
|
||||
"filename-charset~~iso-8859-1||filename-language~~es"
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: pdf\n",
|
||||
"attributes:\n",
|
||||
" filename: \"Ñandú rápido (versión '99 \\\"oficial\\\").pdf\"\n",
|
||||
" filename-language: es\n",
|
||||
" filename-charset: iso-8859-1\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
@@ -639,104 +803,487 @@ mod tests {
|
||||
" image/png;\n name=\"=?utf-8?q?=E3=83=8F=E3=83=AD=E3=83=BC=E3=83=BB=E3",
|
||||
"=83=AF=E3=83=BC=E3=83=AB=E3=83=89?=.png\"\n"
|
||||
),
|
||||
concat!("image||png||name~~ハロー・ワールド.png"),
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: image\n",
|
||||
"c_subtype: png\n",
|
||||
"attributes:\n",
|
||||
" name: ハロー・ワールド.png\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
" image/gif;\n name==?iso-8859-6?b?5dHNyMcgyMfk2cfk5Q==?=.gif\n",
|
||||
"image||gif||name~~مرحبا بالعالم.gif",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: image\n",
|
||||
"c_subtype: gif\n",
|
||||
"attributes:\n",
|
||||
" name: مرحبا بالعالم.gif\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
"image/jpeg;\n name=\"=?iso-8859-1?B?4Q==?= =?utf-8?B?w6k=?= =?iso-8859",
|
||||
"-1?q?=ED?=.jpeg\"\n"
|
||||
),
|
||||
concat!("image||jpeg||name~~á é í.jpeg"),
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: image\n",
|
||||
"c_subtype: jpeg\n",
|
||||
"attributes:\n",
|
||||
" name: á é í.jpeg\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
"image/jpeg;\n name==?iso-8859-1?B?4Q==?= =?utf-8?B?w6k=?= =?iso-8859-",
|
||||
"1?q?=ED?=.jpeg\n"
|
||||
),
|
||||
concat!("image||jpeg||name~~áéí.jpeg"),
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: image\n",
|
||||
"c_subtype: jpeg\n",
|
||||
"attributes:\n",
|
||||
" name: áéí.jpeg\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"image/gif;\n name==?iso-8859-6?b?5dHNyMcgyMfk2cfk5S5naWY=?=\n",
|
||||
"image||gif||name~~مرحبا بالعالم.gif",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: image\n",
|
||||
"c_subtype: gif\n",
|
||||
"attributes:\n",
|
||||
" name: مرحبا بالعالم.gif\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
" image/gif;\n name=\"=?iso-8859-6?b?5dHNyMcgyMfk2cfk5S5naWY=?=\"\n",
|
||||
"image||gif||name~~مرحبا بالعالم.gif",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: image\n",
|
||||
"c_subtype: gif\n",
|
||||
"attributes:\n",
|
||||
" name: مرحبا بالعالم.gif\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
" inline; filename=\" best \\\"file\\\" ever with \\\\ escaped ' stuff. \"\n",
|
||||
"inline||||filename~~ best \"file\" ever with \\ escaped ' stuff. ",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: inline\n",
|
||||
"attributes:\n",
|
||||
" filename: \" best \\\"file\\\" ever with \\\\ escaped ' stuff. \"\n"
|
||||
),
|
||||
),
|
||||
("test/\n", concat!("---\n", "c_type: test\n")),
|
||||
("/invalid\n", concat!("---\n", "~\n")),
|
||||
("/\n", concat!("---\n", "~\n")),
|
||||
(";\n", concat!("---\n", "~\n")),
|
||||
("/ ; name=value\n", concat!("---\n", "~\n")),
|
||||
(
|
||||
"text/plain;\n",
|
||||
concat!("---\n", "c_type: text\n", "c_subtype: plain\n"),
|
||||
),
|
||||
(
|
||||
"text/plain;;\n",
|
||||
concat!("---\n", "c_type: text\n", "c_subtype: plain\n"),
|
||||
),
|
||||
("test/\n", "test"),
|
||||
("/invalid\n", ""),
|
||||
("/\n", ""),
|
||||
(";\n", ""),
|
||||
("/ ; name=value\n", ""),
|
||||
("text/plain;\n", "text||plain"),
|
||||
("text/plain;;\n", "text||plain"),
|
||||
(
|
||||
"text/plain ;;;;; = ;; name=\"value\"\n",
|
||||
"text||plain||name~~value",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" name: value\n"
|
||||
),
|
||||
),
|
||||
("=\n", concat!("---\n", "c_type: \"=\"\n")),
|
||||
("name=value\n", concat!("---\n", "c_type: name=value\n")),
|
||||
(
|
||||
"text/plain; name= \n",
|
||||
concat!("---\n", "c_type: text\n", "c_subtype: plain\n"),
|
||||
),
|
||||
(
|
||||
"a/b; = \n",
|
||||
concat!("---\n", "c_type: a\n", "c_subtype: b\n"),
|
||||
),
|
||||
(
|
||||
"a/b; = \n \n",
|
||||
concat!("---\n", "c_type: a\n", "c_subtype: b\n"),
|
||||
),
|
||||
(
|
||||
"a/b; =value\n",
|
||||
concat!("---\n", "c_type: a\n", "c_subtype: b\n"),
|
||||
),
|
||||
(
|
||||
"test/test; =\"value\"\n",
|
||||
concat!("---\n", "c_type: test\n", "c_subtype: test\n"),
|
||||
),
|
||||
(
|
||||
"á/é; á=é\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: á\n",
|
||||
"c_subtype: é\n",
|
||||
"attributes:\n",
|
||||
" á: é\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"inva/lid; name=\" \n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: inva\n",
|
||||
"c_subtype: lid\n",
|
||||
"attributes:\n",
|
||||
" name: \" \"\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"inva/lid; name=\" \n \n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: inva\n",
|
||||
"c_subtype: lid\n",
|
||||
"attributes:\n",
|
||||
" name: \" \"\n"
|
||||
),
|
||||
),
|
||||
("=\n", "="),
|
||||
("name=value\n", "name=value"),
|
||||
("text/plain; name= \n", "text||plain"),
|
||||
("a/b; = \n", "a||b"),
|
||||
("a/b; = \n \n", "a||b"),
|
||||
("a/b; =value\n", "a||b"),
|
||||
("test/test; =\"value\"\n", "test||test"),
|
||||
("á/é; á=é\n", "á||é||á~~é"),
|
||||
("inva/lid; name=\" \n", "inva||lid||name~~ "),
|
||||
("inva/lid; name=\" \n \n", "inva||lid||name~~ "),
|
||||
(
|
||||
"inva/lid; name=\" \n \"; test=test\n",
|
||||
"inva||lid||name~~ ||test~~test",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: inva\n",
|
||||
"c_subtype: lid\n",
|
||||
"attributes:\n",
|
||||
" test: test\n",
|
||||
" name: \" \"\n"
|
||||
),
|
||||
),
|
||||
("name=value\n", concat!("---\n", "c_type: name=value\n")),
|
||||
(
|
||||
concat!(
|
||||
"test/encoded; key4*=us-ascii''foo; key*2=ba%; key2*0=a; key3*0*=us-asc",
|
||||
"ii'en'xyz; key*0=\"f\u{0}oo\"; key2*1*=b%25; key3*1=plop%; key*1=baz\n"
|
||||
), //TODO insert in right order
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: test\n",
|
||||
"c_subtype: encoded\n",
|
||||
"attributes:\n",
|
||||
" key3-language: en\n",
|
||||
" key3-charset: us-ascii\n",
|
||||
" key3: xyzplop\n",
|
||||
" key: \"ba%f\\u0000oobaz\"\n",
|
||||
" key4: foo\n",
|
||||
" key2: ab%25\n",
|
||||
" key4-charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(";charset=us-ascii\n", concat!("---\n", "~\n")),
|
||||
(" ;charset=us-ascii\n", concat!("---\n", "~\n")),
|
||||
("/\n", concat!("---\n", "~\n")),
|
||||
("/;charset=us-ascii\n", concat!("---\n", "~\n")),
|
||||
("/ ;charset=us-ascii\n", concat!("---\n", "~\n")),
|
||||
("text/\n", concat!("---\n", "c_type: text\n")),
|
||||
(
|
||||
"text/;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"text/ ;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
("/plain\n", concat!("---\n", "~\n")),
|
||||
("/plain;charset=us-ascii\n", concat!("---\n", "~\n")),
|
||||
("/plain ;charset=us-ascii\n", concat!("---\n", "~\n")),
|
||||
(
|
||||
"text/plain\n",
|
||||
concat!("---\n", "c_type: text\n", "c_subtype: plain\n"),
|
||||
),
|
||||
(
|
||||
"text/plain;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"text/plain ;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"text/plain/format\n",
|
||||
concat!("---\n", "c_type: text\n", "c_subtype: plain/format\n"),
|
||||
),
|
||||
(
|
||||
"text/plain/format;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain/format\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"text/plain/format ;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain/format\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/ld+json\n",
|
||||
concat!("---\n", "c_type: application\n", "c_subtype: ld+json\n"),
|
||||
),
|
||||
(
|
||||
"application/ld+json;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: ld+json\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/ld+json ;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: ld+json\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/x-magic-cap-package-1.0\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: x-magic-cap-package-1.0\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/x-magic-cap-package-1.0;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: x-magic-cap-package-1.0\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/x-magic-cap-package-1.0 ;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: x-magic-cap-package-1.0\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/pro_eng\n",
|
||||
concat!("---\n", "c_type: application\n", "c_subtype: pro_eng\n"),
|
||||
),
|
||||
(
|
||||
"application/pro_eng;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: pro_eng\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/pro_eng ;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: pro_eng\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/wordperfect6.1\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: wordperfect6.1\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/wordperfect6.1;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: wordperfect6.1\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"application/wordperfect6.1 ;charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: wordperfect6.1\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.templat",
|
||||
"e\n"
|
||||
),
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: vnd.openxmlformats-officedocument.wordprocessingml.template\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.templat",
|
||||
"e;charset=us-ascii\n"
|
||||
),
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: vnd.openxmlformats-officedocument.wordprocessingml.template\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
concat!(
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.templat",
|
||||
"e ;charset=us-asii\n"
|
||||
),
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: application\n",
|
||||
"c_subtype: vnd.openxmlformats-officedocument.wordprocessingml.template\n",
|
||||
"attributes:\n",
|
||||
" charset: us-asii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"(hello) text (plain) / (world) plain (eod)\n",
|
||||
concat!("---\n", "c_type: text\n", "c_subtype: plain\n"),
|
||||
),
|
||||
(
|
||||
"(hello) text (plain) / (world) plain (eod);charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"(hello) text (plain) / (world) plain (eod); charset=us-ascii\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: text\n",
|
||||
"c_subtype: plain\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
"message/rfc822\r\n\n",
|
||||
concat!("---\n", "c_type: message\n", "c_subtype: rfc822\n"),
|
||||
),
|
||||
(
|
||||
" \t\r message/rfc822 \t\r\n\n",
|
||||
concat!("---\n", "c_type: message\n", "c_subtype: rfc822\n"),
|
||||
),
|
||||
(
|
||||
" \t\r message/rfc822 \t ;charset=us-ascii\r\n\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: rfc822\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
(
|
||||
" \t\r message/rfc822 \t ; charset=us-ascii\r\n",
|
||||
concat!(
|
||||
"---\n",
|
||||
"c_type: message\n",
|
||||
"c_subtype: rfc822\n",
|
||||
"attributes:\n",
|
||||
" charset: us-ascii\n"
|
||||
),
|
||||
),
|
||||
("name=value\n", "name=value"),
|
||||
];
|
||||
|
||||
for input in inputs {
|
||||
let mut str = input.0.to_string();
|
||||
|
||||
let result = parse_content_type(&MessageStream::new(unsafe { str.as_bytes_mut() }));
|
||||
let expected = if !input.1.is_empty() {
|
||||
let mut c_type: Option<Cow<str>> = None;
|
||||
let mut c_subtype: Option<Cow<str>> = None;
|
||||
let mut attributes: HashMap<Cow<str>, Cow<str>> = HashMap::new();
|
||||
let expected: Option<ContentType> = serde_yaml::from_str(input.1).unwrap_or(None);
|
||||
|
||||
for (count, part) in input.1.split("||").enumerate() {
|
||||
match count {
|
||||
0 => c_type = Some(part.into()),
|
||||
1 => {
|
||||
c_subtype = if part.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(part.into())
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
let attr: Vec<&str> = part.split("~~").collect();
|
||||
attributes.insert(attr[0].into(), attr[1].into());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
c_type.map(|content_type| ContentType {
|
||||
c_type: content_type,
|
||||
c_subtype: c_subtype.take(),
|
||||
attributes: if !attributes.is_empty() {
|
||||
Some(attributes)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
})
|
||||
/*
|
||||
if input.0.len() >= 70 {
|
||||
println!(
|
||||
"(concat!({:?}), concat!({:?})),",
|
||||
input
|
||||
.0
|
||||
.chars()
|
||||
.collect::<Vec<char>>()
|
||||
.chunks(70)
|
||||
.map(|c| c.iter().collect::<String>())
|
||||
.collect::<Vec<String>>(),
|
||||
serde_yaml::to_string(&result)
|
||||
.unwrap_or("".to_string())
|
||||
.split_inclusive("\n")
|
||||
.collect::<Vec<&str>>()
|
||||
);
|
||||
} else {
|
||||
None
|
||||
};
|
||||
println!(
|
||||
"({:?}, concat!({:?})),",
|
||||
input.0,
|
||||
serde_yaml::to_string(&result)
|
||||
.unwrap_or("".to_string())
|
||||
.split_inclusive("\n")
|
||||
.collect::<Vec<&str>>()
|
||||
);
|
||||
}*/
|
||||
|
||||
assert_eq!(result, expected, "Failed for '{:?}'", input.0);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::{
|
||||
decoders::{encoded_word::parse_encoded_word},
|
||||
parsers::message_stream::MessageStream,
|
||||
};
|
||||
use crate::{decoders::encoded_word::parse_encoded_word, parsers::message_stream::MessageStream};
|
||||
|
||||
struct ListParser<'x> {
|
||||
token_start: usize,
|
||||
@@ -51,9 +48,7 @@ fn add_tokens_to_list<'x>(parser: &mut ListParser<'x>) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn parse_comma_separared<'x>(
|
||||
stream: &MessageStream<'x>,
|
||||
) -> Option<Vec<Cow<'x, str>>> {
|
||||
pub fn parse_comma_separared<'x>(stream: &MessageStream<'x>) -> Option<Vec<Cow<'x, str>>> {
|
||||
let mut parser = ListParser {
|
||||
token_start: 0,
|
||||
token_end: 0,
|
||||
@@ -128,9 +123,7 @@ pub fn parse_comma_separared<'x>(
|
||||
}
|
||||
|
||||
mod tests {
|
||||
use crate::{
|
||||
parsers::{fields::list::parse_comma_separared, message_stream::MessageStream},
|
||||
};
|
||||
use crate::parsers::{fields::list::parse_comma_separared, message_stream::MessageStream};
|
||||
|
||||
#[test]
|
||||
fn parse_comma_separated_text() {
|
||||
@@ -183,10 +176,7 @@ mod tests {
|
||||
for input in inputs {
|
||||
let mut str = input.0.to_string();
|
||||
assert_eq!(
|
||||
parse_comma_separared(
|
||||
&MessageStream::new(unsafe { str.as_bytes_mut() }),
|
||||
)
|
||||
.unwrap(),
|
||||
parse_comma_separared(&MessageStream::new(unsafe { str.as_bytes_mut() }),).unwrap(),
|
||||
input.1
|
||||
);
|
||||
}
|
||||
|
||||
+41
-41
@@ -96,10 +96,6 @@ impl<'x> MessageField<'x> for MessageHeader<'x> {
|
||||
append_address_line(&mut self.resent_cc, parse_address(stream));
|
||||
}
|
||||
|
||||
fn set_content_id(&mut self, stream: &MessageStream<'x>) {
|
||||
self.mime.set_content_id(stream);
|
||||
}
|
||||
|
||||
fn set_resent_message_id(&mut self, stream: &MessageStream<'x>) {
|
||||
append_line_many(&mut self.resent_message_id, parse_id(stream));
|
||||
}
|
||||
@@ -152,10 +148,6 @@ impl<'x> MessageField<'x> for MessageHeader<'x> {
|
||||
self.from = parse_address(stream);
|
||||
}
|
||||
|
||||
fn set_content_transfer_encoding(&mut self, stream: &MessageStream<'x>) {
|
||||
self.mime.set_content_transfer_encoding(stream);
|
||||
}
|
||||
|
||||
fn set_return_path(&mut self, stream: &MessageStream<'x>) {
|
||||
append_line_many(&mut self.return_path, parse_id(stream));
|
||||
}
|
||||
@@ -176,10 +168,6 @@ impl<'x> MessageField<'x> for MessageHeader<'x> {
|
||||
self.message_id = parse_id(stream).map(|mut v| v.pop().unwrap());
|
||||
}
|
||||
|
||||
fn set_content_type(&mut self, stream: &MessageStream<'x>) {
|
||||
self.mime.set_content_type(stream);
|
||||
}
|
||||
|
||||
fn set_list_post(&mut self, stream: &MessageStream<'x>) {
|
||||
self.list_post = parse_address(stream);
|
||||
}
|
||||
@@ -188,18 +176,10 @@ impl<'x> MessageField<'x> for MessageHeader<'x> {
|
||||
self.reply_to = parse_address(stream);
|
||||
}
|
||||
|
||||
fn set_content_description(&mut self, stream: &MessageStream<'x>) {
|
||||
self.mime.set_content_description(stream);
|
||||
}
|
||||
|
||||
fn set_resent_from(&mut self, stream: &MessageStream<'x>) {
|
||||
append_address_line(&mut self.resent_from, parse_address(stream));
|
||||
}
|
||||
|
||||
fn set_content_disposition(&mut self, stream: &MessageStream<'x>) {
|
||||
self.mime.set_content_disposition(stream);
|
||||
}
|
||||
|
||||
fn set_list_unsubscribe(&mut self, stream: &MessageStream<'x>) {
|
||||
self.list_unsubscribe = parse_address(stream);
|
||||
}
|
||||
@@ -220,24 +200,44 @@ impl<'x> MessageField<'x> for MessageHeader<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
fn set_content_id(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_id = parse_id(stream).map(|mut v| v.pop().unwrap());
|
||||
}
|
||||
|
||||
fn set_content_transfer_encoding(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_transfer_encoding = parse_unstructured(stream);
|
||||
}
|
||||
|
||||
fn set_content_type(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_type = self::content_type::parse_content_type(stream);
|
||||
}
|
||||
|
||||
fn set_content_description(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_description = parse_unstructured(stream);
|
||||
}
|
||||
|
||||
fn set_content_disposition(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_disposition = self::content_type::parse_content_type(stream);
|
||||
}
|
||||
|
||||
fn get_content_description(&self) -> Option<&Cow<'x, str>> {
|
||||
self.mime.content_description.as_ref()
|
||||
self.content_description.as_ref()
|
||||
}
|
||||
|
||||
fn get_content_disposition(&self) -> Option<&ContentType<'x>> {
|
||||
self.mime.content_disposition.as_ref()
|
||||
self.content_disposition.as_ref()
|
||||
}
|
||||
|
||||
fn get_content_id(&self) -> Option<&Cow<'x, str>> {
|
||||
self.mime.content_id.as_ref()
|
||||
self.content_id.as_ref()
|
||||
}
|
||||
|
||||
fn get_content_transfer_encoding(&self) -> Option<&Cow<'x, str>> {
|
||||
self.mime.content_transfer_encoding.as_ref()
|
||||
self.content_transfer_encoding.as_ref()
|
||||
}
|
||||
|
||||
fn get_content_type(&self) -> Option<&ContentType<'x>> {
|
||||
self.mime.content_type.as_ref()
|
||||
self.content_type.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -270,10 +270,6 @@ impl<'x> MessageField<'x> for MimeHeader<'x> {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
|
||||
fn set_content_id(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_id = parse_id(stream).map(|mut v| v.pop().unwrap());
|
||||
}
|
||||
|
||||
fn set_resent_message_id(&mut self, stream: &MessageStream<'x>) {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
@@ -326,10 +322,6 @@ impl<'x> MessageField<'x> for MimeHeader<'x> {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
|
||||
fn set_content_transfer_encoding(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_transfer_encoding = parse_unstructured(stream);
|
||||
}
|
||||
|
||||
fn set_return_path(&mut self, stream: &MessageStream<'x>) {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
@@ -350,10 +342,6 @@ impl<'x> MessageField<'x> for MimeHeader<'x> {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
|
||||
fn set_content_type(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_type = self::content_type::parse_content_type(stream);
|
||||
}
|
||||
|
||||
fn set_list_post(&mut self, stream: &MessageStream<'x>) {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
@@ -362,10 +350,6 @@ impl<'x> MessageField<'x> for MimeHeader<'x> {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
|
||||
fn set_content_description(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_description = parse_unstructured(stream);
|
||||
}
|
||||
|
||||
fn set_resent_from(&mut self, stream: &MessageStream<'x>) {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
@@ -382,6 +366,22 @@ impl<'x> MessageField<'x> for MimeHeader<'x> {
|
||||
parse_and_ignore(stream);
|
||||
}
|
||||
|
||||
fn set_content_id(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_id = parse_id(stream).map(|mut v| v.pop().unwrap());
|
||||
}
|
||||
|
||||
fn set_content_transfer_encoding(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_transfer_encoding = parse_unstructured(stream);
|
||||
}
|
||||
|
||||
fn set_content_type(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_type = self::content_type::parse_content_type(stream);
|
||||
}
|
||||
|
||||
fn set_content_description(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_description = parse_unstructured(stream);
|
||||
}
|
||||
|
||||
fn set_content_disposition(&mut self, stream: &MessageStream<'x>) {
|
||||
self.content_disposition = self::content_type::parse_content_type(stream);
|
||||
}
|
||||
|
||||
+17
-1
@@ -9,7 +9,6 @@ use super::fields::{
|
||||
|
||||
#[derive(PartialEq, Debug, Default, Serialize, Deserialize)]
|
||||
pub struct MessageHeader<'x> {
|
||||
pub mime: MimeHeader<'x>,
|
||||
#[serde(skip_serializing_if = "Address::is_empty")]
|
||||
#[serde(default)]
|
||||
pub bcc: Address<'x>,
|
||||
@@ -22,6 +21,8 @@ pub struct MessageHeader<'x> {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub date: Option<DateTime>,
|
||||
#[serde(skip_serializing_if = "Address::is_empty")]
|
||||
#[serde(default)]
|
||||
pub from: Address<'x>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
@@ -98,6 +99,21 @@ pub struct MessageHeader<'x> {
|
||||
#[serde(skip_serializing_if = "Address::is_empty")]
|
||||
#[serde(default)]
|
||||
pub to: Address<'x>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub content_description: Option<Cow<'x, str>>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub content_disposition: Option<ContentType<'x>>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub content_id: Option<Cow<'x, str>>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub content_transfer_encoding: Option<Cow<'x, str>>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub content_type: Option<ContentType<'x>>,
|
||||
#[serde(borrow)]
|
||||
#[serde(skip_serializing_if = "HashMap::is_empty")]
|
||||
#[serde(default)]
|
||||
|
||||
+135
-121
@@ -13,7 +13,7 @@ use super::{
|
||||
message_stream::MessageStream,
|
||||
};
|
||||
|
||||
#[derive(Debug, Default, Serialize, Deserialize)]
|
||||
#[derive(Debug, Default, Serialize, Deserialize, PartialEq)]
|
||||
pub struct Message<'x> {
|
||||
#[serde(borrow)]
|
||||
header: MessageHeader<'x>,
|
||||
@@ -27,7 +27,7 @@ pub struct Message<'x> {
|
||||
#[serde(default)]
|
||||
attachments: Vec<MessageAttachment<'x>>,
|
||||
}
|
||||
#[derive(Debug, Default, Serialize, Deserialize)]
|
||||
#[derive(Debug, Default, Serialize, Deserialize, PartialEq)]
|
||||
pub struct TextPart<'x> {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
@@ -35,15 +35,17 @@ pub struct TextPart<'x> {
|
||||
contents: Cow<'x, str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Serialize, Deserialize)]
|
||||
#[derive(Debug, Default, Serialize, Deserialize, PartialEq)]
|
||||
pub struct BinaryPart<'x> {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
header: Option<MimeHeader<'x>>,
|
||||
contents: &'x [u8],
|
||||
#[serde(with = "serde_bytes")]
|
||||
#[serde(borrow)]
|
||||
contents: Cow<'x, [u8]>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug, Serialize, Deserialize, PartialEq)]
|
||||
pub enum MessageAttachment<'x> {
|
||||
Text(Box<TextPart<'x>>),
|
||||
#[serde(borrow)]
|
||||
@@ -180,40 +182,32 @@ impl<'x> Message<'x> {
|
||||
|
||||
// Parse headers
|
||||
if !parse_headers(header, &stream) {
|
||||
// EOF found while parsing headers, abort.
|
||||
debug_assert!(false, "EOF found while parsing header. Aborting.");
|
||||
break;
|
||||
}
|
||||
|
||||
state.parts += 1;
|
||||
|
||||
let (is_multipart, is_inline, is_text, mime_type) =
|
||||
let (is_multipart, mut is_inline, mut is_text, mut mime_type) =
|
||||
get_mime_type(header.get_content_type(), &state.mime_type);
|
||||
|
||||
/*println!(
|
||||
println!(
|
||||
"--- New part {:?} parent {:?} at '{:?}'",
|
||||
mime_type,
|
||||
state.mime_type,
|
||||
stream
|
||||
.get_string(stream.get_pos(), stream.get_pos() + 50, true)
|
||||
.get_string(stream.get_pos(), stream.get_pos() + 20, true)
|
||||
.unwrap_or_else(|| "NOTHING".into())
|
||||
);*/
|
||||
);
|
||||
|
||||
if is_multipart {
|
||||
if let Some(mime_boundary) = header
|
||||
.get_content_type()
|
||||
.map_or_else(|| None, |f| f.get_attribute("boundary"))
|
||||
{
|
||||
//println!("Found boundary '{}'", mime_boundary,);
|
||||
println!("Found boundary '{}'", mime_boundary,);
|
||||
let mime_boundary = ("\n--".to_string() + mime_boundary).into_bytes();
|
||||
|
||||
if stream.seek_bytes(mime_boundary.as_ref()) {
|
||||
/*println!(
|
||||
"Seek to '{:?}'",
|
||||
stream
|
||||
.get_string(stream.get_pos(), stream.get_pos() + 50, true)
|
||||
.unwrap_or_else(|| "NOTHING".into())
|
||||
);*/
|
||||
if stream.seek_next_part(mime_boundary.as_ref()) {
|
||||
let new_state = MessageParserState {
|
||||
in_alternative: state.in_alternative
|
||||
|| mime_type == MimeType::MultipartAlernative,
|
||||
@@ -231,8 +225,8 @@ impl<'x> Message<'x> {
|
||||
stream.skip_crlf();
|
||||
continue;
|
||||
} else {
|
||||
debug_assert!(false, "MIME boundary seek failed. Aborting.");
|
||||
break;
|
||||
mime_type = MimeType::TextOther;
|
||||
is_text = true;
|
||||
}
|
||||
}
|
||||
} else if mime_type == MimeType::Message {
|
||||
@@ -275,7 +269,7 @@ impl<'x> Message<'x> {
|
||||
.map_or_else(|| &[][..], |b| &b[..]),
|
||||
false,
|
||||
),
|
||||
_ => stream.get_bytes_bounded(
|
||||
_ => stream.get_bytes_to_boundary(
|
||||
state
|
||||
.mime_boundary
|
||||
.as_ref()
|
||||
@@ -283,22 +277,39 @@ impl<'x> Message<'x> {
|
||||
),
|
||||
};
|
||||
|
||||
// Attempt to recover contents of an invalid message
|
||||
if !success {
|
||||
//println!("Failed to parse part, reattempting.");
|
||||
if !stream.is_eof() {
|
||||
let (success, r_is_utf8_safe, r_bytes) = stream.get_bytes_bounded(
|
||||
// Get raw MIME part
|
||||
let (success, r_is_utf8_safe, r_bytes) = stream.get_bytes_to_boundary(
|
||||
state
|
||||
.mime_boundary
|
||||
.as_ref()
|
||||
.map_or_else(|| &[][..], |b| &b[..]),
|
||||
);
|
||||
if !success {
|
||||
debug_assert!(false, "Failed to parse encoded part. Aborting.");
|
||||
break;
|
||||
// If there is MIME boundary, ignore it and get raw message
|
||||
if !stream.is_eof() && state.mime_boundary.is_some() {
|
||||
let (_, r_is_utf8_safe, r_bytes) =
|
||||
stream.get_bytes_to_boundary(&[][..]);
|
||||
if r_bytes.is_some() {
|
||||
is_utf8_safe = r_is_utf8_safe;
|
||||
bytes = r_bytes;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
is_utf8_safe = r_is_utf8_safe;
|
||||
bytes = r_bytes;
|
||||
}
|
||||
is_utf8_safe = r_is_utf8_safe;
|
||||
bytes = r_bytes;
|
||||
} else {
|
||||
debug_assert!(false, "Failed to parse encoded part. Aborting.");
|
||||
mime_type = MimeType::TextOther;
|
||||
is_inline = false;
|
||||
is_text = true;
|
||||
} else if bytes.is_none() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -335,7 +346,7 @@ impl<'x> Message<'x> {
|
||||
};
|
||||
|
||||
let contents = bytes_to_string(
|
||||
bytes.map_or_else(|| "?".as_bytes(), |v| v),
|
||||
bytes.map_or_else(|| "\n".as_bytes(), |v| v),
|
||||
header.get_content_type(),
|
||||
is_utf8_safe,
|
||||
);
|
||||
@@ -372,7 +383,7 @@ impl<'x> Message<'x> {
|
||||
} else {
|
||||
None
|
||||
},
|
||||
contents: bytes.map_or_else(|| "?".as_bytes(), |v| v),
|
||||
contents: bytes.map_or_else(|| "?".as_bytes(), |v| v).into(),
|
||||
})));
|
||||
};
|
||||
|
||||
@@ -397,16 +408,8 @@ impl<'x> Message<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
if stream.skip_bytes("--".as_bytes()) {
|
||||
if stream.skip_multipart_end() {
|
||||
// End of MIME part reached
|
||||
/*println!(
|
||||
"Mime part end '{:?}--' next '{:?}'",
|
||||
std::str::from_utf8(state.mime_boundary.as_ref().unwrap().as_ref())
|
||||
.unwrap(),
|
||||
stream
|
||||
.get_string(stream.get_pos(), stream.get_pos() + 10, true)
|
||||
.unwrap_or_else(|| "NOTHING".into())
|
||||
);*/
|
||||
|
||||
if MimeType::MultipartAlernative == state.mime_type
|
||||
&& state.need_html_body
|
||||
@@ -419,7 +422,7 @@ impl<'x> Message<'x> {
|
||||
for part in message.html_body[state.html_parts..].iter() {
|
||||
message.text_body.push(TextPart {
|
||||
header: None,
|
||||
contents: part.contents.clone(), //Todo make plain text
|
||||
contents: part.contents.clone(), //TODO make plain text
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -443,32 +446,32 @@ impl<'x> Message<'x> {
|
||||
|
||||
if let Some(ref mime_boundary) = state.mime_boundary {
|
||||
// Ancestor has a MIME boundary, seek it.
|
||||
if stream.seek_bytes(mime_boundary) {
|
||||
// Boundary not found, probably a corrupted message, abort.
|
||||
/*println!(
|
||||
if stream.seek_next_part(mime_boundary) {
|
||||
|
||||
println!(
|
||||
"Found ancestor MIME boundary '{:?}'",
|
||||
std::str::from_utf8(mime_boundary).unwrap()
|
||||
);*/
|
||||
);
|
||||
|
||||
continue 'inner;
|
||||
} /*else {
|
||||
println!(
|
||||
"Boundary '{:?} not found.",
|
||||
std::str::from_utf8(mime_boundary).unwrap()
|
||||
);
|
||||
}*/
|
||||
} /*else {
|
||||
// Ancestor does not have a MIME boundary, end parsing.
|
||||
println!("Ancestor has no MIME boundary, parent found?");
|
||||
} */
|
||||
} /*else {
|
||||
// No more ancestors found, finish parsing.
|
||||
println!("Finish parsing, no ancestors found.");
|
||||
} */
|
||||
} else {
|
||||
println!(
|
||||
"Boundary '{:?} not found.",
|
||||
std::str::from_utf8(mime_boundary).unwrap()
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// Ancestor does not have a MIME boundary, end parsing.
|
||||
println!("Ancestor has no MIME boundary, parent found?");
|
||||
}
|
||||
} else {
|
||||
// No more ancestors found, finish parsing.
|
||||
println!("Finish parsing, no ancestors found.");
|
||||
}
|
||||
break 'outer;
|
||||
} else {
|
||||
stream.skip_crlf();
|
||||
// Headers of next part expected next, break inner look.
|
||||
//println!("Expecting headers of next part.");
|
||||
break 'inner;
|
||||
}
|
||||
}
|
||||
@@ -486,72 +489,83 @@ mod tests {
|
||||
|
||||
use crate::parsers::message::Message;
|
||||
|
||||
/*#[test]
|
||||
fn body_parse() {
|
||||
let mut samples_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
samples_dir.push("test/dovecot");
|
||||
let mut got_sign = false;
|
||||
let mut count = 0;
|
||||
|
||||
for path in fs::read_dir(samples_dir.to_str().unwrap()).unwrap() {
|
||||
let mut path = path.unwrap().path();
|
||||
if path.as_path().to_str().unwrap().contains(".yaml") {
|
||||
continue;
|
||||
}
|
||||
//if !path.as_path().to_str().unwrap().contains("m576") {
|
||||
// continue;
|
||||
//}
|
||||
println!("Parsing {}", path.to_str().unwrap());
|
||||
let mut input = fs::read(path.as_path()).unwrap();
|
||||
if String::from_utf8_lossy(&input).contains("application/pgp-signature") {
|
||||
if !got_sign {
|
||||
got_sign = true;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
let input2 = input.clone();
|
||||
|
||||
let message = Message::parse(&mut input);
|
||||
|
||||
if message.text_body.len() + message.html_body.len() + message.attachments.len() > 1 {
|
||||
fs::write(
|
||||
format!("/vagrant/Code/stalwart/test/final/list_{:03}.eml", count),
|
||||
&input2,
|
||||
)
|
||||
.unwrap();
|
||||
//assert!(path.set_extension("yaml"));
|
||||
fs::write(
|
||||
format!("/vagrant/Code/stalwart/test/final/list_{:03}.yaml", count),
|
||||
serde_yaml::to_string(&message).unwrap(),
|
||||
)
|
||||
.unwrap();
|
||||
//fs::write(path, serde_yaml::to_string(&message).unwrap()).unwrap();
|
||||
count += 1;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
#[test]
|
||||
fn body_parse() {
|
||||
let mut samples_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
samples_dir.push("test/messages");
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----\n".as_bytes();
|
||||
|
||||
for path in fs::read_dir(samples_dir.to_str().unwrap()).unwrap() {
|
||||
let mut path = path.unwrap().path();
|
||||
if path.as_path().to_str().unwrap().contains(".yaml") {
|
||||
continue;
|
||||
for test_suite in ["rfc", "legacy", "malformed"] {
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
test_dir.push("tests");
|
||||
test_dir.push(test_suite);
|
||||
|
||||
for file_name in fs::read_dir(test_dir).unwrap() {
|
||||
let mut input = fs::read(file_name.as_ref().unwrap().path()).unwrap();
|
||||
let mut pos = 0;
|
||||
for sep_pos in 0..input.len() {
|
||||
if input[sep_pos..sep_pos + SEPARATOR.len()].eq(SEPARATOR) {
|
||||
pos = sep_pos;
|
||||
break;
|
||||
}
|
||||
}
|
||||
assert!(pos > 0, "Failed to find separator.");
|
||||
let input = input.split_at_mut(pos);
|
||||
assert_eq!(
|
||||
Message::parse(input.0),
|
||||
serde_json::from_slice::<Message>(&input.1[SEPARATOR.len()..]).unwrap(),
|
||||
"Test failed for {}",
|
||||
file_name.unwrap().path().display()
|
||||
);
|
||||
}
|
||||
//if !path.as_path().to_str().unwrap().contains("m576") {
|
||||
// continue;
|
||||
//}
|
||||
println!("Parsing {}", path.to_str().unwrap());
|
||||
let mut input = fs::read(path.as_path()).unwrap();
|
||||
let message = Message::parse(&mut input);
|
||||
}
|
||||
}
|
||||
|
||||
assert!(path.set_extension("yaml"));
|
||||
fs::write(path, serde_yaml::to_string(&message).unwrap()).unwrap();
|
||||
#[test]
|
||||
fn generate_test_samples() {
|
||||
const SEPARATOR: &[u8] = "\n---- EXPECTED STRUCTURE ----\n".as_bytes();
|
||||
|
||||
for test_suite in ["rfc" /*"legacy","malformed"*/] {
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
test_dir.push("tests");
|
||||
test_dir.push(test_suite);
|
||||
|
||||
for file_name in fs::read_dir(test_dir).unwrap() {
|
||||
if !file_name
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.path()
|
||||
.to_str()
|
||||
.unwrap()
|
||||
.contains("007")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
let mut input = fs::read(file_name.as_ref().unwrap().path()).unwrap();
|
||||
let mut pos = 0;
|
||||
for sep_pos in 0..input.len() {
|
||||
if input[sep_pos..sep_pos + SEPARATOR.len()].eq(SEPARATOR) {
|
||||
pos = sep_pos;
|
||||
break;
|
||||
}
|
||||
}
|
||||
assert!(pos > 0, "Failed to find separator.");
|
||||
let input = input.split_at_mut(pos);
|
||||
|
||||
println!(
|
||||
"{}",
|
||||
serde_yaml::to_string(&Message::parse(input.0)).unwrap()
|
||||
);
|
||||
|
||||
/*let mut output = Vec::new();
|
||||
output.extend_from_slice(input.0);
|
||||
output.extend_from_slice(SEPARATOR);
|
||||
output.extend_from_slice(
|
||||
serde_json::to_string_pretty(&Message::parse(input.0))
|
||||
.unwrap_or_else(|_| "".to_string())
|
||||
.as_bytes(),
|
||||
);
|
||||
fs::write(file_name.as_ref().unwrap().path(), &output).unwrap();*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,8 +85,8 @@ impl<'x> MessageStream<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn seek_bytes(&self, bytes: &[u8]) -> bool {
|
||||
if !bytes.is_empty() {
|
||||
pub fn seek_next_part(&self, boundary: &[u8]) -> bool {
|
||||
if !boundary.is_empty() {
|
||||
unsafe {
|
||||
let cur_pos = &mut *self.pos.get();
|
||||
let data = &mut *self.data.get();
|
||||
@@ -96,16 +96,16 @@ impl<'x> MessageStream<'x> {
|
||||
for ch in (*data)[*cur_pos..].iter() {
|
||||
pos += 1;
|
||||
|
||||
if ch == bytes.get_unchecked(match_count) {
|
||||
if ch == boundary.get_unchecked(match_count) {
|
||||
match_count += 1;
|
||||
if match_count == bytes.len() {
|
||||
if match_count == boundary.len() {
|
||||
*cur_pos = pos;
|
||||
return true;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
} else if match_count > 0 {
|
||||
if ch == bytes.get_unchecked(0) {
|
||||
if ch == boundary.get_unchecked(0) {
|
||||
match_count = 1;
|
||||
continue;
|
||||
} else {
|
||||
@@ -119,7 +119,7 @@ impl<'x> MessageStream<'x> {
|
||||
false
|
||||
}
|
||||
|
||||
pub fn get_bytes_bounded(&self, boundary: &[u8]) -> (bool, bool, Option<&'x [u8]>) {
|
||||
pub fn get_bytes_to_boundary(&self, boundary: &[u8]) -> (bool, bool, Option<&'x [u8]>) {
|
||||
unsafe {
|
||||
let data = &mut *self.data.get();
|
||||
|
||||
@@ -141,20 +141,24 @@ impl<'x> MessageStream<'x> {
|
||||
if ch == boundary.get_unchecked(match_count) {
|
||||
match_count += 1;
|
||||
if match_count == boundary.len() {
|
||||
let match_pos = pos - match_count;
|
||||
*stream_pos = pos;
|
||||
return (
|
||||
true,
|
||||
is_utf8_safe,
|
||||
if start_pos < match_pos {
|
||||
(*data).get(start_pos..match_pos)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
);
|
||||
} else {
|
||||
continue;
|
||||
if self.is_boundary_end(pos) {
|
||||
let match_pos = pos - match_count;
|
||||
*stream_pos = pos;
|
||||
println!("Got '{:?}'", std::str::from_utf8((*data).get(start_pos..match_pos).unwrap()).unwrap());
|
||||
return (
|
||||
true,
|
||||
is_utf8_safe,
|
||||
if start_pos < match_pos {
|
||||
(*data).get(start_pos..match_pos)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
);
|
||||
} else {
|
||||
match_count = 0;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
} else if match_count > 0 {
|
||||
if ch == boundary.get_unchecked(0) {
|
||||
match_count = 1;
|
||||
@@ -175,6 +179,7 @@ impl<'x> MessageStream<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn skip_crlf(&self) {
|
||||
unsafe {
|
||||
let cur_pos = &mut *self.pos.get();
|
||||
@@ -183,7 +188,7 @@ impl<'x> MessageStream<'x> {
|
||||
|
||||
for ch in (*data)[*cur_pos..].iter() {
|
||||
match ch {
|
||||
b'\r' => pos += 1,
|
||||
b'\r' | b' ' | b'\t' => pos += 1,
|
||||
b'\n' => {
|
||||
*cur_pos = pos + 1;
|
||||
break;
|
||||
@@ -194,12 +199,13 @@ impl<'x> MessageStream<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn skip_byte(&self, ch: &u8) -> bool {
|
||||
unsafe {
|
||||
let pos = &mut *self.pos.get();
|
||||
let data = &mut *self.data.get();
|
||||
|
||||
if *pos < (*data).len() && (*data).get_unchecked(*pos) == ch {
|
||||
if (*data).get(*pos) == Some(ch) {
|
||||
*pos += 1;
|
||||
true
|
||||
} else {
|
||||
@@ -208,17 +214,41 @@ impl<'x> MessageStream<'x> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn skip_bytes(&self, chs: &[u8]) -> bool {
|
||||
#[inline(always)]
|
||||
pub fn is_boundary_end(&self, pos: usize) -> bool {
|
||||
unsafe {
|
||||
let data = &mut *self.data.get();
|
||||
match (*data).get(pos) {
|
||||
Some(b'\n') => true,
|
||||
Some(b'-') if (*data).get(pos + 1) == Some(&b'-') => true,
|
||||
Some(b'\r') if (*data).get(pos + 1) == Some(&b'\n') => true,
|
||||
Some(b' ') | Some(b'\t') => true,
|
||||
None => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn skip_multipart_end(&self) -> bool {
|
||||
unsafe {
|
||||
let pos = &mut *self.pos.get();
|
||||
let data = &mut *self.data.get();
|
||||
let to = *pos + chs.len();
|
||||
|
||||
match (*data).get(*pos..to) {
|
||||
Some(bytes) if bytes == chs => {
|
||||
*pos = to;
|
||||
true
|
||||
}
|
||||
match (*self.data.get()).get(*pos..*pos + 2) {
|
||||
Some(b"--") => match (*self.data.get()).get(*pos + 2) {
|
||||
Some(b'\n') => {
|
||||
*pos += 3;
|
||||
true
|
||||
}
|
||||
Some(b'\r') if (*self.data.get()).get(*pos + 3) == Some(&b'\n') => {
|
||||
*pos += 4;
|
||||
true
|
||||
}
|
||||
None | Some(b' ') | Some(b'\t') => {
|
||||
*pos += 2;
|
||||
true
|
||||
}
|
||||
_ => false,
|
||||
},
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
function isInlineMediaType(type) {
|
||||
return type.startsWith('image/') ||
|
||||
type.startsWith('audio/') ||
|
||||
type.startsWith('video/');
|
||||
}
|
||||
|
||||
function parseStructure(parts, multipartType, inAlternative,
|
||||
htmlBody, textBody, attachments) {
|
||||
|
||||
// For multipartType == alternative
|
||||
let textLength = textBody ? textBody.length : -1;
|
||||
let htmlLength = htmlBody ? htmlBody.length : -1;
|
||||
|
||||
for (let i = 0; i < parts.length; i += 1) {
|
||||
let part = parts[i];
|
||||
let isMultipart = part.type.startsWith('multipart/');
|
||||
// Is this a body part rather than an attachment
|
||||
let isInline = part.disposition != "attachment" &&
|
||||
// Must be one of the allowed body types
|
||||
(part.type == "text/plain" ||
|
||||
part.type == "text/html" ||
|
||||
isInlineMediaType(part.type)) &&
|
||||
// If multipart/related, only the first part can be inline
|
||||
// If a text part with a filename, and not the first item
|
||||
// in the multipart, assume it is an attachment
|
||||
(i === 0 ||
|
||||
(multipartType != "related" &&
|
||||
(isInlineMediaType(part.type) || !part.name)));
|
||||
|
||||
if (isMultipart) {
|
||||
let subMultiType = part.type.split('/')[1];
|
||||
parseStructure(part.subParts, subMultiType,
|
||||
inAlternative || (subMultiType == 'alternative'),
|
||||
htmlBody, textBody, attachments);
|
||||
} else if (isInline) {
|
||||
if (multipartType == 'alternative') {
|
||||
switch (part.type) {
|
||||
case 'text/plain':
|
||||
textBody.push(part);
|
||||
break;
|
||||
case 'text/html':
|
||||
htmlBody.push(part);
|
||||
break;
|
||||
default:
|
||||
attachments.push(part);
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
} else if (inAlternative) {
|
||||
if (part.type == 'text/plain') {
|
||||
htmlBody = null;
|
||||
}
|
||||
if (part.type == 'text/html') {
|
||||
textBody = null;
|
||||
}
|
||||
}
|
||||
if (textBody) {
|
||||
textBody.push(part);
|
||||
}
|
||||
if (htmlBody) {
|
||||
htmlBody.push(part);
|
||||
}
|
||||
if ((!textBody || !htmlBody) &&
|
||||
isInlineMediaType(part.type)) {
|
||||
attachments.push(part);
|
||||
}
|
||||
} else {
|
||||
attachments.push(part);
|
||||
}
|
||||
}
|
||||
|
||||
if (multipartType == 'alternative' && textBody && htmlBody) {
|
||||
// Found HTML part only
|
||||
if (textLength == textBody.length &&
|
||||
htmlLength != htmlBody.length) {
|
||||
for (let i = htmlLength; i < htmlBody.length; i += 1) {
|
||||
textBody.push(htmlBody[i]);
|
||||
}
|
||||
}
|
||||
// Found plaintext part only
|
||||
if (htmlLength == htmlBody.length &&
|
||||
textLength != textBody.length) {
|
||||
for (let i = textLength; i < textBody.length; i += 1) {
|
||||
htmlBody.push(textBody[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,102 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: "Joe Blow" <jblow@example.com>,
|
||||
=?utf-7?B?SitBUHctcmdlbiBTY2htK0FQdy1yZ2Vu?= <schmuergen@example.com>
|
||||
Subject: =?utf-7?Q?Die_Hasen_und_die_Fr+APY-sche_=28Microsoft_Outlook_00=29?=
|
||||
Date: Wed, 17 May 2000 19:18:39 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="utf-7"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Fr+APY-sche
|
||||
|
||||
Die Hasen klagten einst +APw-ber ihre mi+AN8-liche Lage+ADs- +ACI-wir =
|
||||
leben+ACI-, sprach ein Redner, +ACI-in steter Furcht vor Menschen und =
|
||||
Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere+ACE- =
|
||||
Unsere stete Angst ist +AOQ-rger als der Tod selbst. Auf, la+AN8-t uns =
|
||||
ein f+APw-r allemal sterben.+ACI-=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers+AOQ-ufen+ADs- sie eilten =
|
||||
ihm zu+ADs- allein das au+AN8-erordentliche Get+APY-se und ihre =
|
||||
wunderbare Gestalt erschreckte eine Menge Fr+APY-sche, die am Ufer =
|
||||
sa+AN8-en, so sehr, da+AN8- sie aufs schnellste untertauchten.=20
|
||||
|
||||
+ACI-Halt+ACI-, rief nun eben dieser Sprecher, +ACI-wir wollen das =
|
||||
Ers+AOQ-ufen noch ein wenig aufschieben, denn auch uns f+APw-rchten, wie =
|
||||
ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein =
|
||||
m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 18,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Fr+APY-sche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
},
|
||||
{
|
||||
"name": "J+APw-rgen Schm+APw-rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr+APY-sche\n\nDie Hasen klagten einst +APw-ber ihre mi+AN8-liche Lage+ADs- +ACI-wir leben+ACI-, sprach ein Redner, +ACI-in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere+ACE- Unsere stete Angst ist +AOQ-rger als der Tod selbst. Auf, la+AN8-t uns ein f+APw-r allemal sterben.+ACI- \n\nIn einem nahen Teich wollten sie sich nun ers+AOQ-ufen+ADs- sie eilten ihm zu+ADs- allein das au+AN8-erordentliche Get+APY-se und ihre wunderbare Gestalt erschreckte eine Menge Fr+APY-sche, die am Ufer sa+AN8-en, so sehr, da+AN8- sie aufs schnellste untertauchten. \n\n+ACI-Halt+ACI-, rief nun eben dieser Sprecher, +ACI-wir wollen das Ers+AOQ-ufen noch ein wenig aufschieben, denn auch uns f+APw-rchten, wie ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein m+APw-ssen als wir.+ACI- \n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
Message-Id: <4.2.0.58.20000519003052.00a89c40@pop.example.com>
|
||||
X-Sender: dwsauder@pop.example.com (Unverified)
|
||||
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
|
||||
X-Priority: 2 (High)
|
||||
Date: Fri, 19 May 2000 00:31:00 -0400
|
||||
To: Heinz =?iso-8859-1?Q?M=FCller?= <mueller@example.com>
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/html; charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
<html>
|
||||
<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
|
||||
die
|
||||
Fr=F6sche<br>
|
||||
<br>
|
||||
</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
|
||||
ihre mi=DFliche Lage; "wir leben", sprach ein Redner, "in
|
||||
steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
|
||||
ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
|
||||
Auf, la=DFt uns ein f=FCr allemal sterben." <br>
|
||||
<br>
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
|
||||
fs
|
||||
schnellste untertauchten. <br>
|
||||
<br>
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das
|
||||
Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
|
||||
seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
|
||||
wir." <br>
|
||||
<br>
|
||||
</font></html>
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 31,
|
||||
"second": 0,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "4.2.0.58.20000519003052.00a89c40@pop.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Mailer": [
|
||||
"QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
],
|
||||
"X-Priority": [
|
||||
"2 (High)"
|
||||
],
|
||||
"X-Sender": [
|
||||
"dwsauder@pop.example.com (Unverified)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
Message-Id: <4.2.0.58.20000519002557.00a88870@pop.example.com>
|
||||
X-Sender: dwsauder@pop.example.com (Unverified)
|
||||
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
|
||||
X-Priority: 2 (High)
|
||||
Date: Fri, 19 May 2000 00:29:55 -0400
|
||||
To: Heinz =?iso-8859-1?Q?M=FCller?= <mueller@example.com>
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
|
||||
Mime-Version: 1.0
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="=====================_714967308==_.ALT"
|
||||
|
||||
--=====================_714967308==_.ALT
|
||||
Content-Type: text/plain; charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
|
||||
Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
|
||||
aufs schnellste untertauchten.=20
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
--=====================_714967308==_.ALT
|
||||
Content-Type: text/html; charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
<html>
|
||||
<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
|
||||
die
|
||||
Fr=F6sche<br>
|
||||
<br>
|
||||
</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
|
||||
ihre mi=DFliche Lage; "wir leben", sprach ein Redner, "in
|
||||
steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
|
||||
ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
|
||||
Auf, la=DFt uns ein f=FCr allemal sterben." <br>
|
||||
<br>
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
|
||||
fs
|
||||
schnellste untertauchten. <br>
|
||||
<br>
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das
|
||||
Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
|
||||
seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
|
||||
wir." <br>
|
||||
<br>
|
||||
</font></html>
|
||||
|
||||
--=====================_714967308==_.ALT--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 29,
|
||||
"second": 55,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "4.2.0.58.20000519002557.00a88870@pop.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "=====================_714967308==_.ALT"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Sender": [
|
||||
"dwsauder@pop.example.com (Unverified)"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
],
|
||||
"X-Priority": [
|
||||
"2 (High)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<html>\n<font face=\"Arial, Helvetica\" size=5 color=\"#0000FF\"><b>Die Hasen und die\nFrösche<br>\n<br>\n</font></b><font face=\"Arial, Helvetica\">Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben." <br>\n<br>\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten. <br>\n<br>\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir." <br>\n<br>\n</font></html>\n"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
Message-Id: <4.2.0.58.20000519011207.00a8cd70@pop.example.com>
|
||||
X-Sender: dwsauder@pop.example.com (Unverified)
|
||||
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
|
||||
X-Priority: 5 (Lowest)
|
||||
Date: Fri, 19 May 2000 01:13:19 -0400
|
||||
To: Joe Blow <blow@example.com>
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
Subject: The Hare and the Tortoise
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/plain; charset="us-ascii"
|
||||
|
||||
|
||||
The Hare and the Tortoise
|
||||
|
||||
A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: "Though you be swift as the wind, I will beat you in a race." The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue.
|
||||
|
||||
Slow but steady wins the race.
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 13,
|
||||
"second": 19,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "4.2.0.58.20000519011207.00a8cd70@pop.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "The Hare and the Tortoise",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Mailer": [
|
||||
"QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
],
|
||||
"X-Sender": [
|
||||
"dwsauder@pop.example.com (Unverified)"
|
||||
],
|
||||
"X-Priority": [
|
||||
"5 (Lowest)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: =?utf-7?Q?Heinz_M+APw-ller?= <mueller@example.com>
|
||||
Subject: =?utf-7?Q?Die_Hasen_und_die_Fr+APY-sche_=28Microsoft_Outlook_00=29?=
|
||||
Date: Wed, 17 May 2000 19:20:24 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="utf-7"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Fr+APY-sche
|
||||
|
||||
Die Hasen klagten einst +APw-ber ihre mi+AN8-liche Lage+ADs- +ACI-wir =
|
||||
leben+ACI-, sprach ein Redner, +ACI-in steter Furcht vor Menschen und =
|
||||
Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere+ACE- =
|
||||
Unsere stete Angst ist +AOQ-rger als der Tod selbst. Auf, la+AN8-t uns =
|
||||
ein f+APw-r allemal sterben.+ACI-=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers+AOQ-ufen+ADs- sie eilten =
|
||||
ihm zu+ADs- allein das au+AN8-erordentliche Get+APY-se und ihre =
|
||||
wunderbare Gestalt erschreckte eine Menge Fr+APY-sche, die am Ufer =
|
||||
sa+AN8-en, so sehr, da+AN8- sie aufs schnellste untertauchten.=20
|
||||
|
||||
+ACI-Halt+ACI-, rief nun eben dieser Sprecher, +ACI-wir wollen das =
|
||||
Ers+AOQ-ufen noch ein wenig aufschieben, denn auch uns f+APw-rchten, wie =
|
||||
ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein =
|
||||
m+APw-ssen als wir.+ACI-=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 20,
|
||||
"second": 24,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Fr+APY-sche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-7"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr+APY-sche\n\nDie Hasen klagten einst +APw-ber ihre mi+AN8-liche Lage+ADs- +ACI-wir leben+ACI-, sprach ein Redner, +ACI-in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere+ACE- Unsere stete Angst ist +AOQ-rger als der Tod selbst. Auf, la+AN8-t uns ein f+APw-r allemal sterben.+ACI- \n\nIn einem nahen Teich wollten sie sich nun ers+AOQ-ufen+ADs- sie eilten ihm zu+ADs- allein das au+AN8-erordentliche Get+APY-se und ihre wunderbare Gestalt erschreckte eine Menge Fr+APY-sche, die am Ufer sa+AN8-en, so sehr, da+AN8- sie aufs schnellste untertauchten. \n\n+ACI-Halt+ACI-, rief nun eben dieser Sprecher, +ACI-wir wollen das Ers+AOQ-ufen noch ein wenig aufschieben, denn auch uns f+APw-rchten, wie ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein m+APw-ssen als wir.+ACI- \n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,93 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: =?iso-8859-1?B?SvxyZ2VuIFNjaG38cmdlbg==?= <schmuergen@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche_=28Microsoft_Outlook_00=29?=
|
||||
Date: Wed, 17 May 2000 19:15:35 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
|
||||
ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der =
|
||||
Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =
|
||||
=E4rger als der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt =
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF =
|
||||
sie aufs schnellste untertauchten.=20
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch =
|
||||
ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
|
||||
Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 15,
|
||||
"second": 35,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,96 @@
|
||||
Message-Id: <4.2.0.58.20000519010441.00a8d140@pop.example.com>
|
||||
X-Sender: dwsauder@pop.example.com (Unverified)
|
||||
Disposition-Notification-To: <dwsauder@example.com>
|
||||
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
|
||||
X-Priority: 1 (Highest)
|
||||
Date: Fri, 19 May 2000 01:06:18 -0400
|
||||
To: =?iso-8859-1?Q?Jürgen?= =?iso-8859-1?Q?_Schmürgen?=
|
||||
<jschmuergen@example.com>
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frösche?=
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
|
||||
=20
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=20
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
|
||||
=20
|
||||
Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=20
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
|
||||
erschreckte=20
|
||||
eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie aufs=
|
||||
schnellste=20
|
||||
untertauchten.
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
|
||||
=20
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=20
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 6,
|
||||
"second": 18,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "4.2.0.58.20000519010441.00a8d140@pop.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"format": "flowed"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Sender": [
|
||||
"dwsauder@pop.example.com (Unverified)"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
],
|
||||
"X-Priority": [
|
||||
"1 (Highest)"
|
||||
],
|
||||
"Disposition-Notification-To": [
|
||||
"<dwsauder@example.com>"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein \nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, \nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der \nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; \nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte \neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste \nuntertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein \nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, \nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
Message-Id: <4.2.0.58.20000519010842.00a8c7f0@pop.example.com>
|
||||
X-Sender: dwsauder@pop.example.com (Unverified)
|
||||
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
|
||||
X-Priority: 1 (Highest)
|
||||
Date: Fri, 19 May 2000 01:10:27 -0400
|
||||
To: Heinz Müller <mueller@example.com>
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
Subject: Die Hasen und die Frösche
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/plain; charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Die Hasen und die Frösche
|
||||
|
||||
Die Hasen klagten einst über ihre mißliche Lage; "wir leben", sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben."
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten.
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 1,
|
||||
"minute": 10,
|
||||
"second": 27,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Fr�sche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "8bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Sender": [
|
||||
"dwsauder@pop.example.com (Unverified)"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
],
|
||||
"X-Priority": [
|
||||
"1 (Highest)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n\r\n\r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
Message-Id: <4.2.0.58.20000519001217.00a85b60@pop.example.com>
|
||||
X-Sender: dwsauder@pop.example.com (Unverified)
|
||||
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
|
||||
Date: Fri, 19 May 2000 00:17:39 -0400
|
||||
To: =?iso-8859-1?Q?J=FCrgen?= =?iso-8859-1?Q?_Schm=FCrgen?=
|
||||
<jschmuergen@example.com>
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/plain; charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
|
||||
Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
|
||||
aufs schnellste untertauchten.=20
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 17,
|
||||
"second": 39,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "4.2.0.58.20000519001217.00a85b60@pop.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "jschmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Sender": [
|
||||
"dwsauder@pop.example.com (Unverified)"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: =?Windows-1252?Q?Heinz_M=FCller?= <mueller@example.com>
|
||||
Subject: =?Windows-1252?Q?Die_Hasen_und_die_Fr=F6sche_=28Microsoft_Outlook_00=29?=
|
||||
Date: Wed, 17 May 2000 19:30:20 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="Windows-1252"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
|
||||
ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der =
|
||||
Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =
|
||||
=E4rger als der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt =
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF =
|
||||
sie aufs schnellste untertauchten.=20
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch =
|
||||
ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
|
||||
Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 30,
|
||||
"second": 20,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "Windows-1252"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: =?iso-8859-1?B?SvxyZ2VuIFNjaG38cmdlbg==?= <schmuergen@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche_=28Microsoft_Outlook_00=29?=
|
||||
Date: Wed, 17 May 2000 19:13:51 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: 8bit
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Frösche
|
||||
|
||||
Die Hasen klagten einst über ihre mißliche Lage; "wir leben", sprach ein
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der
|
||||
Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod
|
||||
selbst. Auf, laßt uns ein für allemal sterben."
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;
|
||||
allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte
|
||||
eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste
|
||||
untertauchten.
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersäufen noch ein
|
||||
wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 13,
|
||||
"second": 51,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "8bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: "Joe Blow" <jblow@example.com>
|
||||
Subject: Test message from Microsoft Outlook 00
|
||||
Date: Wed, 17 May 2000 19:38:28 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
|
||||
------=_NextPart_000_0005_01BFC037.799BEF60
|
||||
Content-Type: text/plain;
|
||||
charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
|
||||
The Hare and the Tortoise=20
|
||||
=20
|
||||
A HARE one day ridiculed the short feet and slow pace of the Tortoise, =
|
||||
who replied, laughing: "Though you be swift as the wind, I will beat =
|
||||
you in a race." The Hare, believing her assertion to be simply =
|
||||
impossible, assented to the proposal; and they agreed that the Fox =
|
||||
should choose the course and fix the goal. On the day appointed for the =
|
||||
race the two started together. The Tortoise never for a moment stopped, =
|
||||
but went on with a slow but steady pace straight to the end of the =
|
||||
course. The Hare, lying down by the wayside, fell fast asleep. At last =
|
||||
waking up, and moving as fast as he could, he saw the Tortoise had =
|
||||
reached the goal, and was comfortably dozing after her fatigue. =20
|
||||
=20
|
||||
Slow but steady wins the race. =20
|
||||
|
||||
|
||||
------=_NextPart_000_0005_01BFC037.799BEF60
|
||||
Content-Type: text/html;
|
||||
charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML><HEAD>
|
||||
<META content=3D"text/html; charset=3Diso-8859-1" =
|
||||
http-equiv=3DContent-Type>
|
||||
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
|
||||
<BODY>
|
||||
<DIV><FONT face=3DArial size=3D2><BR>The Hare and the Tortoise =
|
||||
<BR> <BR>A HARE=20
|
||||
one day ridiculed the short feet and slow pace of the Tortoise, who =
|
||||
replied,=20
|
||||
laughing: "Though you be swift as the wind, I will beat you in a=20
|
||||
race." The Hare, believing her assertion to be simply impossible, =
|
||||
assented=20
|
||||
to the proposal; and they agreed that the Fox should choose the course =
|
||||
and fix=20
|
||||
the goal. On the day appointed for the race the two started=20
|
||||
together. The Tortoise never for a moment stopped, but went on =
|
||||
with a slow=20
|
||||
but steady pace straight to the end of the course. The Hare, lying =
|
||||
down by=20
|
||||
the wayside, fell fast asleep. At last waking up, and moving as =
|
||||
fast as he=20
|
||||
could, he saw the Tortoise had reached the goal, and was comfortably =
|
||||
dozing=20
|
||||
after her fatigue. <BR> <BR>Slow but steady wins the =
|
||||
race. =20
|
||||
<BR></FONT></DIV></BODY></HTML>
|
||||
|
||||
------=_NextPart_000_0005_01BFC037.799BEF60--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 38,
|
||||
"second": 28,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Test message from Microsoft Outlook 00",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "jblow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "----=_NextPart_000_0005_01BFC037.799BEF60"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META content=\"text/html; charset=iso-8859-1\" http-equiv=Content-Type>\n<META content=\"MSHTML 5.00.2314.1000\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=Arial size=2><BR>The Hare and the Tortoise <BR> <BR>A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing: \"Though you be swift as the wind, I will beat you in a \nrace.\" The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal. On the day appointed for the race the two started \ntogether. The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course. The Hare, lying down by \nthe wayside, fell fast asleep. At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. <BR> <BR>Slow but steady wins the race. \n<BR></FONT></DIV></BODY></HTML>\n"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,93 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: "Jürgen Schmürgen" <schmuergen@example.com>
|
||||
Subject: Die Hasen und die Frösche (Microsoft Outlook 00)
|
||||
Date: Wed, 17 May 2000 19:08:29 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: 8bit
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Frösche
|
||||
|
||||
Die Hasen klagten einst über ihre mißliche Lage; "wir leben", sprach ein
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der
|
||||
Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod
|
||||
selbst. Auf, laßt uns ein für allemal sterben."
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;
|
||||
allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte
|
||||
eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste
|
||||
untertauchten.
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersäufen noch ein
|
||||
wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 8,
|
||||
"second": 29,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Fr�sche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "8bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,92 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: "Jürgen Schmürgen" <schmuergen@example.com>
|
||||
Subject: Die Hasen und die Frösche (Microsoft Outlook 00)
|
||||
Date: Wed, 17 May 2000 19:11:50 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: base64
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
RGllIEhhc2VuIHVuZCBkaWUgRnL2c2NoZQ0KDQpEaWUgSGFzZW4ga2xhZ3RlbiBlaW5zdCD8YmVy
|
||||
IGlocmUgbWnfbGljaGUgTGFnZTsgIndpciBsZWJlbiIsIHNwcmFjaCBlaW4gUmVkbmVyLCAiaW4g
|
||||
c3RldGVyIEZ1cmNodCB2b3IgTWVuc2NoZW4gdW5kIFRpZXJlbiwgZWluZSBCZXV0ZSBkZXIgSHVu
|
||||
ZGUsIGRlciBBZGxlciwgamEgZmFzdCBhbGxlciBSYXVidGllcmUhIFVuc2VyZSBzdGV0ZSBBbmdz
|
||||
dCBpc3Qg5HJnZXIgYWxzIGRlciBUb2Qgc2VsYnN0LiBBdWYsIGxh33QgdW5zIGVpbiBm/HIgYWxs
|
||||
ZW1hbCBzdGVyYmVuLiIgDQoNCkluIGVpbmVtIG5haGVuIFRlaWNoIHdvbGx0ZW4gc2llIHNpY2gg
|
||||
bnVuIGVyc+R1ZmVuOyBzaWUgZWlsdGVuIGlobSB6dTsgYWxsZWluIGRhcyBhdd9lcm9yZGVudGxp
|
||||
Y2hlIEdldPZzZSB1bmQgaWhyZSB3dW5kZXJiYXJlIEdlc3RhbHQgZXJzY2hyZWNrdGUgZWluZSBN
|
||||
ZW5nZSBGcvZzY2hlLCBkaWUgYW0gVWZlciBzYd9lbiwgc28gc2VociwgZGHfIHNpZSBhdWZzIHNj
|
||||
aG5lbGxzdGUgdW50ZXJ0YXVjaHRlbi4gDQoNCiJIYWx0IiwgcmllZiBudW4gZWJlbiBkaWVzZXIg
|
||||
U3ByZWNoZXIsICJ3aXIgd29sbGVuIGRhcyBFcnPkdWZlbiBub2NoIGVpbiB3ZW5pZyBhdWZzY2hp
|
||||
ZWJlbiwgZGVubiBhdWNoIHVucyBm/HJjaHRlbiwgd2llIGlociBzZWh0LCBlaW5pZ2UgVGllcmUs
|
||||
IHdlbGNoZSBhbHNvIHdvaGwgbm9jaCB1bmds/GNrbGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIu
|
||||
IiANCg==
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 11,
|
||||
"second": 50,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Fr�sche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "base64",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,191 @@
|
||||
Message-Id: <4.2.0.58.20000519005818.00a86aa0@pop.example.com>
|
||||
X-Sender: dwsauder@pop.example.com (Unverified)
|
||||
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
|
||||
Date: Fri, 19 May 2000 00:59:31 -0400
|
||||
To: Heinz =?iso-8859-1?Q?Müller?= <mueller@example.com>
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frösche?=
|
||||
Mime-Version: 1.0
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="=====================_716740438==_"
|
||||
|
||||
--=====================_716740438==_
|
||||
Content-Type: text/plain; charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
|
||||
Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
|
||||
aufs schnellste untertauchten.=20
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
--=====================_716740438==_
|
||||
Content-Type: text/plain; name="HasenundFrösche.txt";
|
||||
x-mac-type="54455854"; x-mac-creator="74747874"
|
||||
Content-Transfer-Encoding: x-uuencode
|
||||
Content-Disposition: attachment; filename="HasenundFrösche.txt"
|
||||
|
||||
|
||||
begin 600 HasenundFrösche.txt
|
||||
M1&EE($AA<V5N('5N9"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E
|
||||
M;B!E:6YS="#\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L
|
||||
M('-P<F%C:"!E:6X@4F5D;F5R+"`B:6X@<W1E=&5R($9U<F-H="!V;W(@365N
|
||||
M<V-H96X@=6YD(%1I97)E;BP@96EN92!"975T92!D97(@2'5N9&4L(&1E<B!!
|
||||
M9&QE<BP@:F$@9F%S="!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!
|
||||
M;F=S="!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@
|
||||
M=6YS(&5I;B!F_'(@86QL96UA;"!S=&5R8F5N+B(@#0H-"DEN(&5I;F5M(&YA
|
||||
M:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@
|
||||
M96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E
|
||||
M=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@
|
||||
M96EN92!-96YG92!&<O9S8VAE+"!D:64@86T@569E<B!S8=]E;BP@<V\@<V5H
|
||||
M<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-
|
||||
M"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(")W:7(@
|
||||
M=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E
|
||||
M;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+"!E:6YI
|
||||
M9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:"!U;F=L_&-K;&EC:&5R
|
||||
;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-"@T*
|
||||
`
|
||||
end
|
||||
|
||||
--=====================_716740438==_
|
||||
Content-Type: text/plain; charset="us-ascii"
|
||||
Content-Disposition: attachment; filename="farmerandstork.txt"
|
||||
|
||||
|
||||
The Farmer and the Stork
|
||||
|
||||
A FARMER placed nets on his newly-sown plowlands and caught a
|
||||
number of Cranes, which came to pick up his seed. With them he
|
||||
trapped a Stork that had fractured his leg in the net and was
|
||||
earnestly beseeching the Farmer to spare his life. "Pray save
|
||||
me, Master," he said, "and let me go free this once. My broken
|
||||
limb should excite your pity. Besides, I am no Crane, I am a
|
||||
Stork, a bird of excellent character; and see how I love and
|
||||
slave for my father and mother. Look too, at my feathers--
|
||||
they are not the least like those of a Crane." The Farmer
|
||||
laughed aloud and said, "It may be all as you say, I only know
|
||||
this: I have taken you with these robbers, the Cranes, and you
|
||||
must die in their company."
|
||||
|
||||
Birds of a feather flock together.
|
||||
|
||||
--=====================_716740438==_--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 0,
|
||||
"minute": 59,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "4.2.0.58.20000519005818.00a86aa0@pop.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "=====================_716740438==_"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Sender": [
|
||||
"dwsauder@pop.example.com (Unverified)"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"QUALCOMM Windows Eudora Pro Version 4.2.0.58"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_disposition": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "HasenundFr�sche.txt"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "x-uuencode",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFr�sche.txt",
|
||||
"x-mac-creator": "74747874",
|
||||
"x-mac-type": "54455854"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nbegin 600 HasenundFr�sche.txt\r\nM1&EE($AA<V5N('5N9\"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E\r\nM;B!E:6YS=\"#\\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L\r\nM('-P<F%C:\"!E:6X@4F5D;F5R+\"`B:6X@<W1E=&5R($9U<F-H=\"!V;W(@365N\r\nM<V-H96X@=6YD(%1I97)E;BP@96EN92!\"975T92!D97(@2'5N9&4L(&1E<B!!\r\nM9&QE<BP@:F$@9F%S=\"!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!\r\nM;F=S=\"!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@\r\nM=6YS(&5I;B!F_'(@86QL96UA;\"!S=&5R8F5N+B(@#0H-\"DEN(&5I;F5M(&YA\r\nM:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@\r\nM96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E\r\nM=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@\r\nM96EN92!-96YG92!&<O9S8VAE+\"!D:64@86T@569E<B!S8=]E;BP@<V\\@<V5H\r\nM<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-\r\nM\"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(\")W:7(@\r\nM=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E\r\nM;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+\"!E:6YI\r\nM9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:\"!U;F=L_&-K;&EC:&5R\r\n;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-\"@T*\r\n`\r\nend\r\n\r"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_disposition": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: "Jürgen Schmürgen" <schmuergen@example.com>
|
||||
Subject: Die Hasen und die Frösche (Microsoft Outlook 00)
|
||||
Date: Wed, 17 May 2000 19:10:31 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="iso-8859-1"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
|
||||
ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der =
|
||||
Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =
|
||||
=E4rger als der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt =
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF =
|
||||
sie aufs schnellste untertauchten.=20
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch =
|
||||
ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
|
||||
Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 10,
|
||||
"second": 31,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Fr�sche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "J�rgen Schm�rgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,83 @@
|
||||
Message-ID: <392362D8.B650789F@example.com>
|
||||
Date: Wed, 17 May 2000 23:26:16 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: Joe Blow <blow@example.com>
|
||||
Subject: Test message from Netscape Communicator 4.7
|
||||
X-Priority: 1 (Highest)
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
|
||||
The Hare and the Tortoise
|
||||
|
||||
A HARE one day ridiculed the short feet and slow pace of the Tortoise,
|
||||
who replied, laughing: "Though you be swift as the wind, I will beat
|
||||
you in a race." The Hare, believing her assertion to be simply
|
||||
impossible, assented to the proposal; and they agreed that the Fox
|
||||
should choose the course and fix the goal. On the day appointed for the
|
||||
race the two started together. The Tortoise never for a moment stopped,
|
||||
but went on with a slow but steady pace straight to the end of the
|
||||
course. The Hare, lying down by the wayside, fell fast asleep. At last
|
||||
waking up, and moving as fast as he could, he saw the Tortoise had
|
||||
reached the goal, and was comfortably dozing after her fatigue.
|
||||
|
||||
Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 26,
|
||||
"second": 16,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "392362D8.B650789F@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Test message from Netscape Communicator 4.7",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Priority": [
|
||||
"1 (Highest)"
|
||||
],
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,89 @@
|
||||
Message-ID: <392363E1.2AC47AB3@example.com>
|
||||
Date: Wed, 17 May 2000 23:30:41 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: Joe Blow <blow@example.com>
|
||||
Subject: Test message from Netscape Communicator 4.7
|
||||
X-Priority: 5 (Lowest)
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
|
||||
ein
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
|
||||
r
|
||||
Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben." =
|
||||
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
|
||||
aufs
|
||||
schnellste untertauchten. =
|
||||
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
|
||||
n
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 30,
|
||||
"second": 41,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "392363E1.2AC47AB3@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Test message from Netscape Communicator 4.7",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-8"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Priority": [
|
||||
"5 (Lowest)"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
],
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr�sche\n\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der\nTod selbst. Auf, la�t uns ein f�r allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt\nerschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs\nschnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
Message-ID: <39236497.12FA2A89@example.com>
|
||||
Date: Wed, 17 May 2000 23:33:43 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: "Heinz M+APw-ller" <mueller@example.com>
|
||||
Subject: Die Hasen und die Fr+APY-sche
|
||||
Content-Type: text/plain; charset=UTF-7
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Die Hasen und die Fr+XKM-he
|
||||
|
||||
Die Hasen klagten einst +uGU-r ihre mi+B6w-iche Lage; "wir leben", sprach ein
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist +PGc-er als der
|
||||
Tod selbst. Auf, la+B7Q- uns ein f+vCA-allemal sterben."
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers+PSY-en; sie eilten ihm zu;
|
||||
allein das au+B6U-rordentliche Get+XKU- und ihre wunderbare Gestalt
|
||||
erschreckte eine Menge Fr+XKM-he, die am Ufer sa+B6U-n, so sehr, da+B2A-sie aufs
|
||||
schnellste untertauchten.
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers+PSY-en noch ein
|
||||
wenig aufschieben, denn auch uns f+vGM-hten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 33,
|
||||
"second": 43,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "39236497.12FA2A89@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Fr+APY-sche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M+APw-ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "UTF-7"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
],
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr+XKM-he\r\n\r\nDie Hasen klagten einst +uGU-r ihre mi+B6w-iche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\r\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist +PGc-er als der\r\nTod selbst. Auf, la+B7Q- uns ein f+vCA-allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ers+PSY-en; sie eilten ihm zu;\r\nallein das au+B6U-rordentliche Get+XKU- und ihre wunderbare Gestalt\r\nerschreckte eine Menge Fr+XKM-he, die am Ufer sa+B6U-n, so sehr, da+B2A-sie aufs\r\nschnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers+PSY-en noch ein\r\nwenig aufschieben, denn auch uns f+vGM-hten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl+uKs-licher sein m+vLM-en als wir.\"\r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,71 @@
|
||||
Date: Fri, 19 May 2000 10:18:03 -0400 (EDT)
|
||||
From: Doug Sauder <doug@penguin.example.com>
|
||||
To: =?iso-8859-1?Q?J=FCrgen_Schm=FCrgen?= <schmuergen@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
|
||||
Message-ID: <Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: TEXT/PLAIN; charset=iso-8859-1
|
||||
Content-Transfer-Encoding: QUOTED-PRINTABLE
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ei=
|
||||
n Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, =
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der =
|
||||
Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; al=
|
||||
lein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt erschreckt=
|
||||
e eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie aufs schnel=
|
||||
lste untertauchten.=20
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein =
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere, we=
|
||||
lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 18,
|
||||
"second": 3,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "QUOTED-PRINTABLE",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,70 @@
|
||||
Message-ID: <3923625B.59F0C3AC@example.com>
|
||||
Date: Wed, 17 May 2000 23:24:11 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: Joe Blow <blow@example.com>
|
||||
Subject: Test message from Netscape Communicator 4.7
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
|
||||
The Hare and the Tortoise
|
||||
|
||||
A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: "Though you be swift as the wind, I will beat you in a race." The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue.
|
||||
|
||||
Slow but steady wins the race.
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 24,
|
||||
"second": 11,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "3923625B.59F0C3AC@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Test message from Netscape Communicator 4.7",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
],
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,81 @@
|
||||
Message-ID: <39236653.CAA8A090@example.com>
|
||||
Date: Wed, 17 May 2000 23:41:07 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: =?iso-8859-1?Q?J=FCrgen=20Schm=FCrgen?= <schmuergen@example.com>
|
||||
Subject: Die Hasen und die =?iso-8859-1?Q?Fr=F6sche?=
|
||||
Content-Type: text/plain; charset=iso-8859-1
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
|
||||
ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hun=
|
||||
de, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger al=
|
||||
s der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben." =
|
||||
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt erschr=
|
||||
eckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie aufs =
|
||||
schnellste untertauchten. =
|
||||
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
|
||||
n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 41,
|
||||
"second": 7,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "39236653.CAA8A090@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,144 @@
|
||||
Message-ID: <3923686C.99FB5E36@example.com>
|
||||
Date: Wed, 17 May 2000 23:50:04 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: Joe Blow <blow@example.com>
|
||||
Subject: Test message from Netscape Communicator 4.7
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="------------77060D866A66DC8D0921E051"
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
--------------77060D866A66DC8D0921E051
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
|
||||
The Hare and the Tortoise
|
||||
|
||||
A HARE one day ridiculed the short feet and slow pace of the Tortoise,
|
||||
who replied, laughing: "Though you be swift as the wind, I will beat
|
||||
you in a race." The Hare, believing her assertion to be simply
|
||||
impossible, assented to the proposal; and they agreed that the Fox
|
||||
should choose the course and fix the goal. On the day appointed for the
|
||||
race the two started together. The Tortoise never for a moment stopped,
|
||||
but went on with a slow but steady pace straight to the end of the
|
||||
course. The Hare, lying down by the wayside, fell fast asleep. At last
|
||||
waking up, and moving as fast as he could, he saw the Tortoise had
|
||||
reached the goal, and was comfortably dozing after her fatigue.
|
||||
|
||||
Slow but steady wins the race.
|
||||
--------------77060D866A66DC8D0921E051
|
||||
Content-Type: text/plain; charset=us-ascii;
|
||||
name="farmerandstork.txt"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Content-Disposition: inline;
|
||||
filename="farmerandstork.txt"
|
||||
|
||||
|
||||
The Farmer and the Stork
|
||||
|
||||
A FARMER placed nets on his newly-sown plowlands and caught a
|
||||
number of Cranes, which came to pick up his seed. With them he
|
||||
trapped a Stork that had fractured his leg in the net and was
|
||||
earnestly beseeching the Farmer to spare his life. "Pray save
|
||||
me, Master," he said, "and let me go free this once. My broken
|
||||
limb should excite your pity. Besides, I am no Crane, I am a
|
||||
Stork, a bird of excellent character; and see how I love and
|
||||
slave for my father and mother. Look too, at my feathers--
|
||||
they are not the least like those of a Crane." The Farmer
|
||||
laughed aloud and said, "It may be all as you say, I only know
|
||||
this: I have taken you with these robbers, the Cranes, and you
|
||||
must die in their company."
|
||||
|
||||
Birds of a feather flock together.
|
||||
|
||||
--------------77060D866A66DC8D0921E051--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 50,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "3923686C.99FB5E36@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Test message from Netscape Communicator 4.7",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------77060D866A66DC8D0921E051"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
],
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_disposition": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "farmerandstork.txt"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "farmerandstork.txt",
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n\r"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
Message-ID: <392359CF.DFF4527@example.com>
|
||||
Date: Wed, 17 May 2000 22:47:43 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: Heinz =?iso-8859-1?Q?M=FCller?= <mueller@example.com>
|
||||
Subject: Die Hasen und die =?iso-8859-1?Q?Fr=F6sche?= (Netscape Communicator 4.7)
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="------------9D454F23DA86BCD63FA3805F"
|
||||
|
||||
|
||||
--------------9D454F23DA86BCD63FA3805F
|
||||
Content-Type: text/plain; charset=iso-8859-1
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
|
||||
ein
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
|
||||
r
|
||||
Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
|
||||
aufs
|
||||
schnellste untertauchten.
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
|
||||
n
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
|
||||
--------------9D454F23DA86BCD63FA3805F
|
||||
Content-Type: text/html; charset=us-ascii
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
||||
<html>
|
||||
<b>Die Hasen und die Frösche</b>
|
||||
<p>Die Hasen klagten einst über ihre mißliche Lage; "wir leben",
|
||||
sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute
|
||||
der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger
|
||||
als der Tod selbst. Auf, laßt uns ein für allemal sterben."
|
||||
<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten
|
||||
ihm zu; allein das außerordentliche Getöse und ihre wunderbare
|
||||
Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so
|
||||
sehr, daß sie aufs schnellste untertauchten.
|
||||
<p>"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersäufen
|
||||
noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,
|
||||
einige Tiere, welche also wohl noch unglücklicher sein müssen
|
||||
als wir."
|
||||
<br>
|
||||
<br> </html>
|
||||
|
||||
--------------9D454F23DA86BCD63FA3805F--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 22,
|
||||
"minute": 47,
|
||||
"second": 43,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "392359CF.DFF4527@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche (Netscape Communicator 4.7)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "------------9D454F23DA86BCD63FA3805F"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\r\n<html>\r\n<b>Die Hasen und die Frösche</b>\r\n<p>Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n<p>In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n<p>\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n<br> \r\n<br> </html>\r\n\r"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,127 @@
|
||||
Date: Fri, 19 May 2000 10:26:12 -0400 (EDT)
|
||||
From: Doug Sauder <doug@penguin.example.com>
|
||||
To: Joe Blow <blow@example.com>,
|
||||
=?iso-8859-1?Q?Heinz_M=FCller?= <mueller@example.com>
|
||||
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
|
||||
Message-ID: <Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: MULTIPART/MIXED; BOUNDARY="-1463757054-891160829-958746372=:8452"
|
||||
|
||||
This message is in MIME format. The first part should be readable text,
|
||||
while the remaining parts are likely unreadable without MIME-aware tools.
|
||||
Send mail to mime@docserver.cac.washington.edu for more info.
|
||||
|
||||
---1463757054-891160829-958746372=:8452
|
||||
Content-Type: TEXT/PLAIN; charset=US-ASCII
|
||||
|
||||
|
||||
---1463757054-891160829-958746372=:8452
|
||||
Content-Type: TEXT/PLAIN; charset=iso-8859-1; name*="iso-8859-1''HasenundFr%F6sche.txt"
|
||||
Content-Transfer-Encoding: BASE64
|
||||
Content-ID: <Pine.LNX.4.21.0005191026120.8452@penguin.example.com>
|
||||
Content-Description: Short story in German
|
||||
Content-Disposition: attachment; filename*="iso-8859-1''HasenundFr%F6sche.txt"
|
||||
|
||||
RGllIEhhc2VuIHVuZCBkaWUgRnL2c2NoZQ0NCg0NCkRpZSBIYXNlbiBrbGFn
|
||||
dGVuIGVpbnN0IPxiZXIgaWhyZSBtad9saWNoZSBMYWdlOyAid2lyIGxlYmVu
|
||||
Iiwgc3ByYWNoIGVpbiBSZWRuZXIsICJpbiBzdGV0ZXIgRnVyY2h0IHZvciBN
|
||||
ZW5zY2hlbiB1bmQgVGllcmVuLCBlaW5lIEJldXRlIGRlciBIdW5kZSwgZGVy
|
||||
IEFkbGVyLCBqYSBmYXN0IGFsbGVyIFJhdWJ0aWVyZSEgVW5zZXJlIHN0ZXRl
|
||||
IEFuZ3N0IGlzdCDkcmdlciBhbHMgZGVyIFRvZCBzZWxic3QuIEF1ZiwgbGHf
|
||||
dCB1bnMgZWluIGb8ciBhbGxlbWFsIHN0ZXJiZW4uIiANDQoNDQpJbiBlaW5l
|
||||
bSBuYWhlbiBUZWljaCB3b2xsdGVuIHNpZSBzaWNoIG51biBlcnPkdWZlbjsg
|
||||
c2llIGVpbHRlbiBpaG0genU7IGFsbGVpbiBkYXMgYXXfZXJvcmRlbnRsaWNo
|
||||
ZSBHZXT2c2UgdW5kIGlocmUgd3VuZGVyYmFyZSBHZXN0YWx0IGVyc2NocmVj
|
||||
a3RlIGVpbmUgTWVuZ2UgRnL2c2NoZSwgZGllIGFtIFVmZXIgc2HfZW4sIHNv
|
||||
IHNlaHIsIGRh3yBzaWUgYXVmcyBzY2huZWxsc3RlIHVudGVydGF1Y2h0ZW4u
|
||||
IA0NCg0NCiJIYWx0IiwgcmllZiBudW4gZWJlbiBkaWVzZXIgU3ByZWNoZXIs
|
||||
ICJ3aXIgd29sbGVuIGRhcyBFcnPkdWZlbiBub2NoIGVpbiB3ZW5pZyBhdWZz
|
||||
Y2hpZWJlbiwgZGVubiBhdWNoIHVucyBm/HJjaHRlbiwgd2llIGlociBzZWh0
|
||||
LCBlaW5pZ2UgVGllcmUsIHdlbGNoZSBhbHNvIHdvaGwgbm9jaCB1bmds/GNr
|
||||
bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
|
||||
---1463757054-891160829-958746372=:8452--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 19,
|
||||
"hour": 10,
|
||||
"minute": 26,
|
||||
"second": 12,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@penguin.example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche",
|
||||
"to": {
|
||||
"AddressList": [
|
||||
{
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
},
|
||||
{
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "-1463757054-891160829-958746372=:8452"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_description": "Short story in German",
|
||||
"content_disposition": {
|
||||
"c_type": "attachment",
|
||||
"attributes": {
|
||||
"filename": "iso-8859-1''HasenundFr%F6sche.txt"
|
||||
}
|
||||
},
|
||||
"content_id": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com",
|
||||
"content_transfer_encoding": "BASE64",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1",
|
||||
"name": "iso-8859-1''HasenundFr%F6sche.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\r\r\n\r\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\r\n\r\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\r\n\r\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\r\n\r\r\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
Message-ID: <3923561C.B7078DEF@example.com>
|
||||
Date: Wed, 17 May 2000 22:31:57 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: =?iso-8859-1?Q?J=FCrgen=20Schm=FCrgen?= <schmuergen@example.com>
|
||||
Subject: Die Hasen und die =?iso-8859-1?Q?Fr=F6sche?= (Netscape Communicator 4.7)
|
||||
Content-Type: text/plain; charset=iso-8859-1
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
|
||||
ein
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
|
||||
der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
|
||||
r
|
||||
Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
|
||||
erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
|
||||
aufs
|
||||
schnellste untertauchten.
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
|
||||
n
|
||||
wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
|
||||
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 22,
|
||||
"minute": 31,
|
||||
"second": 57,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "3923561C.B7078DEF@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche (Netscape Communicator 4.7)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Jürgen Schmürgen",
|
||||
"address": "schmuergen@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
Message-ID: <392367BC.3D075C95@example.com>
|
||||
Date: Wed, 17 May 2000 23:47:08 -0400
|
||||
From: Doug Sauder <dwsauder@example.com>
|
||||
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
|
||||
X-Accept-Language: en
|
||||
MIME-Version: 1.0
|
||||
To: Joe Blow <blow@example.com>
|
||||
Subject: Test message from Netscape Communicator 4.7
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="------------CA611088711119FBDB3473B4"
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
--------------CA611088711119FBDB3473B4
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
|
||||
The Hare and the Tortoise
|
||||
|
||||
A HARE one day ridiculed the short feet and slow pace of the Tortoise,
|
||||
who replied, laughing: "Though you be swift as the wind, I will beat
|
||||
you in a race." The Hare, believing her assertion to be simply
|
||||
impossible, assented to the proposal; and they agreed that the Fox
|
||||
should choose the course and fix the goal. On the day appointed for the
|
||||
race the two started together. The Tortoise never for a moment stopped,
|
||||
but went on with a slow but steady pace straight to the end of the
|
||||
course. The Hare, lying down by the wayside, fell fast asleep. At last
|
||||
waking up, and moving as fast as he could, he saw the Tortoise had
|
||||
reached the goal, and was comfortably dozing after her fatigue.
|
||||
|
||||
Slow but steady wins the race.
|
||||
--------------CA611088711119FBDB3473B4
|
||||
Content-Type: text/plain; charset=iso-8859-1;
|
||||
name="=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?="
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Content-Disposition: inline;
|
||||
filename="=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?="
|
||||
|
||||
Die Hasen und die Fr=F6sche
|
||||
|
||||
Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
|
||||
ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hun=
|
||||
de, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger al=
|
||||
s der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben." =
|
||||
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
|
||||
allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt erschr=
|
||||
eckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie aufs =
|
||||
schnellste untertauchten. =
|
||||
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
|
||||
n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
|
||||
, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir." =
|
||||
|
||||
|
||||
|
||||
--------------CA611088711119FBDB3473B4--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 23,
|
||||
"minute": 47,
|
||||
"second": 8,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "dwsauder@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "392367BC.3D075C95@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Test message from Netscape Communicator 4.7",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Joe Blow",
|
||||
"address": "blow@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "------------CA611088711119FBDB3473B4"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Mailer": [
|
||||
"Mozilla 4.7 [en] (WinNT; I)"
|
||||
],
|
||||
"X-Accept-Language": [
|
||||
"en"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_disposition": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"filename": "HasenundFrösche.txt"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"name": "HasenundFrösche.txt",
|
||||
"charset": "iso-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,80 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: "Heinz Müller" <mueller@example.com>
|
||||
Subject: Die Hasen und die Frösche (Microsoft Outlook 00)
|
||||
Date: Wed, 17 May 2000 19:28:40 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com>
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Frösche
|
||||
|
||||
Die Hasen klagten einst über ihre mißliche Lage; "wir leben", sprach ein
|
||||
Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der
|
||||
Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod
|
||||
selbst. Auf, laßt uns ein für allemal sterben."
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;
|
||||
allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte
|
||||
eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste
|
||||
untertauchten.
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersäufen noch ein
|
||||
wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,
|
||||
welche also wohl noch unglücklicher sein müssen als wir."
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 28,
|
||||
"second": 40,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com",
|
||||
"subject": "Die Hasen und die Fr�sche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz M�ller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Fr�sche\r\n\r\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod\r\nselbst. Auf, la�t uns ein f�r allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\r\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte\r\neine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\r\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\r\n\r\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
From: "Doug Sauder" <doug@example.com>
|
||||
To: =?utf-8?Q?Heinz_M=C3=BCller?= <mueller@example.com>
|
||||
Subject: =?utf-8?Q?Die_Hasen_und_die_Fr=C3=B6sche_=28Microsoft_Outlook_00=29?=
|
||||
Date: Wed, 17 May 2000 19:27:04 -0400
|
||||
Message-ID: <NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain;
|
||||
charset="utf-8"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
X-Priority: 3 (Normal)
|
||||
X-MSMail-Priority: Normal
|
||||
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
||||
Importance: Normal
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
|
||||
|
||||
Die Hasen und die Fr=C3=B6sche
|
||||
|
||||
Die Hasen klagten einst =C3=BCber ihre mi=C3=9Fliche Lage; "wir leben", =
|
||||
sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute =
|
||||
der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =
|
||||
=C3=A4rger als der Tod selbst. Auf, la=C3=9Ft uns ein f=C3=BCr allemal =
|
||||
sterben."=20
|
||||
|
||||
In einem nahen Teich wollten sie sich nun ers=C3=A4ufen; sie eilten ihm =
|
||||
zu; allein das au=C3=9Ferordentliche Get=C3=B6se und ihre wunderbare =
|
||||
Gestalt erschreckte eine Menge Fr=C3=B6sche, die am Ufer sa=C3=9Fen, so =
|
||||
sehr, da=C3=9F sie aufs schnellste untertauchten.=20
|
||||
|
||||
"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=C3=A4ufen =
|
||||
noch ein wenig aufschieben, denn auch uns f=C3=BCrchten, wie ihr seht, =
|
||||
einige Tiere, welche also wohl noch ungl=C3=BCcklicher sein m=C3=BCssen =
|
||||
als wir."=20
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2000,
|
||||
"month": 5,
|
||||
"day": 17,
|
||||
"hour": 19,
|
||||
"minute": 27,
|
||||
"second": 4,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 4,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Doug Sauder",
|
||||
"address": "doug@example.com"
|
||||
}
|
||||
},
|
||||
"message_id": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "Die Hasen und die Frösche (Microsoft Outlook 00)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Heinz Müller",
|
||||
"address": "mueller@example.com"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
},
|
||||
"others": {
|
||||
"X-Priority": [
|
||||
"3 (Normal)"
|
||||
],
|
||||
"X-Mailer": [
|
||||
"Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)"
|
||||
],
|
||||
"X-MimeOLE": [
|
||||
"Produced By Microsoft MimeOLE V5.00.2314.1300"
|
||||
],
|
||||
"X-MSMail-Priority": [
|
||||
"Normal"
|
||||
],
|
||||
"Importance": [
|
||||
"Normal"
|
||||
]
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
Content-Type: multipart/mixed; boundary=":foo"
|
||||
|
||||
--:foo
|
||||
--:foo
|
||||
Content-Type: text/plain
|
||||
--:foo
|
||||
Content-Type: text/plain
|
||||
--:foo
|
||||
Content-Type: text/html
|
||||
--:foo--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": ":foo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
Content-Type: multipart/mixed; boundary="ab"
|
||||
|
||||
--ab
|
||||
Content-Type: multipart/mixed; boundary="a"
|
||||
|
||||
--ab
|
||||
Content-Type: text/plain
|
||||
|
||||
--a
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "Content-Type: text/plain\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
Content-Type: multipart/mixed; boundary="ab"
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
Content-Type: multipart/mixed; boundary="a"
|
||||
|
||||
--a
|
||||
Content-Type: multipart/mixed; boundary="a"
|
||||
|
||||
--a
|
||||
Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
Content-Type: multipart/mixed; boundary="a"
|
||||
|
||||
--ab
|
||||
Content-Type: multipart/mixed; boundary="a"
|
||||
|
||||
--ac
|
||||
Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
Content-Type: multipart/mixed; boundary="a--"
|
||||
|
||||
--a--
|
||||
Content-Type: multipart/mixed; boundary="a----"
|
||||
|
||||
--a----
|
||||
Content-Type: text/plain
|
||||
|
||||
body
|
||||
--a------
|
||||
Content-Type: text/html
|
||||
|
||||
body2
|
||||
--a----
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a--"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "body"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
Content-Type: multipart/mixed; boundary="a"
|
||||
|
||||
--a
|
||||
Content-Type: multipart/mixed; boundary="ab"
|
||||
|
||||
--ab
|
||||
Content-Type: text/plain
|
||||
|
||||
body
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "body\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
Content-Type: multipart/mixed; boundary="a"
|
||||
|
||||
--a
|
||||
Content-Type: multipart/mixed; boundary="ab"
|
||||
MIME-Version: 1.0
|
||||
--ab
|
||||
Content-Type: text/plain
|
||||
|
||||
--ab--
|
||||
--a--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "--a--\n\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
Content-Type: multipart/mixed; boundary="ab"
|
||||
|
||||
--ab
|
||||
Content-Type: multipart/mixed; boundary="a"
|
||||
|
||||
--a
|
||||
Content-Type: text/plain
|
||||
|
||||
body
|
||||
--ab
|
||||
Content-Type: text/html
|
||||
|
||||
body2
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "body\n--ab\nContent-Type: text/html\n\nbody2\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
|
||||
--1
|
||||
Content-Type: multipart/mixed; boundary="2"
|
||||
|
||||
--2
|
||||
Content-Type: text/plain
|
||||
|
||||
1
|
||||
--2
|
||||
Content-Type: text/plain
|
||||
|
||||
22
|
||||
--1
|
||||
Content-Type: text/plain
|
||||
|
||||
333
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "1"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "22\n--1\nContent-Type: text/plain\n\n333\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
Content-Type: message/rfc822
|
||||
|
||||
Content-Type: message/rfc822
|
||||
|
||||
Content-Type: text/plain
|
||||
|
||||
1
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "1\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
|
||||
--1
|
||||
Content-Type: multipart/mixed; boundary="2"
|
||||
|
||||
--2
|
||||
Content-Type: text/plain
|
||||
|
||||
1
|
||||
--2
|
||||
Content-Type: text/plain
|
||||
|
||||
22
|
||||
--1
|
||||
Content-Type: text/plain
|
||||
|
||||
333
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "1"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "22\n--1\nContent-Type: text/plain\n\n333\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
|
||||
--1
|
||||
Content-Type: multipart/mixed; boundary="2"
|
||||
|
||||
--2
|
||||
Content-Type: message/rfc822
|
||||
|
||||
Content-Type: text/plain
|
||||
|
||||
1
|
||||
--2
|
||||
Content-Type: message/rfc822
|
||||
|
||||
Content-Type: text/plain
|
||||
|
||||
22
|
||||
--1
|
||||
Content-Type: message/rfc822
|
||||
|
||||
Content-Type: text/plain
|
||||
|
||||
333
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"contents": "22\n--1\nContent-Type: message/rfc822\n\nContent-Type: text/plain\n\n333\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
MIME-Version: 1.0
|
||||
|
||||
--1
|
||||
Content-Type: text/plain
|
||||
|
||||
hello, world
|
||||
--1
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
MIME-Version: 2.0
|
||||
|
||||
--1
|
||||
Content-Type: text/plain
|
||||
|
||||
hello, world
|
||||
--1
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
MIME-Version: abc
|
||||
|
||||
--1
|
||||
Content-Type: text/plain
|
||||
|
||||
hello, world
|
||||
--1
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
MIME-Version:
|
||||
|
||||
--1
|
||||
Content-Type: text/plain
|
||||
|
||||
hello, world
|
||||
--1
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"mime_version": "1.0",
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
|
||||
--1
|
||||
Content-Type: text/plain
|
||||
|
||||
hello, world
|
||||
--1
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "hello, world"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
Return-Path: <test@example.org>
|
||||
Subject: Hello world
|
||||
From: Test User <test@example.org>
|
||||
To: Another User <test2@example.org>
|
||||
Message-Id: <1.2.3.4@example>
|
||||
Mime-Version: 1.0
|
||||
Date: Sun, 23 May 2007 04:58:08 +0300
|
||||
Content-Type: multipart/signed; micalg=pgp-sha1;
|
||||
protocol="application/pgp-signature";
|
||||
boundary="=-GNQXLhuj24Pl1aCkk4/d"
|
||||
|
||||
--=-GNQXLhuj24Pl1aCkk4/d
|
||||
Content-Type: text/plain
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
There was a day=20
|
||||
a happy=20day
|
||||
|
||||
--=-GNQXLhuj24Pl1aCkk4/d
|
||||
Content-Type: application/pgp-signature; name=signature.asc
|
||||
|
||||
invalid
|
||||
|
||||
--=-GNQXLhuj24Pl1aCkk4/d--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 2007,
|
||||
"month": 5,
|
||||
"day": 23,
|
||||
"hour": 4,
|
||||
"minute": 58,
|
||||
"second": 8,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 3,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Test User",
|
||||
"address": "test@example.org"
|
||||
}
|
||||
},
|
||||
"message_id": "1.2.3.4@example",
|
||||
"mime_version": "1.0",
|
||||
"return_path": [
|
||||
"test@example.org"
|
||||
],
|
||||
"subject": "Hello world",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Another User",
|
||||
"address": "test2@example.org"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "signed",
|
||||
"attributes": {
|
||||
"micalg": "pgp-sha1",
|
||||
"protocol": "application/pgp-signature",
|
||||
"boundary": "=-GNQXLhuj24Pl1aCkk4/d"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "There was a day \na happy day\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"File": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "pgp-signature",
|
||||
"attributes": {
|
||||
"name": "signature.asc"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
105,
|
||||
110,
|
||||
118,
|
||||
97,
|
||||
108,
|
||||
105,
|
||||
100,
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
Content-Type: multipart/mixed; boundary="1234567890123456789012345678901234567890123456789012345678901234567890123456789012"
|
||||
|
||||
--1234567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
Content-Type: multipart/mixed; boundary="123456789012345678901234567890123456789012345678901234567890123456789012345678901"
|
||||
|
||||
--123456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
Content-Type: multipart/mixed; boundary="12345678901234567890123456789012345678901234567890123456789012345678901234567890"
|
||||
|
||||
--12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
Content-Type: text/plain
|
||||
|
||||
1
|
||||
--1234567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
Content-Type: text/plain
|
||||
|
||||
22
|
||||
--123456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
Content-Type: text/plain
|
||||
|
||||
333
|
||||
--12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
Content-Type: text/plain
|
||||
|
||||
4444
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "1234567890123456789012345678901234567890123456789012345678901234567890123456789012"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "1\n--1234567890123456789012345678901234567890123456789012345678901234567890123456789012\nContent-Type: text/plain\n\n22\n--123456789012345678901234567890123456789012345678901234567890123456789012345678901\nContent-Type: text/plain\n\n333"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain"
|
||||
}
|
||||
},
|
||||
"contents": "4444\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
MIME-Version: 1.0
|
||||
From: Nathaniel Borenstein <nsb@nsb.fv.com>
|
||||
To: Ned Freed <ned@innosoft.com>
|
||||
Date: Fri, 07 Oct 1994 16:15:05 -0700 (PDT)
|
||||
Subject: A multipart example
|
||||
Content-Type: multipart/mixed;
|
||||
boundary=unique-boundary-1
|
||||
|
||||
This is the preamble area of a multipart message.
|
||||
Mail readers that understand multipart format
|
||||
should ignore this preamble.
|
||||
|
||||
If you are reading this text, you might want to
|
||||
consider changing to a mail reader that understands
|
||||
how to properly display multipart messages.
|
||||
|
||||
--unique-boundary-1
|
||||
|
||||
... Some text appears here ...
|
||||
|
||||
[Note that the blank between the boundary and the start
|
||||
of the text in this part means no header fields were
|
||||
given and this is text in the US-ASCII character set.
|
||||
It could have been done with explicit typing as in the
|
||||
next part.]
|
||||
|
||||
--unique-boundary-1
|
||||
Content-type: text/plain; charset=US-ASCII
|
||||
|
||||
This could have been part of the previous part, but
|
||||
illustrates explicit versus implicit typing of body
|
||||
parts.
|
||||
|
||||
--unique-boundary-1
|
||||
Content-Type: multipart/parallel; boundary=unique-boundary-2
|
||||
|
||||
--unique-boundary-2
|
||||
Content-Type: audio/basic
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
... base64-encoded 8000 Hz single-channel
|
||||
mu-law-format audio data goes here ...
|
||||
|
||||
--unique-boundary-2
|
||||
Content-Type: image/jpeg
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
... base64-encoded image data goes here ...
|
||||
|
||||
--unique-boundary-2--
|
||||
|
||||
--unique-boundary-1
|
||||
Content-type: text/enriched
|
||||
|
||||
This is <bold><italic>enriched.</italic></bold>
|
||||
<smaller>as defined in RFC 1896</smaller>
|
||||
|
||||
Isn't it
|
||||
<bigger><bigger>cool?</bigger></bigger>
|
||||
|
||||
--unique-boundary-1
|
||||
Content-Type: message/rfc822
|
||||
|
||||
From: (mailbox in US-ASCII)
|
||||
To: (address in US-ASCII)
|
||||
Subject: (subject in US-ASCII)
|
||||
Content-Type: Text/plain; charset=ISO-8859-1
|
||||
Content-Transfer-Encoding: Quoted-printable
|
||||
|
||||
... Additional text in ISO-8859-1 goes here ...
|
||||
|
||||
--unique-boundary-1--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 1994,
|
||||
"month": 10,
|
||||
"day": 7,
|
||||
"hour": 16,
|
||||
"minute": 15,
|
||||
"second": 5,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 7,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@nsb.fv.com"
|
||||
}
|
||||
},
|
||||
"mime_version": "1.0",
|
||||
"subject": "A multipart example",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "unique-boundary-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "... Some text appears here ...\n\n[Note that the blank between the boundary and the start\nof the text in this part means no header fields were\ngiven and this is text in the US-ASCII character set.\nIt could have been done with explicit typing as in the\nnext part.]\n"
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "US-ASCII"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "This could have been part of the previous part, but\nillustrates explicit versus implicit typing of body\nparts.\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_transfer_encoding": "base64",
|
||||
"content_type": {
|
||||
"c_type": "audio",
|
||||
"c_subtype": "basic"
|
||||
}
|
||||
},
|
||||
"contents": ".. base64-encoded 8000 Hz single-channel\n mu-law-format audio data goes here ...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_transfer_encoding": "base64",
|
||||
"content_type": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "jpeg"
|
||||
}
|
||||
},
|
||||
"contents": ".. base64-encoded image data goes here ...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "enriched"
|
||||
}
|
||||
},
|
||||
"contents": "This is <bold><italic>enriched.</italic></bold>\n<smaller>as defined in RFC 1896</smaller>\n\nIsn't it\n<bigger><bigger>cool?</bigger></bigger>\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"header": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "mailbox in US-ASCII"
|
||||
}
|
||||
},
|
||||
"subject": "(subject in US-ASCII)",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "address in US-ASCII"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "Quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "ISO-8859-1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "... Additional text in ISO-8859-1 goes here ...\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,379 @@
|
||||
From: Whomever
|
||||
To: Someone
|
||||
Date: Whenever
|
||||
Subject: whatever
|
||||
MIME-Version: 1.0
|
||||
Message-ID: <id1@host.com>
|
||||
Content-Type: multipart/alternative; boundary=42
|
||||
Content-ID: <id001@guppylake.bellcore.com>
|
||||
|
||||
--42
|
||||
Content-Type: message/external-body; name="BodyFormats.ps";
|
||||
site="thumper.bellcore.com"; mode="image";
|
||||
access-type=ANON-FTP; directory="pub";
|
||||
expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
|
||||
Content-type: application/postscript
|
||||
Content-ID: <id42@guppylake.bellcore.com>
|
||||
|
||||
--42
|
||||
Content-Type: message/external-body; access-type=local-file;
|
||||
name="/u/nsb/writing/rfcs/RFC-MIME.ps";
|
||||
site="thumper.bellcore.com";
|
||||
expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
|
||||
Content-type: application/postscript
|
||||
Content-ID: <id42@guppylake.bellcore.com>
|
||||
|
||||
--42
|
||||
Content-Type: message/external-body;
|
||||
access-type=mail-server
|
||||
server="listserv@bogus.bitnet";
|
||||
expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
|
||||
Content-type: application/postscript
|
||||
Content-ID: <id42@guppylake.bellcore.com>
|
||||
|
||||
get RFC-MIME.DOC
|
||||
|
||||
--42--
|
||||
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Whomever"
|
||||
}
|
||||
},
|
||||
"message_id": "id1@host.com",
|
||||
"mime_version": "1.0",
|
||||
"subject": "whatever",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Someone"
|
||||
}
|
||||
},
|
||||
"content_id": "id001@guppylake.bellcore.com",
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "42"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"File": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"name": "BodyFormats.ps",
|
||||
"site": "thumper.bellcore.com",
|
||||
"mode": "image",
|
||||
"access-type": "ANON-FTP",
|
||||
"directory": "pub",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
116,
|
||||
101,
|
||||
110,
|
||||
116,
|
||||
45,
|
||||
116,
|
||||
121,
|
||||
112,
|
||||
101,
|
||||
58,
|
||||
32,
|
||||
97,
|
||||
112,
|
||||
112,
|
||||
108,
|
||||
105,
|
||||
99,
|
||||
97,
|
||||
116,
|
||||
105,
|
||||
111,
|
||||
110,
|
||||
47,
|
||||
112,
|
||||
111,
|
||||
115,
|
||||
116,
|
||||
115,
|
||||
99,
|
||||
114,
|
||||
105,
|
||||
112,
|
||||
116,
|
||||
10,
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
116,
|
||||
101,
|
||||
110,
|
||||
116,
|
||||
45,
|
||||
73,
|
||||
68,
|
||||
58,
|
||||
32,
|
||||
60,
|
||||
105,
|
||||
100,
|
||||
52,
|
||||
50,
|
||||
64,
|
||||
103,
|
||||
117,
|
||||
112,
|
||||
112,
|
||||
121,
|
||||
108,
|
||||
97,
|
||||
107,
|
||||
101,
|
||||
46,
|
||||
98,
|
||||
101,
|
||||
108,
|
||||
108,
|
||||
99,
|
||||
111,
|
||||
114,
|
||||
101,
|
||||
46,
|
||||
99,
|
||||
111,
|
||||
109,
|
||||
62,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"File": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"access-type": "local-file",
|
||||
"site": "thumper.bellcore.com",
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"name": "/u/nsb/writing/rfcs/RFC-MIME.ps"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
116,
|
||||
101,
|
||||
110,
|
||||
116,
|
||||
45,
|
||||
116,
|
||||
121,
|
||||
112,
|
||||
101,
|
||||
58,
|
||||
32,
|
||||
97,
|
||||
112,
|
||||
112,
|
||||
108,
|
||||
105,
|
||||
99,
|
||||
97,
|
||||
116,
|
||||
105,
|
||||
111,
|
||||
110,
|
||||
47,
|
||||
112,
|
||||
111,
|
||||
115,
|
||||
116,
|
||||
115,
|
||||
99,
|
||||
114,
|
||||
105,
|
||||
112,
|
||||
116,
|
||||
10,
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
116,
|
||||
101,
|
||||
110,
|
||||
116,
|
||||
45,
|
||||
73,
|
||||
68,
|
||||
58,
|
||||
32,
|
||||
60,
|
||||
105,
|
||||
100,
|
||||
52,
|
||||
50,
|
||||
64,
|
||||
103,
|
||||
117,
|
||||
112,
|
||||
112,
|
||||
121,
|
||||
108,
|
||||
97,
|
||||
107,
|
||||
101,
|
||||
46,
|
||||
98,
|
||||
101,
|
||||
108,
|
||||
108,
|
||||
99,
|
||||
111,
|
||||
114,
|
||||
101,
|
||||
46,
|
||||
99,
|
||||
111,
|
||||
109,
|
||||
62,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"File": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "message",
|
||||
"c_subtype": "external-body",
|
||||
"attributes": {
|
||||
"expiration": "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)",
|
||||
"access-type": "mail-server",
|
||||
"server": "listserv@bogus.bitnet"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
116,
|
||||
101,
|
||||
110,
|
||||
116,
|
||||
45,
|
||||
116,
|
||||
121,
|
||||
112,
|
||||
101,
|
||||
58,
|
||||
32,
|
||||
97,
|
||||
112,
|
||||
112,
|
||||
108,
|
||||
105,
|
||||
99,
|
||||
97,
|
||||
116,
|
||||
105,
|
||||
111,
|
||||
110,
|
||||
47,
|
||||
112,
|
||||
111,
|
||||
115,
|
||||
116,
|
||||
115,
|
||||
99,
|
||||
114,
|
||||
105,
|
||||
112,
|
||||
116,
|
||||
10,
|
||||
67,
|
||||
111,
|
||||
110,
|
||||
116,
|
||||
101,
|
||||
110,
|
||||
116,
|
||||
45,
|
||||
73,
|
||||
68,
|
||||
58,
|
||||
32,
|
||||
60,
|
||||
105,
|
||||
100,
|
||||
52,
|
||||
50,
|
||||
64,
|
||||
103,
|
||||
117,
|
||||
112,
|
||||
112,
|
||||
121,
|
||||
108,
|
||||
97,
|
||||
107,
|
||||
101,
|
||||
46,
|
||||
98,
|
||||
101,
|
||||
108,
|
||||
108,
|
||||
99,
|
||||
111,
|
||||
114,
|
||||
101,
|
||||
46,
|
||||
99,
|
||||
111,
|
||||
109,
|
||||
62,
|
||||
10,
|
||||
10,
|
||||
103,
|
||||
101,
|
||||
116,
|
||||
32,
|
||||
82,
|
||||
70,
|
||||
67,
|
||||
45,
|
||||
77,
|
||||
73,
|
||||
77,
|
||||
69,
|
||||
46,
|
||||
68,
|
||||
79,
|
||||
67,
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,488 @@
|
||||
From: Al Gore <vice-president@whitehouse.gov>
|
||||
To: White House Transportation Coordinator
|
||||
<transport@whitehouse.gov>
|
||||
Subject: [Fwd: Map of Argentina with Description]
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="D7F------------D7FD5A0B8AB9C65CCDBFA872"
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
--D7F------------D7FD5A0B8AB9C65CCDBFA872
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Fred,
|
||||
|
||||
Fire up Air Force One! We're going South!
|
||||
|
||||
Thanks,
|
||||
Al
|
||||
--D7F------------D7FD5A0B8AB9C65CCDBFA872
|
||||
Content-Type: message/rfc822
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Content-Disposition: inline
|
||||
|
||||
Return-Path: <president@whitehouse.gov>
|
||||
Received: from mailhost.whitehouse.gov ([192.168.51.200])
|
||||
by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453
|
||||
for <vice-president@heartbeat.whitehouse.gov>;
|
||||
Mon, 13 Aug 1998 l8:14:23 +1000
|
||||
Received: from the_big_box.whitehouse.gov ([192.168.51.50])
|
||||
by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366
|
||||
for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000
|
||||
Date: Mon, 13 Aug 1998 17:42:41 +1000
|
||||
Message-Id: <199804130742.RAA20366@mai1host.whitehouse.gov>
|
||||
From: Bill Clinton <president@whitehouse.gov>
|
||||
To: A1 (The Enforcer) Gore <vice-president@whitehouse.gov>
|
||||
Subject: Map of Argentina with Description
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="DC8------------DC8638F443D87A7F0726DEF7"
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
--DC8------------DC8638F443D87A7F0726DEF7
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Hi A1,
|
||||
|
||||
I finally figured out this MIME thing. Pretty cool. I'll send you
|
||||
some sax music in .au files next week!
|
||||
|
||||
Anyway, the attached image is really too small to get a good look at
|
||||
Argentina. Try this for a much better map:
|
||||
|
||||
http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm
|
||||
|
||||
Then again, shouldn't the CIA have something like that?
|
||||
|
||||
Bill
|
||||
--DC8------------DC8638F443D87A7F0726DEF7
|
||||
Content-Type: image/gif; name="map_of_Argentina.gif"
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: inline; fi1ename="map_of_Argentina.gif"
|
||||
|
||||
R01GOD1hJQA1AKIAAP/////78P/omn19fQAAAAAAAAAAAAAAACwAAAAAJQA1AAAD7Qi63P5w
|
||||
wEmjBCLrnQnhYCgM1wh+pkgqqeC9XrutmBm7hAK3tP31gFcAiFKVQrGFR6kscnonTe7FAAad
|
||||
GugmRu3CmiBt57fsVq3Y0VFKnpYdxPC6M7Ze4crnnHum4oN6LFJ1bn5NXTN7OF5fQkN5WYow
|
||||
BEN2dkGQGWJtSzqGTICJgnQuTJN/WJsojad9qXMuhIWdjXKjY4tenjo6tjVssk2gaWq3uGNX
|
||||
U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
|
||||
7itICBxISKDBgwgTKjyYAAA7
|
||||
--DC8------------DC8638F443D87A7F0726DEF7--
|
||||
|
||||
--D7F------------D7FD5A0B8AB9C65CCDBFA872--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Al Gore",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"subject": "[Fwd: Map of Argentina with Description]",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "White House Transportation Coordinator",
|
||||
"address": "transport@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "D7F------------D7FD5A0B8AB9C65CCDBFA872"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Fred,\n\nFire up Air Force One! We're going South!\n\nThanks,\nAl"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 1998,
|
||||
"month": 8,
|
||||
"day": 13,
|
||||
"hour": 17,
|
||||
"minute": 42,
|
||||
"second": 41,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 10,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Bill Clinton",
|
||||
"address": "president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"message_id": "199804130742.RAA20366@mai1host.whitehouse.gov",
|
||||
"mime_version": "1.0",
|
||||
"received": [
|
||||
"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",
|
||||
"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"
|
||||
],
|
||||
"return_path": [
|
||||
"president@whitehouse.gov"
|
||||
],
|
||||
"subject": "Map of Argentina with Description",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "A1 Gore (The Enforcer)",
|
||||
"address": "vice-president@whitehouse.gov"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "DC8------------DC8638F443D87A7F0726DEF7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_transfer_encoding": "7bit",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Hi A1,\n\nI finally figured out this MIME thing. Pretty cool. I'll send you\nsome sax music in .au files next week!\n\nAnyway, the attached image is really too small to get a good look at\nArgentina. Try this for a much better map:\n\n http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm\n\nThen again, shouldn't the CIA have something like that?\n\nBill"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"File": {
|
||||
"header": {
|
||||
"content_disposition": {
|
||||
"c_type": "inline",
|
||||
"attributes": {
|
||||
"fi1ename": "map_of_Argentina.gif"
|
||||
}
|
||||
},
|
||||
"content_transfer_encoding": "base64",
|
||||
"content_type": {
|
||||
"c_type": "image",
|
||||
"c_subtype": "gif",
|
||||
"attributes": {
|
||||
"name": "map_of_Argentina.gif"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
71,
|
||||
77,
|
||||
70,
|
||||
56,
|
||||
61,
|
||||
97,
|
||||
37,
|
||||
0,
|
||||
53,
|
||||
0,
|
||||
162,
|
||||
0,
|
||||
0,
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
251,
|
||||
240,
|
||||
255,
|
||||
232,
|
||||
154,
|
||||
125,
|
||||
125,
|
||||
125,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
44,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
37,
|
||||
0,
|
||||
53,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
237,
|
||||
8,
|
||||
186,
|
||||
220,
|
||||
254,
|
||||
112,
|
||||
192,
|
||||
73,
|
||||
163,
|
||||
4,
|
||||
34,
|
||||
235,
|
||||
157,
|
||||
9,
|
||||
225,
|
||||
96,
|
||||
40,
|
||||
12,
|
||||
215,
|
||||
8,
|
||||
126,
|
||||
166,
|
||||
72,
|
||||
42,
|
||||
169,
|
||||
224,
|
||||
189,
|
||||
94,
|
||||
187,
|
||||
173,
|
||||
152,
|
||||
25,
|
||||
187,
|
||||
132,
|
||||
2,
|
||||
183,
|
||||
180,
|
||||
253,
|
||||
245,
|
||||
128,
|
||||
87,
|
||||
0,
|
||||
136,
|
||||
82,
|
||||
149,
|
||||
66,
|
||||
177,
|
||||
133,
|
||||
71,
|
||||
169,
|
||||
44,
|
||||
114,
|
||||
122,
|
||||
39,
|
||||
77,
|
||||
238,
|
||||
197,
|
||||
0,
|
||||
6,
|
||||
157,
|
||||
26,
|
||||
232,
|
||||
38,
|
||||
70,
|
||||
237,
|
||||
194,
|
||||
154,
|
||||
32,
|
||||
109,
|
||||
231,
|
||||
183,
|
||||
236,
|
||||
86,
|
||||
173,
|
||||
216,
|
||||
209,
|
||||
81,
|
||||
74,
|
||||
158,
|
||||
150,
|
||||
29,
|
||||
196,
|
||||
240,
|
||||
186,
|
||||
51,
|
||||
182,
|
||||
94,
|
||||
225,
|
||||
202,
|
||||
231,
|
||||
156,
|
||||
123,
|
||||
166,
|
||||
226,
|
||||
131,
|
||||
122,
|
||||
44,
|
||||
82,
|
||||
117,
|
||||
110,
|
||||
126,
|
||||
77,
|
||||
93,
|
||||
51,
|
||||
123,
|
||||
56,
|
||||
94,
|
||||
95,
|
||||
66,
|
||||
67,
|
||||
121,
|
||||
89,
|
||||
138,
|
||||
48,
|
||||
4,
|
||||
67,
|
||||
118,
|
||||
118,
|
||||
65,
|
||||
144,
|
||||
25,
|
||||
98,
|
||||
109,
|
||||
75,
|
||||
58,
|
||||
134,
|
||||
76,
|
||||
128,
|
||||
137,
|
||||
130,
|
||||
116,
|
||||
46,
|
||||
76,
|
||||
147,
|
||||
127,
|
||||
88,
|
||||
155,
|
||||
40,
|
||||
141,
|
||||
167,
|
||||
125,
|
||||
169,
|
||||
115,
|
||||
46,
|
||||
132,
|
||||
133,
|
||||
157,
|
||||
141,
|
||||
114,
|
||||
163,
|
||||
99,
|
||||
139,
|
||||
94,
|
||||
158,
|
||||
58,
|
||||
58,
|
||||
182,
|
||||
53,
|
||||
108,
|
||||
178,
|
||||
77,
|
||||
160,
|
||||
105,
|
||||
106,
|
||||
183,
|
||||
184,
|
||||
99,
|
||||
87,
|
||||
83,
|
||||
166,
|
||||
70,
|
||||
198,
|
||||
199,
|
||||
178,
|
||||
147,
|
||||
196,
|
||||
154,
|
||||
176,
|
||||
108,
|
||||
55,
|
||||
39,
|
||||
209,
|
||||
145,
|
||||
205,
|
||||
212,
|
||||
208,
|
||||
147,
|
||||
45,
|
||||
98,
|
||||
28,
|
||||
219,
|
||||
220,
|
||||
60,
|
||||
211,
|
||||
72,
|
||||
225,
|
||||
50,
|
||||
222,
|
||||
41,
|
||||
215,
|
||||
204,
|
||||
191,
|
||||
45,
|
||||
47,
|
||||
50,
|
||||
162,
|
||||
235,
|
||||
34,
|
||||
219,
|
||||
238,
|
||||
197,
|
||||
240,
|
||||
214,
|
||||
242,
|
||||
230,
|
||||
227,
|
||||
185,
|
||||
224,
|
||||
237,
|
||||
38,
|
||||
231,
|
||||
243,
|
||||
238,
|
||||
43,
|
||||
72,
|
||||
8,
|
||||
28,
|
||||
72,
|
||||
72,
|
||||
160,
|
||||
193,
|
||||
131,
|
||||
8,
|
||||
19,
|
||||
42,
|
||||
60,
|
||||
152,
|
||||
0,
|
||||
0,
|
||||
59
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
From: Nathaniel Borenstein <nsb@bellcore.com>
|
||||
To: Ned Freed <ned@innosoft.com>
|
||||
Date: Mon, 22 Mar 1993 09:41:09 -0800 (PST)
|
||||
Subject: Formatted text mail
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/alternative; boundary=boundary42
|
||||
|
||||
--boundary42
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
... plain text version of message goes here ...
|
||||
|
||||
--boundary42
|
||||
Content-Type: text/enriched
|
||||
|
||||
... RFC 1896 text/enriched version of same message
|
||||
goes here ...
|
||||
|
||||
--boundary42
|
||||
Content-Type: application/x-whatever
|
||||
|
||||
... fanciest version of same message goes here ...
|
||||
|
||||
--boundary42--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 22,
|
||||
"hour": 9,
|
||||
"minute": 41,
|
||||
"second": 9,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 8,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
"mime_version": "1.0",
|
||||
"subject": "Formatted text mail",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "boundary42"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"contents": "... plain text version of message goes here ...<br/>"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "... plain text version of message goes here ...\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Text": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "enriched"
|
||||
}
|
||||
},
|
||||
"contents": "... RFC 1896 text/enriched version of same message\n goes here ...\n"
|
||||
}
|
||||
},
|
||||
{
|
||||
"File": {
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "application",
|
||||
"c_subtype": "x-whatever"
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
46,
|
||||
46,
|
||||
46,
|
||||
32,
|
||||
102,
|
||||
97,
|
||||
110,
|
||||
99,
|
||||
105,
|
||||
101,
|
||||
115,
|
||||
116,
|
||||
32,
|
||||
118,
|
||||
101,
|
||||
114,
|
||||
115,
|
||||
105,
|
||||
111,
|
||||
110,
|
||||
32,
|
||||
111,
|
||||
102,
|
||||
32,
|
||||
115,
|
||||
97,
|
||||
109,
|
||||
101,
|
||||
32,
|
||||
109,
|
||||
101,
|
||||
115,
|
||||
115,
|
||||
97,
|
||||
103,
|
||||
101,
|
||||
32,
|
||||
103,
|
||||
111,
|
||||
101,
|
||||
115,
|
||||
32,
|
||||
104,
|
||||
101,
|
||||
114,
|
||||
101,
|
||||
32,
|
||||
46,
|
||||
46,
|
||||
46,
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
From: Moderator-Address
|
||||
To: Recipient-List
|
||||
Date: Mon, 22 Mar 1994 13:34:51 +0000
|
||||
Subject: Internet Digest, volume 42
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="---- main boundary ----"
|
||||
|
||||
------ main boundary ----
|
||||
|
||||
...Introductory text or table of contents...
|
||||
|
||||
------ main boundary ----
|
||||
Content-Type: multipart/digest;
|
||||
boundary="---- next message ----"
|
||||
|
||||
------ next message ----
|
||||
|
||||
From: someone-else
|
||||
Date: Fri, 26 Mar 1993 11:13:32 +0200
|
||||
Subject: my opinion
|
||||
|
||||
...body goes here ...
|
||||
|
||||
------ next message ----
|
||||
|
||||
From: someone-else-again
|
||||
Date: Fri, 26 Mar 1993 10:07:13 -0500
|
||||
Subject: my different opinion
|
||||
|
||||
... another body goes here ...
|
||||
|
||||
------ next message ------
|
||||
|
||||
------ main boundary ------
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 1994,
|
||||
"month": 3,
|
||||
"day": 22,
|
||||
"hour": 13,
|
||||
"minute": 34,
|
||||
"second": 51,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 0,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Moderator-Address"
|
||||
}
|
||||
},
|
||||
"mime_version": "1.0",
|
||||
"subject": "Internet Digest, volume 42",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Recipient-List"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "---- main boundary ----"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "...Introductory text or table of contents...\n"
|
||||
}
|
||||
],
|
||||
"attachments": [
|
||||
{
|
||||
"Message": {
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 11,
|
||||
"minute": 13,
|
||||
"second": 32,
|
||||
"tz_before_gmt": false,
|
||||
"tz_hour": 2,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else"
|
||||
}
|
||||
},
|
||||
"subject": "my opinion"
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "...body goes here ...\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Message": {
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 26,
|
||||
"hour": 10,
|
||||
"minute": 7,
|
||||
"second": 13,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 5,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "someone-else-again"
|
||||
}
|
||||
},
|
||||
"subject": "my different opinion"
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "... another body goes here ...\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
From: Nathaniel Borenstein <nsb@bellcore.com>
|
||||
To: Ned Freed <ned@innosoft.com>
|
||||
Date: Sun, 21 Mar 1993 23:56:48 -0800 (PST)
|
||||
Subject: Sample message
|
||||
MIME-Version: 1.0
|
||||
Content-type: multipart/mixed; boundary="simple boundary"
|
||||
|
||||
This is the preamble. It is to be ignored, though it
|
||||
is a handy place for composition agents to include an
|
||||
explanatory note to non-MIME conformant readers.
|
||||
|
||||
--simple boundary
|
||||
|
||||
This is implicitly typed plain US-ASCII text.
|
||||
It does NOT end with a linebreak.
|
||||
--simple boundary
|
||||
Content-type: text/plain; charset=us-ascii
|
||||
|
||||
This is explicitly typed plain US-ASCII text.
|
||||
It DOES end with a linebreak.
|
||||
|
||||
--simple boundary--
|
||||
|
||||
This is the epilogue. It is also to be ignored.
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"date": {
|
||||
"year": 1993,
|
||||
"month": 3,
|
||||
"day": 21,
|
||||
"hour": 23,
|
||||
"minute": 56,
|
||||
"second": 48,
|
||||
"tz_before_gmt": true,
|
||||
"tz_hour": 8,
|
||||
"tz_minute": 0
|
||||
},
|
||||
"from": {
|
||||
"Address": {
|
||||
"name": "Nathaniel Borenstein",
|
||||
"address": "nsb@bellcore.com"
|
||||
}
|
||||
},
|
||||
"mime_version": "1.0",
|
||||
"subject": "Sample message",
|
||||
"to": {
|
||||
"Address": {
|
||||
"name": "Ned Freed",
|
||||
"address": "ned@innosoft.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "mixed",
|
||||
"attributes": {
|
||||
"boundary": "simple boundary"
|
||||
}
|
||||
}
|
||||
},
|
||||
"text_body": [
|
||||
{
|
||||
"contents": "This is implicitly typed plain US-ASCII text.\nIt does NOT end with a linebreak."
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "us-ascii"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "This is explicitly typed plain US-ASCII text.\nIt DOES end with a linebreak.\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
From: sender@example.com
|
||||
To: recipient@example.com
|
||||
Subject: Multipart Email Example
|
||||
Content-Type: multipart/alternative; boundary="boundary-string"
|
||||
|
||||
--boundary-string
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Content-Disposition: inline
|
||||
|
||||
Plain text email goes here!
|
||||
This is the fallback if email client does not support HTML
|
||||
|
||||
--boundary-string
|
||||
Content-Type: text/html; charset="utf-8"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Content-Disposition: inline
|
||||
|
||||
<h1>This is the HTML Section!</h1>
|
||||
<p>This is what displays in most modern email clients</p>
|
||||
|
||||
--boundary-string--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
{
|
||||
"header": {
|
||||
"from": {
|
||||
"Address": {
|
||||
"address": "sender@example.com"
|
||||
}
|
||||
},
|
||||
"subject": "Multipart Email Example",
|
||||
"to": {
|
||||
"Address": {
|
||||
"address": "recipient@example.com"
|
||||
}
|
||||
},
|
||||
"content_type": {
|
||||
"c_type": "multipart",
|
||||
"c_subtype": "alternative",
|
||||
"attributes": {
|
||||
"boundary": "boundary-string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"html_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_disposition": {
|
||||
"c_type": "inline"
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "html",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "<h1>This is the HTML Section!</h1>\n<p>This is what displays in most modern email clients</p>\n"
|
||||
}
|
||||
],
|
||||
"text_body": [
|
||||
{
|
||||
"header": {
|
||||
"content_disposition": {
|
||||
"c_type": "inline"
|
||||
},
|
||||
"content_transfer_encoding": "quoted-printable",
|
||||
"content_type": {
|
||||
"c_type": "text",
|
||||
"c_subtype": "plain",
|
||||
"attributes": {
|
||||
"charset": "utf-8"
|
||||
}
|
||||
}
|
||||
},
|
||||
"contents": "Plain text email goes here!\nThis is the fallback if email client does not support HTML\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
Subject: RFC 8621 Section 4.1.4 test
|
||||
Content-Type: multipart/mixed; boundary="1"
|
||||
|
||||
--1
|
||||
Content-Type: text/plain; content-disposition=inline
|
||||
|
||||
A
|
||||
--1
|
||||
Content-Type: multipart/mixed; boundary="2"
|
||||
|
||||
--2
|
||||
Content-Type: multipart/alternative; boundary="3"
|
||||
|
||||
--3
|
||||
Content-Type: multipart/mixed; boundary="4"
|
||||
|
||||
--4
|
||||
Content-Type: text/plain; content-disposition=inline
|
||||
|
||||
B
|
||||
--4
|
||||
Content-Type: image/jpeg; content-disposition=inline
|
||||
|
||||
C
|
||||
--4
|
||||
Content-Type: text/plain; content-disposition=inline
|
||||
|
||||
D
|
||||
--4--
|
||||
|
||||
--3
|
||||
Content-Type: multipart/related; boundary="5"
|
||||
|
||||
--5
|
||||
Content-Type: text/html
|
||||
|
||||
E
|
||||
--5
|
||||
Content-Type: image/jpeg
|
||||
|
||||
F
|
||||
--5--
|
||||
|
||||
--3--
|
||||
|
||||
--2
|
||||
Content-Type: image/jpeg; content-disposition=attachment
|
||||
|
||||
G
|
||||
--2
|
||||
Content-Type: application/x-excel
|
||||
|
||||
H
|
||||
--2
|
||||
Content-Type: message/rfc822
|
||||
|
||||
Subject: J
|
||||
|
||||
J
|
||||
--2--
|
||||
|
||||
--1
|
||||
Content-Type: text/plain; content-disposition=inline
|
||||
|
||||
K
|
||||
--1--
|
||||
|
||||
---- EXPECTED STRUCTURE ----
|
||||
|
||||
Reference in New Issue
Block a user