From c58220701ada0ccca85cd290a57b3e2277537b75 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Tue, 21 Oct 2014 20:50:13 -0700 Subject: Implement unit tests for message builder and message parsers --- unittest/data/parser/input/messages/rfc2060.txt | 74 +++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 unittest/data/parser/input/messages/rfc2060.txt (limited to 'unittest/data/parser/input/messages/rfc2060.txt') diff --git a/unittest/data/parser/input/messages/rfc2060.txt b/unittest/data/parser/input/messages/rfc2060.txt new file mode 100644 index 00000000..84579220 --- /dev/null +++ b/unittest/data/parser/input/messages/rfc2060.txt @@ -0,0 +1,74 @@ +From: me@myself.com +To: me@myself.com +Subject: Sample message structure for IMAP part specifiers +MIME-Version: 1.0 +Content-Type: MULTIPART/MIXED; boundary="x" + +--x +Content-Type: TEXT/PLAIN + +This part specifier should be: 1 + +--x +Content-Type: APPLICATION/OCTET-STREAM + +This part specifier should be: 2 + +--x +Content-Type: MESSAGE/RFC822 + +From: me@myself.com +To: me@myself.com +Subject: This part specifier should be: 3 +MIME-Version: 1.0 +Content-Type: MULTIPART/MIXED; boundary="3.x" + +--3.x +Content-Type: TEXT/PLAIN + +This part specifier should be: 3.1 + +--3.x +Content-Type: APPLICATION/OCTET-STREAM + +This part specifier should be: 3.2 + +--3.x-- +--x +Content-Type: MULTIPART/MIXED; boundary="4.x" + +--4.x +Content-Type: IMAGE/GIF + +This part specifier should be: 4.1 + +--4.x +Content-Type: MESSAGE/RFC822 + +From: me@myself.com +To: me@myself.com +Subject: This part specifier should be: 4.2 +MIME-Version: 1.0 +Content-Type: MULTIPART/MIXED; boundary="4.2.x" + +--4.2.x +Content-Type: TEXT/PLAIN + +This part specifier should be: 4.2.1 + +--4.2.x +Content-Type: MULTIPART/ALTERNATIVE; boundary="4.2.2.x" + +--4.2.2.x +Content-Type: TEXT/PLAIN + +This part specifier should be: 4.2.2.1 + +--4.2.2.x +Content-Type: TEXT/RICHTEXT + +This part specifier should be: 4.2.2.2 + +--4.2.2.x-- +--4.2.x-- +--x-- -- cgit v1.2.3