diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-07-05 11:44:22 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-07-05 11:44:22 +0200 |
commit | 50b2efe6da444bcd69295933040a55ebc19eb2c1 (patch) | |
tree | bf7965c8e2c04d15f9bb559ccf65b49546786c8b /tests/emails/dxflrs | |
parent | f97b0a10a024cb57c59cf1088030b727ff9b8d53 (diff) | |
download | aerogramme-50b2efe6da444bcd69295933040a55ebc19eb2c1.tar.gz aerogramme-50b2efe6da444bcd69295933040a55ebc19eb2c1.zip |
Add our own test emails + parse result
Diffstat (limited to 'tests/emails/dxflrs')
-rw-r--r-- | tests/emails/dxflrs/0001_simple.body | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0001_simple.bodystructure | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0001_simple.eml | 4 | ||||
-rw-r--r-- | tests/emails/dxflrs/0002_mime.body | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0002_mime.bodystructure | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0002_mime.eml | 17 | ||||
-rw-r--r-- | tests/emails/dxflrs/0003_mime-in-mime.body | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0003_mime-in-mime.bodystructure | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0003_mime-in-mime.eml | 17 | ||||
-rw-r--r-- | tests/emails/dxflrs/0004_msg-in-msg.body | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0004_msg-in-msg.bodystructure | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0004_msg-in-msg.eml | 11 | ||||
-rw-r--r-- | tests/emails/dxflrs/0005_mail-parser-readme.body | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0005_mail-parser-readme.bodystructure | 1 | ||||
-rw-r--r-- | tests/emails/dxflrs/0005_mail-parser-readme.eml | 39 |
15 files changed, 98 insertions, 0 deletions
diff --git a/tests/emails/dxflrs/0001_simple.body b/tests/emails/dxflrs/0001_simple.body new file mode 100644 index 0000000..7942837 --- /dev/null +++ b/tests/emails/dxflrs/0001_simple.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 49 1))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0001_simple.bodystructure b/tests/emails/dxflrs/0001_simple.bodystructure new file mode 100644 index 0000000..8f0e467 --- /dev/null +++ b/tests/emails/dxflrs/0001_simple.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 49 1 NIL NIL NIL NIL))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0001_simple.eml b/tests/emails/dxflrs/0001_simple.eml new file mode 100644 index 0000000..f66cbc1 --- /dev/null +++ b/tests/emails/dxflrs/0001_simple.eml @@ -0,0 +1,4 @@ +From: Garage team <garagehq@deuxfleurs.fr>
+Subject: Welcome to Aerogramme!!
+
+This is just a test email, feel free to ignore.
diff --git a/tests/emails/dxflrs/0002_mime.body b/tests/emails/dxflrs/0002_mime.body new file mode 100644 index 0000000..a6c1dd9 --- /dev/null +++ b/tests/emails/dxflrs/0002_mime.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 9 1)("text" "html" ("charset" "utf-8") NIL NIL "8bit" 16 1) "alternative"))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0002_mime.bodystructure b/tests/emails/dxflrs/0002_mime.bodystructure new file mode 100644 index 0000000..1dce36b --- /dev/null +++ b/tests/emails/dxflrs/0002_mime.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 9 1 NIL NIL NIL NIL)("text" "html" ("charset" "utf-8") NIL NIL "8bit" 16 1 NIL NIL NIL NIL) "alternative" ("boundary" "festivus") NIL NIL NIL))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0002_mime.eml b/tests/emails/dxflrs/0002_mime.eml new file mode 100644 index 0000000..c03e037 --- /dev/null +++ b/tests/emails/dxflrs/0002_mime.eml @@ -0,0 +1,17 @@ +From: Garage team <garagehq@deuxfleurs.fr>
+Content-Type: multipart/alternative; boundary="festivus";
+Subject: Welcome to Aerogramme!!
+
+--festivus
+Content-Type: text/plain; charset="us-ascii"
+Content-Transfer-Encoding: 7bit
+
+Hello 1
+
+--festivus
+Content-Type: text/html; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+<p>Hello 2</p>
+
+--festivus--
diff --git a/tests/emails/dxflrs/0003_mime-in-mime.body b/tests/emails/dxflrs/0003_mime-in-mime.body new file mode 100644 index 0000000..5c6c9f8 --- /dev/null +++ b/tests/emails/dxflrs/0003_mime-in-mime.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 7 0)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 7 0) "mixed") "mixed"))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0003_mime-in-mime.bodystructure b/tests/emails/dxflrs/0003_mime-in-mime.bodystructure new file mode 100644 index 0000000..e2535bb --- /dev/null +++ b/tests/emails/dxflrs/0003_mime-in-mime.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 7 0 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 7 0 NIL NIL NIL NIL) "mixed" ("boundary" "child") NIL NIL NIL) "mixed" ("boundary" "parent") NIL NIL NIL))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0003_mime-in-mime.eml b/tests/emails/dxflrs/0003_mime-in-mime.eml new file mode 100644 index 0000000..f98c015 --- /dev/null +++ b/tests/emails/dxflrs/0003_mime-in-mime.eml @@ -0,0 +1,17 @@ +From: Garage team <garagehq@deuxfleurs.fr>
+Content-Type: multipart/mixed; boundary="parent";
+Subject: Welcome to Aerogramme!!
+
+--parent
+Content-Type: multipart/mixed; boundary="child";
+
+--child
+Content-Type: text/plain; charset="us-ascii"
+
+Hello 1
+--child
+Content-Type: text/plain; charset="us-ascii"
+
+Hello 2
+--child--
+--parent--
diff --git a/tests/emails/dxflrs/0004_msg-in-msg.body b/tests/emails/dxflrs/0004_msg-in-msg.body new file mode 100644 index 0000000..8149cfd --- /dev/null +++ b/tests/emails/dxflrs/0004_msg-in-msg.body @@ -0,0 +1 @@ +(BODY (("message" "rfc822" NIL NIL NIL "7bit" 129 (NIL "Welcome to Aerogramme!!" (("Garage team" NIL "garagehq" "deuxfleurs.fr")) (("Garage team" NIL "garagehq" "deuxfleurs.fr")) (("Garage team" NIL "garagehq" "deuxfleurs.fr")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 49 1) 4) "mixed"))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0004_msg-in-msg.bodystructure b/tests/emails/dxflrs/0004_msg-in-msg.bodystructure new file mode 100644 index 0000000..22644b8 --- /dev/null +++ b/tests/emails/dxflrs/0004_msg-in-msg.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("message" "rfc822" NIL NIL NIL "7bit" 129 (NIL "Welcome to Aerogramme!!" (("Garage team" NIL "garagehq" "deuxfleurs.fr")) (("Garage team" NIL "garagehq" "deuxfleurs.fr")) (("Garage team" NIL "garagehq" "deuxfleurs.fr")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 49 1 NIL NIL NIL NIL) 4 NIL NIL NIL NIL) "mixed" ("boundary" "delim") NIL NIL NIL))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0004_msg-in-msg.eml b/tests/emails/dxflrs/0004_msg-in-msg.eml new file mode 100644 index 0000000..051d003 --- /dev/null +++ b/tests/emails/dxflrs/0004_msg-in-msg.eml @@ -0,0 +1,11 @@ +From: Garage team <garagehq@deuxfleurs.fr>
+Content-Type: multipart/mixed; boundary="delim";
+Subject: Welcome to Aerogramme!!
+
+--delim
+Content-Type: message/rfc822
+
+From: Garage team <garagehq@deuxfleurs.fr>
+Subject: Welcome to Aerogramme!!
+
+This is just a test email, feel free to ignore.
diff --git a/tests/emails/dxflrs/0005_mail-parser-readme.body b/tests/emails/dxflrs/0005_mail-parser-readme.body new file mode 100644 index 0000000..2d2b350 --- /dev/null +++ b/tests/emails/dxflrs/0005_mail-parser-readme.body @@ -0,0 +1 @@ +(BODY (("text" "html" ("charset" "us-ascii") NIL NIL "base64" 242 3)("message" "rfc822" NIL NIL NIL "7bit" 744 (NIL "Exporting my book about coffee tables" (("Cosmo Kramer" NIL "kramer" "kramerica.com")) (("Cosmo Kramer" NIL "kramer" "kramerica.com")) (("Cosmo Kramer" NIL "kramer" "kramerica.com")) NIL NIL NIL NIL NIL) (("text" "plain" ("charset" "utf-16") NIL NIL "quoted-printable" 231 3)("image" "gif" ("name*" "''Book about utf-8''%e2%98%95") NIL NIL "Base64" 56) "mixed") 20) "mixed"))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0005_mail-parser-readme.bodystructure b/tests/emails/dxflrs/0005_mail-parser-readme.bodystructure new file mode 100644 index 0000000..e5d0af9 --- /dev/null +++ b/tests/emails/dxflrs/0005_mail-parser-readme.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "html" ("charset" "us-ascii") NIL NIL "base64" 242 3 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 744 (NIL "Exporting my book about coffee tables" (("Cosmo Kramer" NIL "kramer" "kramerica.com")) (("Cosmo Kramer" NIL "kramer" "kramerica.com")) (("Cosmo Kramer" NIL "kramer" "kramerica.com")) NIL NIL NIL NIL NIL) (("text" "plain" ("charset" "utf-16") NIL NIL "quoted-printable" 231 3 NIL NIL NIL NIL)("image" "gif" ("name*" "''Book about utf-8''%e2%98%95") NIL NIL "Base64" 56 NIL ("attachment" NIL) NIL NIL) "mixed" ("boundary" "giddyup") NIL NIL NIL) 20 NIL NIL NIL NIL) "mixed" ("boundary" "festivus") NIL NIL NIL))
\ No newline at end of file diff --git a/tests/emails/dxflrs/0005_mail-parser-readme.eml b/tests/emails/dxflrs/0005_mail-parser-readme.eml new file mode 100644 index 0000000..40e4fa2 --- /dev/null +++ b/tests/emails/dxflrs/0005_mail-parser-readme.eml @@ -0,0 +1,39 @@ +From: Art Vandelay <art@vandelay.com> (Vandelay Industries)
+To: "Colleagues": "James Smythe" <james@vandelay.com>; Friends:
+ jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= <john@example.com>;
+Date: Sat, 20 Nov 2021 14:22:01 -0800
+Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=
+Content-Type: multipart/mixed; boundary="festivus";
+
+--festivus
+Content-Type: text/html; charset="us-ascii"
+Content-Transfer-Encoding: base64
+
+PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle
+HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm
+cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8
+gJiN4MjYzQTs8L3A+PC9odG1sPg==
+--festivus
+Content-Type: message/rfc822
+
+From: "Cosmo Kramer" <kramer@kramerica.com>
+Subject: Exporting my book about coffee tables
+Content-Type: multipart/mixed; boundary="giddyup";
+
+--giddyup
+Content-Type: text/plain; charset="utf-16"
+Content-Transfer-Encoding: quoted-printable
+
+=FF=FE=0C!5=D8"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8"=DD =005=D8"=
+=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =
+=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8"=
+=DD5=D8=1E=DD5=D80=DD5=D8"=DD!=00
+--giddyup
+Content-Type: image/gif; name*1="about "; name*0="Book ";
+ name*2*=utf-8''%e2%98%95 tables.gif
+Content-Transfer-Encoding: Base64
+Content-Disposition: attachment
+
+R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
+--giddyup--
+--festivus--
|