aboutsummaryrefslogtreecommitdiff
path: root/tests/emails/rfc
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-07-05 11:44:22 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-07-05 11:44:22 +0200
commit50b2efe6da444bcd69295933040a55ebc19eb2c1 (patch)
treebf7965c8e2c04d15f9bb559ccf65b49546786c8b /tests/emails/rfc
parentf97b0a10a024cb57c59cf1088030b727ff9b8d53 (diff)
downloadaerogramme-50b2efe6da444bcd69295933040a55ebc19eb2c1.tar.gz
aerogramme-50b2efe6da444bcd69295933040a55ebc19eb2c1.zip
Add our own test emails + parse result
Diffstat (limited to 'tests/emails/rfc')
-rw-r--r--tests/emails/rfc/000.body1
-rw-r--r--tests/emails/rfc/000.bodystructure1
-rw-r--r--tests/emails/rfc/001.body1
-rw-r--r--tests/emails/rfc/001.bodystructure1
-rw-r--r--tests/emails/rfc/002.body1
-rw-r--r--tests/emails/rfc/002.bodystructure1
-rw-r--r--tests/emails/rfc/003.body1
-rw-r--r--tests/emails/rfc/003.bodystructure1
-rw-r--r--tests/emails/rfc/004.body1
-rw-r--r--tests/emails/rfc/004.bodystructure1
-rw-r--r--tests/emails/rfc/005.body1
-rw-r--r--tests/emails/rfc/005.bodystructure1
-rw-r--r--tests/emails/rfc/006.body1
-rw-r--r--tests/emails/rfc/006.bodystructure1
-rw-r--r--tests/emails/rfc/007.body1
-rw-r--r--tests/emails/rfc/007.bodystructure1
-rw-r--r--tests/emails/rfc/008.body1
-rw-r--r--tests/emails/rfc/008.bodystructure1
18 files changed, 18 insertions, 0 deletions
diff --git a/tests/emails/rfc/000.body b/tests/emails/rfc/000.body
new file mode 100644
index 0000000..6830fc9
--- /dev/null
+++ b/tests/emails/rfc/000.body
@@ -0,0 +1 @@
+(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 269 7)("text" "plain" ("charset" "US-ASCII") NIL NIL "7bit" 114 3)(("audio" "basic" NIL NIL NIL "base64" 87)("image" "jpeg" NIL NIL NIL "base64" 45) "parallel")("text" "enriched" ("charset" "us-ascii") NIL NIL "7bit" 145 5)("message" "rfc822" NIL NIL NIL "7bit" 230 (NIL "(subject in US-ASCII)" NIL NIL NIL NIL NIL NIL NIL NIL) ("Text" "plain" ("charset" "ISO-8859-1") NIL NIL "Quoted-printable" 49 1) 7) "mixed")) \ No newline at end of file
diff --git a/tests/emails/rfc/000.bodystructure b/tests/emails/rfc/000.bodystructure
new file mode 100644
index 0000000..0e6c4df
--- /dev/null
+++ b/tests/emails/rfc/000.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 269 7 NIL NIL NIL NIL)("text" "plain" ("charset" "US-ASCII") NIL NIL "7bit" 114 3 NIL NIL NIL NIL)(("audio" "basic" NIL NIL NIL "base64" 87 NIL NIL NIL NIL)("image" "jpeg" NIL NIL NIL "base64" 45 NIL NIL NIL NIL) "parallel" ("boundary" "unique-boundary-2") NIL NIL NIL)("text" "enriched" ("charset" "us-ascii") NIL NIL "7bit" 145 5 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 230 (NIL "(subject in US-ASCII)" NIL NIL NIL NIL NIL NIL NIL NIL) ("Text" "plain" ("charset" "ISO-8859-1") NIL NIL "Quoted-printable" 49 1 NIL NIL NIL NIL) 7 NIL NIL NIL NIL) "mixed" ("boundary" "unique-boundary-1") NIL NIL NIL)) \ No newline at end of file
diff --git a/tests/emails/rfc/001.body b/tests/emails/rfc/001.body
new file mode 100644
index 0000000..544387a
--- /dev/null
+++ b/tests/emails/rfc/001.body
@@ -0,0 +1 @@
+(BODY (("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)") NIL NIL "7bit" 81)("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)") NIL NIL "7bit" 81)("message" "external-body" ("access-type" "mail-server" "expiration" "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)") NIL NIL "7bit" 101) "alternative")) \ No newline at end of file
diff --git a/tests/emails/rfc/001.bodystructure b/tests/emails/rfc/001.bodystructure
new file mode 100644
index 0000000..f5c0c84
--- /dev/null
+++ b/tests/emails/rfc/001.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("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)") NIL NIL "7bit" 81 NIL NIL NIL NIL)("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)") NIL NIL "7bit" 81 NIL NIL NIL NIL)("message" "external-body" ("access-type" "mail-server" "expiration" "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)") NIL NIL "7bit" 101 NIL NIL NIL NIL) "alternative" ("boundary" "42") NIL NIL NIL)) \ No newline at end of file
diff --git a/tests/emails/rfc/002.body b/tests/emails/rfc/002.body
new file mode 100644
index 0000000..00c8986
--- /dev/null
+++ b/tests/emails/rfc/002.body
@@ -0,0 +1 @@
+(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 66 5)("message" "rfc822" NIL NIL NIL "7bit" 2026 ("Mon, 13 Aug 1998 17:42:41 +1000" "Map of Argentina with Description" (("Bill Clinton" NIL "president" "whitehouse.gov")) (("Bill Clinton" NIL "president" "whitehouse.gov")) (("Bill Clinton" NIL "president" "whitehouse.gov")) (("A1 Gore" NIL "vice-president" "whitehouse.gov")) NIL NIL NIL "<199804130742.RAA20366@mai1host.whitehouse.gov>") (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 367 12)("image" "gif" ("name" "map_of_Argentina.gif") NIL NIL "base64" 394) "mixed") 47) "mixed")) \ No newline at end of file
diff --git a/tests/emails/rfc/002.bodystructure b/tests/emails/rfc/002.bodystructure
new file mode 100644
index 0000000..ee41c1d
--- /dev/null
+++ b/tests/emails/rfc/002.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 66 5 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 2026 ("Mon, 13 Aug 1998 17:42:41 +1000" "Map of Argentina with Description" (("Bill Clinton" NIL "president" "whitehouse.gov")) (("Bill Clinton" NIL "president" "whitehouse.gov")) (("Bill Clinton" NIL "president" "whitehouse.gov")) (("A1 Gore" NIL "vice-president" "whitehouse.gov")) NIL NIL NIL "<199804130742.RAA20366@mai1host.whitehouse.gov>") (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 367 12 NIL NIL NIL NIL)("image" "gif" ("name" "map_of_Argentina.gif") NIL NIL "base64" 394 NIL ("inline" ("fi1ename" "map_of_Argentina.gif")) NIL NIL) "mixed" ("boundary" "DC8------------DC8638F443D87A7F0726DEF7") NIL NIL NIL) 47 NIL ("inline" NIL) NIL NIL) "mixed" ("boundary" "D7F------------D7FD5A0B8AB9C65CCDBFA872") NIL NIL NIL)) \ No newline at end of file
diff --git a/tests/emails/rfc/003.body b/tests/emails/rfc/003.body
new file mode 100644
index 0000000..05005ea
--- /dev/null
+++ b/tests/emails/rfc/003.body
@@ -0,0 +1 @@
+(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 49 1)("text" "enriched" ("charset" "us-ascii") NIL NIL "7bit" 71 2)("application" "x-whatever" NIL NIL NIL "7bit" 52) "alternative")) \ No newline at end of file
diff --git a/tests/emails/rfc/003.bodystructure b/tests/emails/rfc/003.bodystructure
new file mode 100644
index 0000000..507566b
--- /dev/null
+++ b/tests/emails/rfc/003.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 49 1 NIL NIL NIL NIL)("text" "enriched" ("charset" "us-ascii") NIL NIL "7bit" 71 2 NIL NIL NIL NIL)("application" "x-whatever" NIL NIL NIL "7bit" 52 NIL NIL NIL NIL) "alternative" ("boundary" "boundary42") NIL NIL NIL)) \ No newline at end of file
diff --git a/tests/emails/rfc/004.body b/tests/emails/rfc/004.body
new file mode 100644
index 0000000..3745fbf
--- /dev/null
+++ b/tests/emails/rfc/004.body
@@ -0,0 +1 @@
+(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 46 1)(("message" "rfc822" NIL NIL NIL "7bit" 105 ("Fri, 26 Mar 1993 11:13:32 +0200" "my opinion" ((NIL NIL "someone-else" "MISSING_DOMAIN")) ((NIL NIL "someone-else" "MISSING_DOMAIN")) ((NIL NIL "someone-else" "MISSING_DOMAIN")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 23 1) 5)("message" "rfc822" NIL NIL NIL "7bit" 130 ("Fri, 26 Mar 1993 10:07:13 -0500" "my different opinion" ((NIL NIL "someone-else-again" "MISSING_DOMAIN")) ((NIL NIL "someone-else-again" "MISSING_DOMAIN")) ((NIL NIL "someone-else-again" "MISSING_DOMAIN")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 32 1) 5) "digest") "mixed")) \ No newline at end of file
diff --git a/tests/emails/rfc/004.bodystructure b/tests/emails/rfc/004.bodystructure
new file mode 100644
index 0000000..d6ded58
--- /dev/null
+++ b/tests/emails/rfc/004.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 46 1 NIL NIL NIL NIL)(("message" "rfc822" NIL NIL NIL "7bit" 105 ("Fri, 26 Mar 1993 11:13:32 +0200" "my opinion" ((NIL NIL "someone-else" "MISSING_DOMAIN")) ((NIL NIL "someone-else" "MISSING_DOMAIN")) ((NIL NIL "someone-else" "MISSING_DOMAIN")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 23 1 NIL NIL NIL NIL) 5 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 130 ("Fri, 26 Mar 1993 10:07:13 -0500" "my different opinion" ((NIL NIL "someone-else-again" "MISSING_DOMAIN")) ((NIL NIL "someone-else-again" "MISSING_DOMAIN")) ((NIL NIL "someone-else-again" "MISSING_DOMAIN")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 32 1 NIL NIL NIL NIL) 5 NIL NIL NIL NIL) "digest" ("boundary" "---- next message ----") NIL NIL NIL) "mixed" ("boundary" "---- main boundary ----") NIL NIL NIL)) \ No newline at end of file
diff --git a/tests/emails/rfc/005.body b/tests/emails/rfc/005.body
new file mode 100644
index 0000000..3394c76
--- /dev/null
+++ b/tests/emails/rfc/005.body
@@ -0,0 +1 @@
+(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 80 1)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 78 2) "mixed")) \ No newline at end of file
diff --git a/tests/emails/rfc/005.bodystructure b/tests/emails/rfc/005.bodystructure
new file mode 100644
index 0000000..1b8f768
--- /dev/null
+++ b/tests/emails/rfc/005.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 80 1 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 78 2 NIL NIL NIL NIL) "mixed" ("boundary" "simple boundary") NIL NIL NIL)) \ No newline at end of file
diff --git a/tests/emails/rfc/006.body b/tests/emails/rfc/006.body
new file mode 100644
index 0000000..ecccbf0
--- /dev/null
+++ b/tests/emails/rfc/006.body
@@ -0,0 +1 @@
+(BODY (("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 89 2)("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 95 2) "alternative")) \ No newline at end of file
diff --git a/tests/emails/rfc/006.bodystructure b/tests/emails/rfc/006.bodystructure
new file mode 100644
index 0000000..97849bb
--- /dev/null
+++ b/tests/emails/rfc/006.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 89 2 NIL ("inline" NIL) NIL NIL)("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 95 2 NIL ("inline" NIL) NIL NIL) "alternative" ("boundary" "boundary-string") NIL NIL NIL)) \ No newline at end of file
diff --git a/tests/emails/rfc/007.body b/tests/emails/rfc/007.body
new file mode 100644
index 0000000..5d7f252
--- /dev/null
+++ b/tests/emails/rfc/007.body
@@ -0,0 +1 @@
+(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0)(((("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0)("image" "jpeg" NIL NIL NIL "7bit" 1)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0) "mixed")(("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 14 0)("image" "jpeg" NIL NIL NIL "7bit" 1) "related") "alternative")("image" "jpeg" NIL NIL NIL "7bit" 1)("application" "x-excel" NIL NIL NIL "7bit" 1)("message" "rfc822" NIL NIL NIL "7bit" 15 (NIL "J" NIL NIL NIL NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0) 2) "mixed")("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0) "mixed")) \ No newline at end of file
diff --git a/tests/emails/rfc/007.bodystructure b/tests/emails/rfc/007.bodystructure
new file mode 100644
index 0000000..0cd8900
--- /dev/null
+++ b/tests/emails/rfc/007.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0 NIL ("inline" NIL) NIL NIL)(((("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0 NIL ("inline" NIL) NIL NIL)("image" "jpeg" NIL NIL NIL "7bit" 1 NIL ("inline" NIL) NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0 NIL ("inline" NIL) NIL NIL) "mixed" ("boundary" "4") NIL NIL NIL)(("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 14 0 NIL NIL NIL NIL)("image" "jpeg" NIL NIL NIL "7bit" 1 NIL NIL NIL NIL) "related" ("boundary" "5") NIL NIL NIL) "alternative" ("boundary" "3") NIL NIL NIL)("image" "jpeg" NIL NIL NIL "7bit" 1 NIL ("attachment" NIL) NIL NIL)("application" "x-excel" NIL NIL NIL "7bit" 1 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 15 (NIL "J" NIL NIL NIL NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0 NIL NIL NIL NIL) 2 NIL NIL NIL NIL) "mixed" ("boundary" "2") NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0 NIL ("inline" NIL) NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file
diff --git a/tests/emails/rfc/008.body b/tests/emails/rfc/008.body
new file mode 100644
index 0000000..d11beef
--- /dev/null
+++ b/tests/emails/rfc/008.body
@@ -0,0 +1 @@
+(BODY (("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 54 0)("message" "rfc822" NIL NIL NIL "base64" 1196 (NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 0 0) 16) "mixed")) \ No newline at end of file
diff --git a/tests/emails/rfc/008.bodystructure b/tests/emails/rfc/008.bodystructure
new file mode 100644
index 0000000..5078342
--- /dev/null
+++ b/tests/emails/rfc/008.bodystructure
@@ -0,0 +1 @@
+(BODYSTRUCTURE (("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 54 0 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "base64" 1196 (NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 0 0 NIL NIL NIL NIL) 16 NIL ("attachment" ("filename" "attached_email.eml")) NIL NIL) "mixed" ("boundary" "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb") NIL NIL NIL)) \ No newline at end of file