From 50b2efe6da444bcd69295933040a55ebc19eb2c1 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 5 Jul 2022 11:44:22 +0200 Subject: Add our own test emails + parse result --- tests/emails/dxflrs/0001_simple.body | 1 + tests/emails/dxflrs/0001_simple.bodystructure | 1 + tests/emails/dxflrs/0001_simple.eml | 4 ++ tests/emails/dxflrs/0002_mime.body | 1 + tests/emails/dxflrs/0002_mime.bodystructure | 1 + tests/emails/dxflrs/0002_mime.eml | 17 ++++++++ tests/emails/dxflrs/0003_mime-in-mime.body | 1 + .../emails/dxflrs/0003_mime-in-mime.bodystructure | 1 + tests/emails/dxflrs/0003_mime-in-mime.eml | 17 ++++++++ tests/emails/dxflrs/0004_msg-in-msg.body | 1 + tests/emails/dxflrs/0004_msg-in-msg.bodystructure | 1 + tests/emails/dxflrs/0004_msg-in-msg.eml | 11 +++++ tests/emails/dxflrs/0005_mail-parser-readme.body | 1 + .../dxflrs/0005_mail-parser-readme.bodystructure | 1 + tests/emails/dxflrs/0005_mail-parser-readme.eml | 39 +++++++++++++++++ tests/emails/legacy/000.body | 1 + tests/emails/legacy/000.bodystructure | 1 + tests/emails/legacy/001.body | 1 + tests/emails/legacy/001.bodystructure | 1 + tests/emails/legacy/002.body | 1 + tests/emails/legacy/002.bodystructure | 1 + tests/emails/legacy/003.body | 1 + tests/emails/legacy/003.bodystructure | 1 + tests/emails/legacy/004.body | 1 + tests/emails/legacy/004.bodystructure | 1 + tests/emails/legacy/005.body | 1 + tests/emails/legacy/005.bodystructure | 1 + tests/emails/legacy/006.body | 1 + tests/emails/legacy/006.bodystructure | 1 + tests/emails/legacy/007.body | 1 + tests/emails/legacy/007.bodystructure | 1 + tests/emails/legacy/008.body | 1 + tests/emails/legacy/008.bodystructure | 1 + tests/emails/legacy/009.body | 1 + tests/emails/legacy/009.bodystructure | 1 + tests/emails/legacy/010.body | 1 + tests/emails/legacy/010.bodystructure | 1 + tests/emails/legacy/011.body | 1 + tests/emails/legacy/011.bodystructure | 1 + tests/emails/legacy/012.body | 1 + tests/emails/legacy/012.bodystructure | 1 + tests/emails/legacy/013.body | 1 + tests/emails/legacy/013.bodystructure | 1 + tests/emails/legacy/014.body | 1 + tests/emails/legacy/014.bodystructure | 1 + tests/emails/legacy/015.body | 1 + tests/emails/legacy/015.bodystructure | 1 + tests/emails/legacy/016.body | 2 + tests/emails/legacy/016.bodystructure | 2 + tests/emails/legacy/017.body | 1 + tests/emails/legacy/017.bodystructure | 1 + tests/emails/legacy/018.body | 1 + tests/emails/legacy/018.bodystructure | 1 + tests/emails/legacy/019.body | 1 + tests/emails/legacy/019.bodystructure | 1 + tests/emails/legacy/020.body | 1 + tests/emails/legacy/020.bodystructure | 1 + tests/emails/legacy/021.body | 1 + tests/emails/legacy/021.bodystructure | 1 + tests/emails/legacy/022.body | 1 + tests/emails/legacy/022.bodystructure | 1 + tests/emails/legacy/023.body | 1 + tests/emails/legacy/023.bodystructure | 2 + tests/emails/legacy/024.body | 1 + tests/emails/legacy/024.bodystructure | 1 + tests/emails/legacy/025.body | 1 + tests/emails/legacy/025.bodystructure | 1 + tests/emails/legacy/026.body | 2 + tests/emails/legacy/026.bodystructure | 2 + tests/emails/legacy/027.body | 1 + tests/emails/legacy/027.bodystructure | 1 + tests/emails/legacy/028.body | 1 + tests/emails/legacy/028.bodystructure | 1 + tests/emails/legacy/029.body | 1 + tests/emails/legacy/029.bodystructure | 1 + tests/emails/legacy/030.body | 1 + tests/emails/legacy/030.bodystructure | 1 + tests/emails/legacy/031.body | 1 + tests/emails/legacy/031.bodystructure | 1 + tests/emails/legacy/032.body | 1 + tests/emails/legacy/032.bodystructure | 1 + tests/emails/legacy/033.body | 1 + tests/emails/legacy/033.bodystructure | 1 + tests/emails/legacy/034.body | 1 + tests/emails/legacy/034.bodystructure | 1 + tests/emails/legacy/035.body | 1 + tests/emails/legacy/035.bodystructure | 1 + tests/emails/legacy/036.body | 1 + tests/emails/legacy/036.bodystructure | 1 + tests/emails/legacy/037.body | 1 + tests/emails/legacy/037.bodystructure | 1 + tests/emails/legacy/038.body | 1 + tests/emails/legacy/038.bodystructure | 1 + tests/emails/legacy/039.body | 1 + tests/emails/legacy/039.bodystructure | 1 + tests/emails/legacy/040.body | 1 + tests/emails/legacy/040.bodystructure | 1 + tests/emails/legacy/041.body | 1 + tests/emails/legacy/041.bodystructure | 1 + tests/emails/legacy/042.body | 1 + tests/emails/legacy/042.bodystructure | 1 + tests/emails/legacy/043.body | 1 + tests/emails/legacy/043.bodystructure | 1 + tests/emails/legacy/044.body | 1 + tests/emails/legacy/044.bodystructure | 1 + tests/emails/legacy/045.body | 1 + tests/emails/legacy/045.bodystructure | 1 + tests/emails/legacy/046.body | 1 + tests/emails/legacy/046.bodystructure | 1 + tests/emails/legacy/047.body | 1 + tests/emails/legacy/047.bodystructure | 1 + tests/emails/legacy/048.body | 1 + tests/emails/legacy/048.bodystructure | 1 + tests/emails/legacy/049.body | 1 + tests/emails/legacy/049.bodystructure | 1 + tests/emails/legacy/050.body | 1 + tests/emails/legacy/050.bodystructure | 1 + tests/emails/legacy/051.body | 1 + tests/emails/legacy/051.bodystructure | 1 + tests/emails/legacy/052.body | 1 + tests/emails/legacy/052.bodystructure | 1 + tests/emails/legacy/053.body | 1 + tests/emails/legacy/053.bodystructure | 1 + tests/emails/rfc/000.body | 1 + tests/emails/rfc/000.bodystructure | 1 + tests/emails/rfc/001.body | 1 + tests/emails/rfc/001.bodystructure | 1 + tests/emails/rfc/002.body | 1 + tests/emails/rfc/002.bodystructure | 1 + tests/emails/rfc/003.body | 1 + tests/emails/rfc/003.bodystructure | 1 + tests/emails/rfc/004.body | 1 + tests/emails/rfc/004.bodystructure | 1 + tests/emails/rfc/005.body | 1 + tests/emails/rfc/005.bodystructure | 1 + tests/emails/rfc/006.body | 1 + tests/emails/rfc/006.bodystructure | 1 + tests/emails/rfc/007.body | 1 + tests/emails/rfc/007.bodystructure | 1 + tests/emails/rfc/008.body | 1 + tests/emails/rfc/008.bodystructure | 1 + tests/emails/thirdparty/000.body | 1 + tests/emails/thirdparty/000.bodystructure | 1 + tests/emails/thirdparty/001.body | 1 + tests/emails/thirdparty/001.bodystructure | 1 + tests/emails/thirdparty/002.body | 1 + tests/emails/thirdparty/002.bodystructure | 1 + tests/emails/thirdparty/003.body | 1 + tests/emails/thirdparty/003.bodystructure | 1 + tests/emails/thirdparty/004.body | 1 + tests/emails/thirdparty/004.bodystructure | 1 + tests/emails/thirdparty/005.body | 1 + tests/emails/thirdparty/005.bodystructure | 1 + tests/emails/thirdparty/006.body | 1 + tests/emails/thirdparty/006.bodystructure | 1 + tests/emails/thirdparty/007.body | 1 + tests/emails/thirdparty/007.bodystructure | 1 + tests/emails/thirdparty/008.body | 1 + tests/emails/thirdparty/008.bodystructure | 1 + tests/emails/thirdparty/009.body | 1 + tests/emails/thirdparty/009.bodystructure | 1 + tests/emails/thirdparty/010.body | 1 + tests/emails/thirdparty/010.bodystructure | 1 + tests/send-to-imap.py | 51 ++++++++++++++++++++++ 164 files changed, 302 insertions(+) create mode 100644 tests/emails/dxflrs/0001_simple.body create mode 100644 tests/emails/dxflrs/0001_simple.bodystructure create mode 100644 tests/emails/dxflrs/0001_simple.eml create mode 100644 tests/emails/dxflrs/0002_mime.body create mode 100644 tests/emails/dxflrs/0002_mime.bodystructure create mode 100644 tests/emails/dxflrs/0002_mime.eml create mode 100644 tests/emails/dxflrs/0003_mime-in-mime.body create mode 100644 tests/emails/dxflrs/0003_mime-in-mime.bodystructure create mode 100644 tests/emails/dxflrs/0003_mime-in-mime.eml create mode 100644 tests/emails/dxflrs/0004_msg-in-msg.body create mode 100644 tests/emails/dxflrs/0004_msg-in-msg.bodystructure create mode 100644 tests/emails/dxflrs/0004_msg-in-msg.eml create mode 100644 tests/emails/dxflrs/0005_mail-parser-readme.body create mode 100644 tests/emails/dxflrs/0005_mail-parser-readme.bodystructure create mode 100644 tests/emails/dxflrs/0005_mail-parser-readme.eml create mode 100644 tests/emails/legacy/000.body create mode 100644 tests/emails/legacy/000.bodystructure create mode 100644 tests/emails/legacy/001.body create mode 100644 tests/emails/legacy/001.bodystructure create mode 100644 tests/emails/legacy/002.body create mode 100644 tests/emails/legacy/002.bodystructure create mode 100644 tests/emails/legacy/003.body create mode 100644 tests/emails/legacy/003.bodystructure create mode 100644 tests/emails/legacy/004.body create mode 100644 tests/emails/legacy/004.bodystructure create mode 100644 tests/emails/legacy/005.body create mode 100644 tests/emails/legacy/005.bodystructure create mode 100644 tests/emails/legacy/006.body create mode 100644 tests/emails/legacy/006.bodystructure create mode 100644 tests/emails/legacy/007.body create mode 100644 tests/emails/legacy/007.bodystructure create mode 100644 tests/emails/legacy/008.body create mode 100644 tests/emails/legacy/008.bodystructure create mode 100644 tests/emails/legacy/009.body create mode 100644 tests/emails/legacy/009.bodystructure create mode 100644 tests/emails/legacy/010.body create mode 100644 tests/emails/legacy/010.bodystructure create mode 100644 tests/emails/legacy/011.body create mode 100644 tests/emails/legacy/011.bodystructure create mode 100644 tests/emails/legacy/012.body create mode 100644 tests/emails/legacy/012.bodystructure create mode 100644 tests/emails/legacy/013.body create mode 100644 tests/emails/legacy/013.bodystructure create mode 100644 tests/emails/legacy/014.body create mode 100644 tests/emails/legacy/014.bodystructure create mode 100644 tests/emails/legacy/015.body create mode 100644 tests/emails/legacy/015.bodystructure create mode 100644 tests/emails/legacy/016.body create mode 100644 tests/emails/legacy/016.bodystructure create mode 100644 tests/emails/legacy/017.body create mode 100644 tests/emails/legacy/017.bodystructure create mode 100644 tests/emails/legacy/018.body create mode 100644 tests/emails/legacy/018.bodystructure create mode 100644 tests/emails/legacy/019.body create mode 100644 tests/emails/legacy/019.bodystructure create mode 100644 tests/emails/legacy/020.body create mode 100644 tests/emails/legacy/020.bodystructure create mode 100644 tests/emails/legacy/021.body create mode 100644 tests/emails/legacy/021.bodystructure create mode 100644 tests/emails/legacy/022.body create mode 100644 tests/emails/legacy/022.bodystructure create mode 100644 tests/emails/legacy/023.body create mode 100644 tests/emails/legacy/023.bodystructure create mode 100644 tests/emails/legacy/024.body create mode 100644 tests/emails/legacy/024.bodystructure create mode 100644 tests/emails/legacy/025.body create mode 100644 tests/emails/legacy/025.bodystructure create mode 100644 tests/emails/legacy/026.body create mode 100644 tests/emails/legacy/026.bodystructure create mode 100644 tests/emails/legacy/027.body create mode 100644 tests/emails/legacy/027.bodystructure create mode 100644 tests/emails/legacy/028.body create mode 100644 tests/emails/legacy/028.bodystructure create mode 100644 tests/emails/legacy/029.body create mode 100644 tests/emails/legacy/029.bodystructure create mode 100644 tests/emails/legacy/030.body create mode 100644 tests/emails/legacy/030.bodystructure create mode 100644 tests/emails/legacy/031.body create mode 100644 tests/emails/legacy/031.bodystructure create mode 100644 tests/emails/legacy/032.body create mode 100644 tests/emails/legacy/032.bodystructure create mode 100644 tests/emails/legacy/033.body create mode 100644 tests/emails/legacy/033.bodystructure create mode 100644 tests/emails/legacy/034.body create mode 100644 tests/emails/legacy/034.bodystructure create mode 100644 tests/emails/legacy/035.body create mode 100644 tests/emails/legacy/035.bodystructure create mode 100644 tests/emails/legacy/036.body create mode 100644 tests/emails/legacy/036.bodystructure create mode 100644 tests/emails/legacy/037.body create mode 100644 tests/emails/legacy/037.bodystructure create mode 100644 tests/emails/legacy/038.body create mode 100644 tests/emails/legacy/038.bodystructure create mode 100644 tests/emails/legacy/039.body create mode 100644 tests/emails/legacy/039.bodystructure create mode 100644 tests/emails/legacy/040.body create mode 100644 tests/emails/legacy/040.bodystructure create mode 100644 tests/emails/legacy/041.body create mode 100644 tests/emails/legacy/041.bodystructure create mode 100644 tests/emails/legacy/042.body create mode 100644 tests/emails/legacy/042.bodystructure create mode 100644 tests/emails/legacy/043.body create mode 100644 tests/emails/legacy/043.bodystructure create mode 100644 tests/emails/legacy/044.body create mode 100644 tests/emails/legacy/044.bodystructure create mode 100644 tests/emails/legacy/045.body create mode 100644 tests/emails/legacy/045.bodystructure create mode 100644 tests/emails/legacy/046.body create mode 100644 tests/emails/legacy/046.bodystructure create mode 100644 tests/emails/legacy/047.body create mode 100644 tests/emails/legacy/047.bodystructure create mode 100644 tests/emails/legacy/048.body create mode 100644 tests/emails/legacy/048.bodystructure create mode 100644 tests/emails/legacy/049.body create mode 100644 tests/emails/legacy/049.bodystructure create mode 100644 tests/emails/legacy/050.body create mode 100644 tests/emails/legacy/050.bodystructure create mode 100644 tests/emails/legacy/051.body create mode 100644 tests/emails/legacy/051.bodystructure create mode 100644 tests/emails/legacy/052.body create mode 100644 tests/emails/legacy/052.bodystructure create mode 100644 tests/emails/legacy/053.body create mode 100644 tests/emails/legacy/053.bodystructure create mode 100644 tests/emails/rfc/000.body create mode 100644 tests/emails/rfc/000.bodystructure create mode 100644 tests/emails/rfc/001.body create mode 100644 tests/emails/rfc/001.bodystructure create mode 100644 tests/emails/rfc/002.body create mode 100644 tests/emails/rfc/002.bodystructure create mode 100644 tests/emails/rfc/003.body create mode 100644 tests/emails/rfc/003.bodystructure create mode 100644 tests/emails/rfc/004.body create mode 100644 tests/emails/rfc/004.bodystructure create mode 100644 tests/emails/rfc/005.body create mode 100644 tests/emails/rfc/005.bodystructure create mode 100644 tests/emails/rfc/006.body create mode 100644 tests/emails/rfc/006.bodystructure create mode 100644 tests/emails/rfc/007.body create mode 100644 tests/emails/rfc/007.bodystructure create mode 100644 tests/emails/rfc/008.body create mode 100644 tests/emails/rfc/008.bodystructure create mode 100644 tests/emails/thirdparty/000.body create mode 100644 tests/emails/thirdparty/000.bodystructure create mode 100644 tests/emails/thirdparty/001.body create mode 100644 tests/emails/thirdparty/001.bodystructure create mode 100644 tests/emails/thirdparty/002.body create mode 100644 tests/emails/thirdparty/002.bodystructure create mode 100644 tests/emails/thirdparty/003.body create mode 100644 tests/emails/thirdparty/003.bodystructure create mode 100644 tests/emails/thirdparty/004.body create mode 100644 tests/emails/thirdparty/004.bodystructure create mode 100644 tests/emails/thirdparty/005.body create mode 100644 tests/emails/thirdparty/005.bodystructure create mode 100644 tests/emails/thirdparty/006.body create mode 100644 tests/emails/thirdparty/006.bodystructure create mode 100644 tests/emails/thirdparty/007.body create mode 100644 tests/emails/thirdparty/007.bodystructure create mode 100644 tests/emails/thirdparty/008.body create mode 100644 tests/emails/thirdparty/008.bodystructure create mode 100644 tests/emails/thirdparty/009.body create mode 100644 tests/emails/thirdparty/009.bodystructure create mode 100644 tests/emails/thirdparty/010.body create mode 100644 tests/emails/thirdparty/010.bodystructure create mode 100644 tests/send-to-imap.py (limited to 'tests') 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 +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 +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 + +

Hello 2

+ +--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 +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 +Content-Type: multipart/mixed; boundary="delim"; +Subject: Welcome to Aerogramme!! + +--delim +Content-Type: message/rfc822 + +From: Garage team +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 (Vandelay Industries) +To: "Colleagues": "James Smythe" ; Friends: + jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?= ; +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" +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-- diff --git a/tests/emails/legacy/000.body b/tests/emails/legacy/000.body new file mode 100644 index 0000000..db3b477 --- /dev/null +++ b/tests/emails/legacy/000.body @@ -0,0 +1 @@ +(BODY ("image" "png" ("name" "redball.png") NIL NIL "base64" 1994)) \ No newline at end of file diff --git a/tests/emails/legacy/000.bodystructure b/tests/emails/legacy/000.bodystructure new file mode 100644 index 0000000..2e4f8da --- /dev/null +++ b/tests/emails/legacy/000.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("image" "png" ("name" "redball.png") NIL NIL "base64" 1994 NIL ("attachment" ("filename" "redball.png")) NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/001.body b/tests/emails/legacy/001.body new file mode 100644 index 0000000..6b58e25 --- /dev/null +++ b/tests/emails/legacy/001.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "utf-7") NIL NIL "quoted-printable" 897 19)) \ No newline at end of file diff --git a/tests/emails/legacy/001.bodystructure b/tests/emails/legacy/001.bodystructure new file mode 100644 index 0000000..2dfc948 --- /dev/null +++ b/tests/emails/legacy/001.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "utf-7") NIL NIL "quoted-printable" 897 19 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/002.body b/tests/emails/legacy/002.body new file mode 100644 index 0000000..1bb1b25 --- /dev/null +++ b/tests/emails/legacy/002.body @@ -0,0 +1 @@ +(BODY ("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1001 25)) \ No newline at end of file diff --git a/tests/emails/legacy/002.bodystructure b/tests/emails/legacy/002.bodystructure new file mode 100644 index 0000000..a9869d6 --- /dev/null +++ b/tests/emails/legacy/002.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1001 25 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/003.body b/tests/emails/legacy/003.body new file mode 100644 index 0000000..dd5f3f5 --- /dev/null +++ b/tests/emails/legacy/003.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 997 23) "alternative")) \ No newline at end of file diff --git a/tests/emails/legacy/003.bodystructure b/tests/emails/legacy/003.bodystructure new file mode 100644 index 0000000..7bfea32 --- /dev/null +++ b/tests/emails/legacy/003.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16 NIL NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 997 23 NIL NIL NIL NIL) "alternative" ("boundary" "=====================_714967308==_.ALT") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/004.body b/tests/emails/legacy/004.body new file mode 100644 index 0000000..ce32e5f --- /dev/null +++ b/tests/emails/legacy/004.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 768 8)) \ No newline at end of file diff --git a/tests/emails/legacy/004.bodystructure b/tests/emails/legacy/004.bodystructure new file mode 100644 index 0000000..c0f6cc5 --- /dev/null +++ b/tests/emails/legacy/004.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 768 8 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/005.body b/tests/emails/legacy/005.body new file mode 100644 index 0000000..9c9f327 --- /dev/null +++ b/tests/emails/legacy/005.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "utf-7") NIL NIL "quoted-printable" 895 18)) \ No newline at end of file diff --git a/tests/emails/legacy/005.bodystructure b/tests/emails/legacy/005.bodystructure new file mode 100644 index 0000000..2e19c02 --- /dev/null +++ b/tests/emails/legacy/005.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "utf-7") NIL NIL "quoted-printable" 895 18 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/006.body b/tests/emails/legacy/006.body new file mode 100644 index 0000000..79cfd16 --- /dev/null +++ b/tests/emails/legacy/006.body @@ -0,0 +1 @@ +(BODY (("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/006.bodystructure b/tests/emails/legacy/006.bodystructure new file mode 100644 index 0000000..95a8c1d --- /dev/null +++ b/tests/emails/legacy/006.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816 NIL ("attachment" ("filename" "blueball.png")) NIL NIL)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992 NIL ("attachment" ("filename" "redball.png")) NIL NIL) "mixed" ("boundary" "----=_NextPart_000_0004_01BFC037.28F2FA90") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/007.body b/tests/emails/legacy/007.body new file mode 100644 index 0000000..0da3296 --- /dev/null +++ b/tests/emails/legacy/007.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 811 17)) \ No newline at end of file diff --git a/tests/emails/legacy/007.bodystructure b/tests/emails/legacy/007.bodystructure new file mode 100644 index 0000000..82d4dd4 --- /dev/null +++ b/tests/emails/legacy/007.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 811 17 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/008.body b/tests/emails/legacy/008.body new file mode 100644 index 0000000..6392db3 --- /dev/null +++ b/tests/emails/legacy/008.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 799 15)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1778)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/008.bodystructure b/tests/emails/legacy/008.bodystructure new file mode 100644 index 0000000..0af4c2e --- /dev/null +++ b/tests/emails/legacy/008.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 799 15 NIL NIL NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816 NIL ("attachment" ("filename" "blueball.png")) NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1778 NIL ("attachment" ("filename" "greenball.png")) NIL NIL)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992 NIL ("attachment" ("filename" "redball.png")) NIL NIL) "mixed" ("boundary" "----=_NextPart_000_0002_01BFC036.AE309650") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/009.body b/tests/emails/legacy/009.body new file mode 100644 index 0000000..2fb8365 --- /dev/null +++ b/tests/emails/legacy/009.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1" "format" "flowed") NIL NIL "quoted-printable" 827 23)) \ No newline at end of file diff --git a/tests/emails/legacy/009.bodystructure b/tests/emails/legacy/009.bodystructure new file mode 100644 index 0000000..1dd63ba --- /dev/null +++ b/tests/emails/legacy/009.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1" "format" "flowed") NIL NIL "quoted-printable" 827 23 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/010.body b/tests/emails/legacy/010.body new file mode 100644 index 0000000..44a32c6 --- /dev/null +++ b/tests/emails/legacy/010.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "8bit" 751 10)) \ No newline at end of file diff --git a/tests/emails/legacy/010.bodystructure b/tests/emails/legacy/010.bodystructure new file mode 100644 index 0000000..46f7cf5 --- /dev/null +++ b/tests/emails/legacy/010.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "8bit" 751 10 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/011.body b/tests/emails/legacy/011.body new file mode 100644 index 0000000..9ca312e --- /dev/null +++ b/tests/emails/legacy/011.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 813 18)) \ No newline at end of file diff --git a/tests/emails/legacy/011.bodystructure b/tests/emails/legacy/011.bodystructure new file mode 100644 index 0000000..6f5f792 --- /dev/null +++ b/tests/emails/legacy/011.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 813 18 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/012.body b/tests/emails/legacy/012.body new file mode 100644 index 0000000..5170de5 --- /dev/null +++ b/tests/emails/legacy/012.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "Windows-1252") NIL NIL "quoted-printable" 809 16)) \ No newline at end of file diff --git a/tests/emails/legacy/012.bodystructure b/tests/emails/legacy/012.bodystructure new file mode 100644 index 0000000..d154b81 --- /dev/null +++ b/tests/emails/legacy/012.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "Windows-1252") NIL NIL "quoted-printable" 809 16 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/013.body b/tests/emails/legacy/013.body new file mode 100644 index 0000000..6b8e249 --- /dev/null +++ b/tests/emails/legacy/013.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "8bit" 754 17)) \ No newline at end of file diff --git a/tests/emails/legacy/013.bodystructure b/tests/emails/legacy/013.bodystructure new file mode 100644 index 0000000..d630562 --- /dev/null +++ b/tests/emails/legacy/013.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "8bit" 754 17 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/014.body b/tests/emails/legacy/014.body new file mode 100644 index 0000000..3a2abd9 --- /dev/null +++ b/tests/emails/legacy/014.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 801 16)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1190 27) "alternative")) \ No newline at end of file diff --git a/tests/emails/legacy/014.bodystructure b/tests/emails/legacy/014.bodystructure new file mode 100644 index 0000000..5f795b2 --- /dev/null +++ b/tests/emails/legacy/014.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 801 16 NIL NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1190 27 NIL NIL NIL NIL) "alternative" ("boundary" "----=_NextPart_000_0005_01BFC037.799BEF60") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/015.body b/tests/emails/legacy/015.body new file mode 100644 index 0000000..50db72f --- /dev/null +++ b/tests/emails/legacy/015.body @@ -0,0 +1 @@ +(BODY (((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 833 16)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1230 26) "alternative")("image" "png" ("name" "2aa3ed95.png") "<4.2.0.58.20000519003556.00a918e0@pop.example.com.2>" NIL "base64" 1814)("image" "png" ("name" "2aa3edd1.png") "<4.2.0.58.20000519003556.00a918e0@pop.example.com.3>" NIL "base64" 1990) "related")("image" "png" ("name" "blueball.png") NIL NIL "base64" 1814)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1776) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/015.bodystructure b/tests/emails/legacy/015.bodystructure new file mode 100644 index 0000000..b81fd92 --- /dev/null +++ b/tests/emails/legacy/015.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 833 16 NIL NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1230 26 NIL NIL NIL NIL) "alternative" ("boundary" "=====================_715392550==_.ALT") NIL NIL NIL)("image" "png" ("name" "2aa3ed95.png") "<4.2.0.58.20000519003556.00a918e0@pop.example.com.2>" NIL "base64" 1814 NIL ("inline" ("filename" "2aa3ed95.png")) NIL NIL)("image" "png" ("name" "2aa3edd1.png") "<4.2.0.58.20000519003556.00a918e0@pop.example.com.3>" NIL "base64" 1990 NIL ("inline" ("filename" "2aa3edd1.png")) NIL NIL) "related" ("type" "multipart/alternative" "boundary" "=====================_715392540==_.REL") NIL NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1814 NIL ("attachment" ("filename" "blueball.png")) NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1776 NIL ("attachment" ("filename" "greenball.png")) NIL NIL) "mixed" ("boundary" "=====================_715392540==_") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/016.body b/tests/emails/legacy/016.body new file mode 100644 index 0000000..6cdaecd --- /dev/null +++ b/tests/emails/legacy/016.body @@ -0,0 +1,2 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16)("application" "mac-binhex40" ("name" "blueball.png") NIL NIL "7bit" 1929)("application" "mac-binhex40" ("name" {19} +HasenundFrösche.txt \ No newline at end of file diff --git a/tests/emails/legacy/016.bodystructure b/tests/emails/legacy/016.bodystructure new file mode 100644 index 0000000..d3449f9 --- /dev/null +++ b/tests/emails/legacy/016.bodystructure @@ -0,0 +1,2 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16 NIL NIL NIL NIL)("application" "mac-binhex40" ("name" "blueball.png") NIL NIL "7bit" 1929 NIL ("attachment" ("filename" "blueball.png")) NIL NIL)("application" "mac-binhex40" ("name" {19} +HasenundFrösche.txt \ No newline at end of file diff --git a/tests/emails/legacy/017.body b/tests/emails/legacy/017.body new file mode 100644 index 0000000..47bbc5a --- /dev/null +++ b/tests/emails/legacy/017.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 764 6)("image" "png" ("name" "greenball.png") NIL NIL "x-uuencode" 1854)("image" "png" ("name" "blueball.png") NIL NIL "x-uuencode" 1892) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/017.bodystructure b/tests/emails/legacy/017.bodystructure new file mode 100644 index 0000000..3d01d46 --- /dev/null +++ b/tests/emails/legacy/017.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 764 6 NIL NIL NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "x-uuencode" 1854 NIL ("attachment" ("filename" "greenball.png")) NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "x-uuencode" 1892 NIL ("attachment" ("filename" "blueball.png")) NIL NIL) "mixed" ("boundary" "=====================_716177458==_") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/018.body b/tests/emails/legacy/018.body new file mode 100644 index 0000000..617e176 --- /dev/null +++ b/tests/emails/legacy/018.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 836 18)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1238 27) "alternative")("image" "png" ("name" "blueball.png") "<4.2.0.58.20000519003143.00a8d550@pop.example.com.0>" NIL "base64" 1814)("image" "png" ("name" "redball.png") "<4.2.0.58.20000519003143.00a8d550@pop.example.com.1>" NIL "base64" 1990) "related")) \ No newline at end of file diff --git a/tests/emails/legacy/018.bodystructure b/tests/emails/legacy/018.bodystructure new file mode 100644 index 0000000..17f54b4 --- /dev/null +++ b/tests/emails/legacy/018.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 836 18 NIL NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1238 27 NIL NIL NIL NIL) "alternative" ("boundary" "=====================_715157141==_.ALT") NIL NIL NIL)("image" "png" ("name" "blueball.png") "<4.2.0.58.20000519003143.00a8d550@pop.example.com.0>" NIL "base64" 1814 NIL ("inline" ("filename" "blueball.png")) NIL NIL)("image" "png" ("name" "redball.png") "<4.2.0.58.20000519003143.00a8d550@pop.example.com.1>" NIL "base64" 1990 NIL ("inline" ("filename" "redball.png")) NIL NIL) "related" ("type" "multipart/alternative" "boundary" "=====================_715157131==_.REL") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/019.body b/tests/emails/legacy/019.body new file mode 100644 index 0000000..ea301e5 --- /dev/null +++ b/tests/emails/legacy/019.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 801 16)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1190 27) "alternative")("image" "png" ("name" "greenball.png") NIL NIL "base64" 1778)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/019.bodystructure b/tests/emails/legacy/019.bodystructure new file mode 100644 index 0000000..080d481 --- /dev/null +++ b/tests/emails/legacy/019.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 801 16 NIL NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1190 27 NIL NIL NIL NIL) "alternative" ("boundary" "----=_NextPart_001_0009_01BFC037.FDD8EE90") NIL NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1778 NIL ("attachment" ("filename" "greenball.png")) NIL NIL)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992 NIL ("attachment" ("filename" "redball.png")) NIL NIL) "mixed" ("boundary" "----=_NextPart_000_0008_01BFC037.FDD8EE90") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/020.body b/tests/emails/legacy/020.body new file mode 100644 index 0000000..6b8e249 --- /dev/null +++ b/tests/emails/legacy/020.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "8bit" 754 17)) \ No newline at end of file diff --git a/tests/emails/legacy/020.bodystructure b/tests/emails/legacy/020.bodystructure new file mode 100644 index 0000000..d630562 --- /dev/null +++ b/tests/emails/legacy/020.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "8bit" 754 17 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/021.body b/tests/emails/legacy/021.body new file mode 100644 index 0000000..330c748 --- /dev/null +++ b/tests/emails/legacy/021.body @@ -0,0 +1 @@ +(BODY (((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 805 18)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1397 31) "alternative")("image" "png" ("name" "blueball.png") "<938014623@17052000-0f9b>" NIL "base64" 1816) "related")("image" "png" ("name" "greenball.png") NIL NIL "base64" 1778)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/021.bodystructure b/tests/emails/legacy/021.bodystructure new file mode 100644 index 0000000..e746521 --- /dev/null +++ b/tests/emails/legacy/021.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 805 18 NIL NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1397 31 NIL NIL NIL NIL) "alternative" ("boundary" "----=_NextPart_002_0012_01BFC038.B91BC650") NIL NIL NIL)("image" "png" ("name" "blueball.png") "<938014623@17052000-0f9b>" NIL "base64" 1816 NIL NIL NIL NIL) "related" ("boundary" "----=_NextPart_001_0011_01BFC038.B91BC650") NIL NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1778 NIL ("attachment" ("filename" "greenball.png")) NIL NIL)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992 NIL ("attachment" ("filename" "redball.png")) NIL NIL) "mixed" ("boundary" "----=_NextPart_000_0010_01BFC038.B91BC650") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/022.body b/tests/emails/legacy/022.body new file mode 100644 index 0000000..7b1aef0 --- /dev/null +++ b/tests/emails/legacy/022.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "base64" 1028 16)) \ No newline at end of file diff --git a/tests/emails/legacy/022.bodystructure b/tests/emails/legacy/022.bodystructure new file mode 100644 index 0000000..8413898 --- /dev/null +++ b/tests/emails/legacy/022.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "base64" 1028 16 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/023.body b/tests/emails/legacy/023.body new file mode 100644 index 0000000..012af28 --- /dev/null +++ b/tests/emails/legacy/023.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1814)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 804 17)("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/023.bodystructure b/tests/emails/legacy/023.bodystructure new file mode 100644 index 0000000..26dd6d7 --- /dev/null +++ b/tests/emails/legacy/023.bodystructure @@ -0,0 +1,2 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16 NIL NIL NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1814 NIL ("attachment" ("filename" "blueball.png")) NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 804 17 NIL ("attachment" ("filename" "farmerandstork.txt")) NIL NIL)("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16 NIL ("attachment" ("filename" {19} +HasenundFrösche.txt \ No newline at end of file diff --git a/tests/emails/legacy/024.body b/tests/emails/legacy/024.body new file mode 100644 index 0000000..65506ad --- /dev/null +++ b/tests/emails/legacy/024.body @@ -0,0 +1 @@ +(BODY (("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1239 27)("image" "png" ("name" "2aa48eb6.png") "<4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2>" NIL "base64" 1814)("image" "png" ("name" "2aa48ec0.png") "<4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3>" NIL "base64" 1990) "related")) \ No newline at end of file diff --git a/tests/emails/legacy/024.bodystructure b/tests/emails/legacy/024.bodystructure new file mode 100644 index 0000000..97c9007 --- /dev/null +++ b/tests/emails/legacy/024.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1239 27 NIL NIL NIL NIL)("image" "png" ("name" "2aa48eb6.png") "<4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2>" NIL "base64" 1814 NIL ("inline" ("filename" "2aa48eb6.png")) NIL NIL)("image" "png" ("name" "2aa48ec0.png") "<4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3>" NIL "base64" 1990 NIL ("inline" ("filename" "2aa48ec0.png")) NIL NIL) "related" ("type" "text/html" "boundary" "=====================_715429112==_.REL") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/025.body b/tests/emails/legacy/025.body new file mode 100644 index 0000000..078fb0c --- /dev/null +++ b/tests/emails/legacy/025.body @@ -0,0 +1 @@ +(BODY ((("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1230 26)("image" "png" ("name" "2aa51367.png") "<4.2.0.58.20000519003809.00a85140@pop.example.com.2>" NIL "base64" 1814)("image" "png" ("name" "2aa51371.png") "<4.2.0.58.20000519003809.00a85140@pop.example.com.3>" NIL "base64" 1990) "related")("image" "png" ("name" "blueball.png") NIL NIL "base64" 1814)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1776) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/025.bodystructure b/tests/emails/legacy/025.bodystructure new file mode 100644 index 0000000..fa8f4a1 --- /dev/null +++ b/tests/emails/legacy/025.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1230 26 NIL NIL NIL NIL)("image" "png" ("name" "2aa51367.png") "<4.2.0.58.20000519003809.00a85140@pop.example.com.2>" NIL "base64" 1814 NIL ("inline" ("filename" "2aa51367.png")) NIL NIL)("image" "png" ("name" "2aa51371.png") "<4.2.0.58.20000519003809.00a85140@pop.example.com.3>" NIL "base64" 1990 NIL ("inline" ("filename" "2aa51371.png")) NIL NIL) "related" ("type" "text/html" "boundary" "=====================_715462801==_.REL") NIL NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1814 NIL ("attachment" ("filename" "blueball.png")) NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1776 NIL ("attachment" ("filename" "greenball.png")) NIL NIL) "mixed" ("boundary" "=====================_715462801==_") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/026.body b/tests/emails/legacy/026.body new file mode 100644 index 0000000..8756050 --- /dev/null +++ b/tests/emails/legacy/026.body @@ -0,0 +1,2 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16)("text" "plain" ("name" {19} +HasenundFrösche.txt \ No newline at end of file diff --git a/tests/emails/legacy/026.bodystructure b/tests/emails/legacy/026.bodystructure new file mode 100644 index 0000000..7f51c3c --- /dev/null +++ b/tests/emails/legacy/026.bodystructure @@ -0,0 +1,2 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16 NIL NIL NIL NIL)("text" "plain" ("name" {19} +HasenundFrösche.txt \ No newline at end of file diff --git a/tests/emails/legacy/027.body b/tests/emails/legacy/027.body new file mode 100644 index 0000000..0da3296 --- /dev/null +++ b/tests/emails/legacy/027.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 811 17)) \ No newline at end of file diff --git a/tests/emails/legacy/027.bodystructure b/tests/emails/legacy/027.bodystructure new file mode 100644 index 0000000..82d4dd4 --- /dev/null +++ b/tests/emails/legacy/027.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 811 17 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/028.body b/tests/emails/legacy/028.body new file mode 100644 index 0000000..688decf --- /dev/null +++ b/tests/emails/legacy/028.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 20)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1576 36) "alternative")("image" "png" ("name" "blueball.png") "<823504223@17052000-0f8d>" NIL "base64" 1816)("image" "png" ("name" "redball.png") "<823504223@17052000-0f94>" NIL "base64" 1992) "related")) \ No newline at end of file diff --git a/tests/emails/legacy/028.bodystructure b/tests/emails/legacy/028.bodystructure new file mode 100644 index 0000000..8a6e4ad --- /dev/null +++ b/tests/emails/legacy/028.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 20 NIL NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1576 36 NIL NIL NIL NIL) "alternative" ("boundary" "----=_NextPart_001_000D_01BFC038.5A5C8E60") NIL NIL NIL)("image" "png" ("name" "blueball.png") "<823504223@17052000-0f8d>" NIL "base64" 1816 NIL NIL NIL NIL)("image" "png" ("name" "redball.png") "<823504223@17052000-0f94>" NIL "base64" 1992 NIL NIL NIL NIL) "related" ("boundary" "----=_NextPart_000_000C_01BFC038.5A5C8E60") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/029.body b/tests/emails/legacy/029.body new file mode 100644 index 0000000..28596c9 --- /dev/null +++ b/tests/emails/legacy/029.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 771 16)) \ No newline at end of file diff --git a/tests/emails/legacy/029.bodystructure b/tests/emails/legacy/029.bodystructure new file mode 100644 index 0000000..9cc38a7 --- /dev/null +++ b/tests/emails/legacy/029.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 771 16 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/030.body b/tests/emails/legacy/030.body new file mode 100644 index 0000000..473cd5b --- /dev/null +++ b/tests/emails/legacy/030.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 14)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780)("text" "plain" ("charset" "us-ascii" "name" "hareandtoroise.txt") NIL NIL "7bit" 762 6) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/030.bodystructure b/tests/emails/legacy/030.bodystructure new file mode 100644 index 0000000..e1ddae0 --- /dev/null +++ b/tests/emails/legacy/030.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 14 NIL NIL NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816 NIL ("inline" ("filename" "blueball.png")) NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780 NIL ("inline" ("filename" "greenball.png")) NIL NIL)("text" "plain" ("charset" "us-ascii" "name" "hareandtoroise.txt") NIL NIL "7bit" 762 6 NIL ("inline" ("filename" "hareandtoroise.txt")) NIL NIL) "mixed" ("boundary" "------------0BBC657DDC74A0B8454627FD") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/031.body b/tests/emails/legacy/031.body new file mode 100644 index 0000000..98472c3 --- /dev/null +++ b/tests/emails/legacy/031.body @@ -0,0 +1 @@ +(BODY (("TEXT" "PLAIN" ("charset" "US-ASCII") NIL NIL "7bit" 41 2)("APPLICATION" "octet-stream" ("name" "redball.png") "" "A PNG graphic file" "BASE64" 2004)("APPLICATION" "octet-stream" ("name" "blueball.png") "" "A PNG graphic file" "BASE64" 1826) "MIXED")) \ No newline at end of file diff --git a/tests/emails/legacy/031.bodystructure b/tests/emails/legacy/031.bodystructure new file mode 100644 index 0000000..47db37b --- /dev/null +++ b/tests/emails/legacy/031.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("TEXT" "PLAIN" ("charset" "US-ASCII") NIL NIL "7bit" 41 2 NIL NIL NIL NIL)("APPLICATION" "octet-stream" ("name" "redball.png") "" "A PNG graphic file" "BASE64" 2004 NIL ("attachment" ("filename" "redball.png")) NIL NIL)("APPLICATION" "octet-stream" ("name" "blueball.png") "" "A PNG graphic file" "BASE64" 1826 NIL ("attachment" ("filename" "blueball.png")) NIL NIL) "MIXED" ("BOUNDARY" "-1463757054-952513540-958744548=:8452") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/032.body b/tests/emails/legacy/032.body new file mode 100644 index 0000000..db3a711 --- /dev/null +++ b/tests/emails/legacy/032.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 798 21)("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 949 17) "alternative")("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/032.bodystructure b/tests/emails/legacy/032.bodystructure new file mode 100644 index 0000000..050b81d --- /dev/null +++ b/tests/emails/legacy/032.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 798 21 NIL NIL NIL NIL)("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 949 17 NIL NIL NIL NIL) "alternative" ("boundary" "------------D74AE2393FB01D1B284AE257") NIL NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780 NIL ("inline" ("filename" "greenball.png")) NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816 NIL ("inline" ("filename" "blueball.png")) NIL NIL) "mixed" ("boundary" "------------C78F594988075E36AE03C243") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/033.body b/tests/emails/legacy/033.body new file mode 100644 index 0000000..1635c99 --- /dev/null +++ b/tests/emails/legacy/033.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "UTF-8") NIL NIL "quoted-printable" 804 22)) \ No newline at end of file diff --git a/tests/emails/legacy/033.bodystructure b/tests/emails/legacy/033.bodystructure new file mode 100644 index 0000000..52e98bc --- /dev/null +++ b/tests/emails/legacy/033.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "UTF-8") NIL NIL "quoted-printable" 804 22 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/034.body b/tests/emails/legacy/034.body new file mode 100644 index 0000000..f2ca9c8 --- /dev/null +++ b/tests/emails/legacy/034.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "UTF-7") NIL NIL "7bit" 791 16)) \ No newline at end of file diff --git a/tests/emails/legacy/034.bodystructure b/tests/emails/legacy/034.bodystructure new file mode 100644 index 0000000..be973a1 --- /dev/null +++ b/tests/emails/legacy/034.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "UTF-7") NIL NIL "7bit" 791 16 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/035.body b/tests/emails/legacy/035.body new file mode 100644 index 0000000..b55102f --- /dev/null +++ b/tests/emails/legacy/035.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 824 25)(("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 1122 19)("image" "png" NIL "" NIL "base64" 1816)("image" "png" NIL "" NIL "base64" 1992) "related") "alternative")("image" "png" ("name" "redball.png") NIL NIL "base64" 1992)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/035.bodystructure b/tests/emails/legacy/035.bodystructure new file mode 100644 index 0000000..67fba61 --- /dev/null +++ b/tests/emails/legacy/035.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 824 25 NIL NIL NIL NIL)(("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 1122 19 NIL NIL NIL NIL)("image" "png" NIL "" NIL "base64" 1816 NIL ("inline" ("filename" "C:TEMPnsmailEG.png")) NIL NIL)("image" "png" NIL "" NIL "base64" 1992 NIL ("inline" ("filename" "C:TEMPnsmail39.png")) NIL NIL) "related" ("boundary" "------------C02FA3D0A04E95F295FB25EB") NIL NIL NIL) "alternative" ("boundary" "------------F03F94BA73D3B9E8C1B94D92") NIL NIL NIL)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992 NIL ("inline" ("filename" "redball.png")) NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780 NIL ("inline" ("filename" "greenball.png")) NIL NIL) "mixed" ("boundary" "------------A1E83A41894D3755390B838A") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/036.body b/tests/emails/legacy/036.body new file mode 100644 index 0000000..55bb829 --- /dev/null +++ b/tests/emails/legacy/036.body @@ -0,0 +1 @@ +(BODY ("TEXT" "PLAIN" ("charset" "iso-8859-1") NIL NIL "QUOTED-PRINTABLE" 813 18)) \ No newline at end of file diff --git a/tests/emails/legacy/036.bodystructure b/tests/emails/legacy/036.bodystructure new file mode 100644 index 0000000..fb0012b --- /dev/null +++ b/tests/emails/legacy/036.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("TEXT" "PLAIN" ("charset" "iso-8859-1") NIL NIL "QUOTED-PRINTABLE" 813 18 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/037.body b/tests/emails/legacy/037.body new file mode 100644 index 0000000..7d7639d --- /dev/null +++ b/tests/emails/legacy/037.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/037.bodystructure b/tests/emails/legacy/037.bodystructure new file mode 100644 index 0000000..6527c17 --- /dev/null +++ b/tests/emails/legacy/037.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 0 NIL NIL NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816 NIL ("inline" ("filename" "blueball.png")) NIL NIL) "mixed" ("boundary" "------------E7889DDF0F75D34163841C59") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/038.body b/tests/emails/legacy/038.body new file mode 100644 index 0000000..62e836c --- /dev/null +++ b/tests/emails/legacy/038.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 762 7)) \ No newline at end of file diff --git a/tests/emails/legacy/038.bodystructure b/tests/emails/legacy/038.bodystructure new file mode 100644 index 0000000..a2f5552 --- /dev/null +++ b/tests/emails/legacy/038.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 762 7 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/039.body b/tests/emails/legacy/039.body new file mode 100644 index 0000000..1c6b06e --- /dev/null +++ b/tests/emails/legacy/039.body @@ -0,0 +1 @@ +(BODY ((("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 1134 17)("image" "png" NIL "" NIL "base64" 1816)("image" "png" NIL "" NIL "base64" 1992) "related")("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/039.bodystructure b/tests/emails/legacy/039.bodystructure new file mode 100644 index 0000000..a3b5678 --- /dev/null +++ b/tests/emails/legacy/039.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 1134 17 NIL NIL NIL NIL)("image" "png" NIL "" NIL "base64" 1816 NIL ("inline" ("filename" "C:TEMPnsmailV0.png")) NIL NIL)("image" "png" NIL "" NIL "base64" 1992 NIL ("inline" ("filename" "C:TEMPnsmailNM.png")) NIL NIL) "related" ("boundary" "------------8E6A06810565BCAB5E1F7D97") NIL NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780 NIL ("inline" ("filename" "greenball.png")) NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816 NIL ("inline" ("filename" "blueball.png")) NIL NIL) "mixed" ("boundary" "------------B7133A01A6B323BF00DBC9A7") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/040.body b/tests/emails/legacy/040.body new file mode 100644 index 0000000..9fc090b --- /dev/null +++ b/tests/emails/legacy/040.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 808 18)) \ No newline at end of file diff --git a/tests/emails/legacy/040.bodystructure b/tests/emails/legacy/040.bodystructure new file mode 100644 index 0000000..63104bd --- /dev/null +++ b/tests/emails/legacy/040.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 808 18 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/041.body b/tests/emails/legacy/041.body new file mode 100644 index 0000000..9e72b78 --- /dev/null +++ b/tests/emails/legacy/041.body @@ -0,0 +1 @@ +(BODY (("TEXT" "PLAIN" ("charset" "US-ASCII") NIL NIL "7bit" 0 0)("APPLICATION" "octet-stream" ("name" "redball.png") "" "red ball" "BASE64" 2004) "MIXED")) \ No newline at end of file diff --git a/tests/emails/legacy/041.bodystructure b/tests/emails/legacy/041.bodystructure new file mode 100644 index 0000000..f830770 --- /dev/null +++ b/tests/emails/legacy/041.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("TEXT" "PLAIN" ("charset" "US-ASCII") NIL NIL "7bit" 0 0 NIL NIL NIL NIL)("APPLICATION" "octet-stream" ("name" "redball.png") "" "red ball" "BASE64" 2004 NIL ("attachment" ("filename" "redball.png")) NIL NIL) "MIXED" ("BOUNDARY" "-1463757054-170444605-958746196=:8452") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/042.body b/tests/emails/legacy/042.body new file mode 100644 index 0000000..ee51cd6 --- /dev/null +++ b/tests/emails/legacy/042.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 14)("text" "plain" ("charset" "us-ascii" "name" "farmerandstork.txt") NIL NIL "7bit" 804 17) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/042.bodystructure b/tests/emails/legacy/042.bodystructure new file mode 100644 index 0000000..8e7c589 --- /dev/null +++ b/tests/emails/legacy/042.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 14 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii" "name" "farmerandstork.txt") NIL NIL "7bit" 804 17 NIL ("inline" ("filename" "farmerandstork.txt")) NIL NIL) "mixed" ("boundary" "------------77060D866A66DC8D0921E051") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/043.body b/tests/emails/legacy/043.body new file mode 100644 index 0000000..ab0b252 --- /dev/null +++ b/tests/emails/legacy/043.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 798 21)("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 949 17) "alternative")) \ No newline at end of file diff --git a/tests/emails/legacy/043.bodystructure b/tests/emails/legacy/043.bodystructure new file mode 100644 index 0000000..39e4133 --- /dev/null +++ b/tests/emails/legacy/043.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 798 21 NIL NIL NIL NIL)("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 949 17 NIL NIL NIL NIL) "alternative" ("boundary" "------------9D454F23DA86BCD63FA3805F") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/044.body b/tests/emails/legacy/044.body new file mode 100644 index 0000000..0c08240 --- /dev/null +++ b/tests/emails/legacy/044.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 798 21)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/044.bodystructure b/tests/emails/legacy/044.bodystructure new file mode 100644 index 0000000..69ac1d5 --- /dev/null +++ b/tests/emails/legacy/044.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 798 21 NIL NIL NIL NIL)("image" "png" ("name" "redball.png") NIL NIL "base64" 1992 NIL ("inline" ("filename" "redball.png")) NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1780 NIL ("inline" ("filename" "greenball.png")) NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816 NIL ("inline" ("filename" "blueball.png")) NIL NIL) "mixed" ("boundary" "------------A1FCDEE154E03D875E5D6779") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/045.body b/tests/emails/legacy/045.body new file mode 100644 index 0000000..9e0f9ff --- /dev/null +++ b/tests/emails/legacy/045.body @@ -0,0 +1 @@ +(BODY (("TEXT" "PLAIN" ("charset" "US-ASCII") NIL NIL "7bit" 0 0)("TEXT" "PLAIN" ("charset" "iso-8859-1" "name*" "iso-8859-1''HasenundFr%F6sche.txt") "" "Short story in German" "BASE64" 1040 16) "MIXED")) \ No newline at end of file diff --git a/tests/emails/legacy/045.bodystructure b/tests/emails/legacy/045.bodystructure new file mode 100644 index 0000000..cdb1110 --- /dev/null +++ b/tests/emails/legacy/045.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("TEXT" "PLAIN" ("charset" "US-ASCII") NIL NIL "7bit" 0 0 NIL NIL NIL NIL)("TEXT" "PLAIN" ("charset" "iso-8859-1" "name*" "iso-8859-1''HasenundFr%F6sche.txt") "" "Short story in German" "BASE64" 1040 16 NIL ("attachment" ("filename*" "iso-8859-1''HasenundFr%F6sche.txt")) NIL NIL) "MIXED" ("BOUNDARY" "-1463757054-891160829-958746372=:8452") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/046.body b/tests/emails/legacy/046.body new file mode 100644 index 0000000..10cd9db --- /dev/null +++ b/tests/emails/legacy/046.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 800 22)) \ No newline at end of file diff --git a/tests/emails/legacy/046.bodystructure b/tests/emails/legacy/046.bodystructure new file mode 100644 index 0000000..c2c2f87 --- /dev/null +++ b/tests/emails/legacy/046.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 800 22 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/047.body b/tests/emails/legacy/047.body new file mode 100644 index 0000000..742c81d --- /dev/null +++ b/tests/emails/legacy/047.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 14)("text" "plain" ("charset" "iso-8859-1" "name" "=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?=") NIL NIL "quoted-printable" 812 19) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/047.bodystructure b/tests/emails/legacy/047.bodystructure new file mode 100644 index 0000000..d2bfa0d --- /dev/null +++ b/tests/emails/legacy/047.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 14 NIL NIL NIL NIL)("text" "plain" ("charset" "iso-8859-1" "name" "=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?=") NIL NIL "quoted-printable" 812 19 NIL ("inline" ("filename" "=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?=")) NIL NIL) "mixed" ("boundary" "------------CA611088711119FBDB3473B4") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/048.body b/tests/emails/legacy/048.body new file mode 100644 index 0000000..cd66b75 --- /dev/null +++ b/tests/emails/legacy/048.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 14)("image" "png" ("name" "redball.png") NIL NIL "x-uuencode" 2067)("image" "png" ("name" "greenball.png") NIL NIL "x-uuencode" 1849)("image" "png" ("name" "blueball.png") NIL NIL "x-uuencode" 1887) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/048.bodystructure b/tests/emails/legacy/048.bodystructure new file mode 100644 index 0000000..b53f277 --- /dev/null +++ b/tests/emails/legacy/048.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 14 NIL NIL NIL NIL)("image" "png" ("name" "redball.png") NIL NIL "x-uuencode" 2067 NIL ("inline" ("filename" "redball.png")) NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "x-uuencode" 1849 NIL ("inline" ("filename" "greenball.png")) NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "x-uuencode" 1887 NIL ("inline" ("filename" "blueball.png")) NIL NIL) "mixed" ("boundary" "------------177483472E7788F4AD46AB1A") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/049.body b/tests/emails/legacy/049.body new file mode 100644 index 0000000..37efcfd --- /dev/null +++ b/tests/emails/legacy/049.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 6585 121)) \ No newline at end of file diff --git a/tests/emails/legacy/049.bodystructure b/tests/emails/legacy/049.bodystructure new file mode 100644 index 0000000..ec644fa --- /dev/null +++ b/tests/emails/legacy/049.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 6585 121 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/050.body b/tests/emails/legacy/050.body new file mode 100644 index 0000000..141bcd4 --- /dev/null +++ b/tests/emails/legacy/050.body @@ -0,0 +1 @@ +(BODY (("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1239 27)("image" "png" ("name" "2aa658b6.png") "<4.2.0.58.20000519003934.00a866f0@pop.example.com.2>" NIL "base64" 1814)("image" "png" ("name" "2aa658c0.png") "<4.2.0.58.20000519003934.00a866f0@pop.example.com.3>" NIL "base64" 1990) "related")) \ No newline at end of file diff --git a/tests/emails/legacy/050.bodystructure b/tests/emails/legacy/050.bodystructure new file mode 100644 index 0000000..0d567d4 --- /dev/null +++ b/tests/emails/legacy/050.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 1239 27 NIL NIL NIL NIL)("image" "png" ("name" "2aa658b6.png") "<4.2.0.58.20000519003934.00a866f0@pop.example.com.2>" NIL "base64" 1814 NIL ("inline" ("filename" "2aa658b6.png")) NIL NIL)("image" "png" ("name" "2aa658c0.png") "<4.2.0.58.20000519003934.00a866f0@pop.example.com.3>" NIL "base64" 1990 NIL ("inline" ("filename" "2aa658c0.png")) NIL NIL) "related" ("type" "text/html" "boundary" "=====================_715546120==_.REL") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/051.body b/tests/emails/legacy/051.body new file mode 100644 index 0000000..2998597 --- /dev/null +++ b/tests/emails/legacy/051.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 833 16)("image" "png" ("name" "2aa5e03a.png") "<4.2.0.58.20000519003903.00a859b0@pop.example.com.2>" NIL "base64" 1814)("image" "png" ("name" "2aa5e044.png") "<4.2.0.58.20000519003903.00a859b0@pop.example.com.3>" NIL "base64" 1990) "related")("image" "png" ("name" "blueball.png") NIL NIL "base64" 1814)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1776) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/051.bodystructure b/tests/emails/legacy/051.bodystructure new file mode 100644 index 0000000..25e1c70 --- /dev/null +++ b/tests/emails/legacy/051.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 833 16 NIL NIL NIL NIL)("image" "png" ("name" "2aa5e03a.png") "<4.2.0.58.20000519003903.00a859b0@pop.example.com.2>" NIL "base64" 1814 NIL ("inline" ("filename" "2aa5e03a.png")) NIL NIL)("image" "png" ("name" "2aa5e044.png") "<4.2.0.58.20000519003903.00a859b0@pop.example.com.3>" NIL "base64" 1990 NIL ("inline" ("filename" "2aa5e044.png")) NIL NIL) "related" ("type" "text/plain" "boundary" "=====================_715515186==_.REL") NIL NIL NIL)("image" "png" ("name" "blueball.png") NIL NIL "base64" 1814 NIL ("attachment" ("filename" "blueball.png")) NIL NIL)("image" "png" ("name" "greenball.png") NIL NIL "base64" 1776 NIL ("attachment" ("filename" "greenball.png")) NIL NIL) "mixed" ("boundary" "=====================_715515186==_") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/052.body b/tests/emails/legacy/052.body new file mode 100644 index 0000000..1113cb1 --- /dev/null +++ b/tests/emails/legacy/052.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 754 17)) \ No newline at end of file diff --git a/tests/emails/legacy/052.bodystructure b/tests/emails/legacy/052.bodystructure new file mode 100644 index 0000000..9059d11 --- /dev/null +++ b/tests/emails/legacy/052.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 754 17 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/053.body b/tests/emails/legacy/053.body new file mode 100644 index 0000000..337a7e2 --- /dev/null +++ b/tests/emails/legacy/053.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 863 18)) \ No newline at end of file diff --git a/tests/emails/legacy/053.bodystructure b/tests/emails/legacy/053.bodystructure new file mode 100644 index 0000000..2728f20 --- /dev/null +++ b/tests/emails/legacy/053.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 863 18 NIL NIL NIL NIL)) \ No newline at end of file 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 diff --git a/tests/emails/thirdparty/000.body b/tests/emails/thirdparty/000.body new file mode 100644 index 0000000..b237a3e --- /dev/null +++ b/tests/emails/thirdparty/000.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "base64" 224 2)("text" "plain" ("charset" "us-ascii") NIL NIL "base64" 4 0) "alternative")) \ No newline at end of file diff --git a/tests/emails/thirdparty/000.bodystructure b/tests/emails/thirdparty/000.bodystructure new file mode 100644 index 0000000..f15bc72 --- /dev/null +++ b/tests/emails/thirdparty/000.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "base64" 224 2 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "base64" 4 0 NIL NIL NIL NIL) "alternative" ("boundary" "bound") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/001.body b/tests/emails/thirdparty/001.body new file mode 100644 index 0000000..7065154 --- /dev/null +++ b/tests/emails/thirdparty/001.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 224 2)("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 4 0)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 13 1) "alternative")) \ No newline at end of file diff --git a/tests/emails/thirdparty/001.bodystructure b/tests/emails/thirdparty/001.bodystructure new file mode 100644 index 0000000..0b9642c --- /dev/null +++ b/tests/emails/thirdparty/001.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 224 2 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 4 0 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 13 1 NIL NIL NIL NIL) "alternative" ("boundary" "bound") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/002.body b/tests/emails/thirdparty/002.body new file mode 100644 index 0000000..0266d1f --- /dev/null +++ b/tests/emails/thirdparty/002.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 23 1)("text" "plain" ("charset" "utf-8") NIL NIL "base64" 28 0)("text" "plain" ("charset" "utf-8") NIL NIL "base64" 8 0) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/002.bodystructure b/tests/emails/thirdparty/002.bodystructure new file mode 100644 index 0000000..8bba9f4 --- /dev/null +++ b/tests/emails/thirdparty/002.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 23 1 NIL NIL NIL NIL)("text" "plain" ("charset" "utf-8") NIL NIL "base64" 28 0 NIL NIL NIL NIL)("text" "plain" ("charset" "utf-8") NIL NIL "base64" 8 0 NIL NIL NIL NIL) "mixed" ("boundary" "foo") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/003.body b/tests/emails/thirdparty/003.body new file mode 100644 index 0000000..a43c6ca --- /dev/null +++ b/tests/emails/thirdparty/003.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 35 1)("text" "plain" ("charset" "UTF-8") NIL NIL "binary" 23 1)("text" "plain" ("charset" "UTF-8") NIL NIL "8bit" 23 1)("text" "plain" ("charset" "UTF-8") NIL NIL "quoted-printable" 41 1)("text" "plain" ("charset" "UTF-8") NIL NIL "base64" 34 1) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/003.bodystructure b/tests/emails/thirdparty/003.bodystructure new file mode 100644 index 0000000..5e413bb --- /dev/null +++ b/tests/emails/thirdparty/003.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 35 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "binary" 23 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "8bit" 23 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "quoted-printable" 41 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "base64" 34 1 NIL NIL NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/004.body b/tests/emails/thirdparty/004.body new file mode 100644 index 0000000..1fadadb --- /dev/null +++ b/tests/emails/thirdparty/004.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "UTF-8") NIL NIL "6bit" 35 1)("text" "plain" ("charset" "UTF-8") NIL NIL "7bits" 23 1)("text" "plain" ("charset" "UTF-8") NIL NIL "7bit" 23 1)("text" "plain" ("charset" "UTF-8") NIL NIL "7-bit" 23 1)("text" "plain" ("charset" "UTF-8") NIL NIL "8-bit" 23 1)("text" "plain" ("charset" "UTF-8") NIL NIL "7bit" 41 1) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/004.bodystructure b/tests/emails/thirdparty/004.bodystructure new file mode 100644 index 0000000..501d782 --- /dev/null +++ b/tests/emails/thirdparty/004.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "UTF-8") NIL NIL "6bit" 35 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "7bits" 23 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "7bit" 23 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "7-bit" 23 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "8-bit" 23 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "7bit" 41 1 NIL NIL NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/005.body b/tests/emails/thirdparty/005.body new file mode 100644 index 0000000..4d3e042 --- /dev/null +++ b/tests/emails/thirdparty/005.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "utf-16le") NIL NIL "binary" 27 1)("text" "plain" ("charset" "utf-16be") NIL NIL "base64" 38 1)("text" "plain" ("charset" "utf-16le") NIL NIL "base64" 38 1)("text" "plain" ("charset" "EUC-JP") NIL NIL "base64" 26 1)("text" "plain" ("charset" "UTF-8") NIL NIL "binary" 16 2) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/005.bodystructure b/tests/emails/thirdparty/005.bodystructure new file mode 100644 index 0000000..6fc310d --- /dev/null +++ b/tests/emails/thirdparty/005.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "utf-16le") NIL NIL "binary" 27 1 NIL NIL NIL NIL)("text" "plain" ("charset" "utf-16be") NIL NIL "base64" 38 1 NIL NIL NIL NIL)("text" "plain" ("charset" "utf-16le") NIL NIL "base64" 38 1 NIL NIL NIL NIL)("text" "plain" ("charset" "EUC-JP") NIL NIL "base64" 26 1 NIL NIL NIL NIL)("text" "plain" ("charset" "UTF-8") NIL NIL "binary" 16 2 NIL NIL NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/006.body b/tests/emails/thirdparty/006.body new file mode 100644 index 0000000..78fa16f --- /dev/null +++ b/tests/emails/thirdparty/006.body @@ -0,0 +1 @@ +(BODY (((("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 90 1)("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 27 0) "alternative")("signature" "plain" ("charset" "us-ascii") NIL NIL "7bit" 21) "signed") "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/006.bodystructure b/tests/emails/thirdparty/006.bodystructure new file mode 100644 index 0000000..f327e71 --- /dev/null +++ b/tests/emails/thirdparty/006.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (((("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 90 1 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 27 0 NIL NIL NIL NIL) "alternative" ("boundary" "3") NIL NIL NIL)("signature" "plain" ("charset" "us-ascii") NIL NIL "7bit" 21 NIL NIL NIL NIL) "signed" ("protocol" "signature/plain" "migalc" "pen+paper" "boundary" "2") NIL NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/007.body b/tests/emails/thirdparty/007.body new file mode 100644 index 0000000..1090b32 --- /dev/null +++ b/tests/emails/thirdparty/007.body @@ -0,0 +1 @@ +(BODY (("message" "rfc822" NIL NIL NIL "7bit" 76 (NIL "my opinion" (("someone-else" NIL "someone" "else")) (("someone-else" NIL "someone" "else")) (("someone-else" NIL "someone" "else")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 18 0) 3)("message" "rfc822" NIL NIL NIL "7bit" 77 (NIL "i disagree" (("another one" NIL "another" "one")) (("another one" NIL "another" "one")) (("another one" NIL "another" "one")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 21 0) 3)("message" "rfc822" NIL NIL NIL "7bit" 334 (NIL "funny hat" (("attachment" NIL "attachment" "user")) (("attachment" NIL "attachment" "user")) (("attachment" NIL "attachment" "user")) NIL NIL NIL NIL NIL) (("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 25 0)("application" "octet-stream" ("disposition" "attachment" "name" "test.txt") NIL NIL "binary" 6) "mixed") 15) "digest")) \ No newline at end of file diff --git a/tests/emails/thirdparty/007.bodystructure b/tests/emails/thirdparty/007.bodystructure new file mode 100644 index 0000000..d805a78 --- /dev/null +++ b/tests/emails/thirdparty/007.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("message" "rfc822" NIL NIL NIL "7bit" 76 (NIL "my opinion" (("someone-else" NIL "someone" "else")) (("someone-else" NIL "someone" "else")) (("someone-else" NIL "someone" "else")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 18 0 NIL NIL NIL NIL) 3 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 77 (NIL "i disagree" (("another one" NIL "another" "one")) (("another one" NIL "another" "one")) (("another one" NIL "another" "one")) NIL NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 21 0 NIL NIL NIL NIL) 3 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 334 (NIL "funny hat" (("attachment" NIL "attachment" "user")) (("attachment" NIL "attachment" "user")) (("attachment" NIL "attachment" "user")) NIL NIL NIL NIL NIL) (("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 25 0 NIL NIL NIL NIL)("application" "octet-stream" ("disposition" "attachment" "name" "test.txt") NIL NIL "binary" 6 NIL NIL NIL NIL) "mixed" ("boundary" "2") NIL NIL NIL) 15 NIL NIL NIL NIL) "digest" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/008.body b/tests/emails/thirdparty/008.body new file mode 100644 index 0000000..9b5f082 --- /dev/null +++ b/tests/emails/thirdparty/008.body @@ -0,0 +1 @@ +(BODY (("text" "x-myown" ("charset" "us-ascii") NIL NIL "7bit" 7 1)("message" "rfc822" NIL NIL NIL "7bit" 465 ("Sun, 12 Aug 2012 12:34:56 +0300" "submsg" ((NIL NIL "sub" "domain.org")) ((NIL NIL "sub" "domain.org")) ((NIL NIL "sub" "domain.org")) NIL NIL NIL NIL NIL) (("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 20 1)((("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 9 0)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 10 0) "alternative")("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 10 0) "alternative") "alternative") 32)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 12 0) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/008.bodystructure b/tests/emails/thirdparty/008.bodystructure new file mode 100644 index 0000000..b62d60e --- /dev/null +++ b/tests/emails/thirdparty/008.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "x-myown" ("charset" "us-ascii") NIL NIL "7bit" 7 1 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 465 ("Sun, 12 Aug 2012 12:34:56 +0300" "submsg" ((NIL NIL "sub" "domain.org")) ((NIL NIL "sub" "domain.org")) ((NIL NIL "sub" "domain.org")) NIL NIL NIL NIL NIL) (("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 20 1 NIL NIL NIL NIL)((("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 9 0 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 10 0 NIL NIL NIL NIL) "alternative" ("boundary" "sub3") NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 10 0 NIL NIL NIL NIL) "alternative" ("boundary" "sub2") NIL NIL NIL) "alternative" ("boundary" "sub1") NIL NIL NIL) 32 NIL NIL NIL NIL)("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 12 0 NIL NIL NIL NIL) "mixed" ("boundary" "foo bar") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/009.body b/tests/emails/thirdparty/009.body new file mode 100644 index 0000000..2db6b88 --- /dev/null +++ b/tests/emails/thirdparty/009.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 48 0)("Message" "Partial" ("number" "1" "total" "5" "id" "heks68ewe@example.org") NIL NIL "7bit" 247) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/009.bodystructure b/tests/emails/thirdparty/009.bodystructure new file mode 100644 index 0000000..c7d271d --- /dev/null +++ b/tests/emails/thirdparty/009.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 48 0 NIL NIL NIL NIL)("Message" "Partial" ("number" "1" "total" "5" "id" "heks68ewe@example.org") NIL NIL "7bit" 247 NIL NIL NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/010.body b/tests/emails/thirdparty/010.body new file mode 100644 index 0000000..01164f5 --- /dev/null +++ b/tests/emails/thirdparty/010.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 18 0) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/010.bodystructure b/tests/emails/thirdparty/010.bodystructure new file mode 100644 index 0000000..15ddd24 --- /dev/null +++ b/tests/emails/thirdparty/010.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "binary" 18 0 NIL NIL ("ja") NIL) "mixed" ("boundary" "1" "comment" "") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/send-to-imap.py b/tests/send-to-imap.py new file mode 100644 index 0000000..e583ea4 --- /dev/null +++ b/tests/send-to-imap.py @@ -0,0 +1,51 @@ +from imaplib import IMAP4_SSL +from os import listdir +from os.path import isfile, join +import sys + +path = sys.argv[1] +onlyfiles = [join(path, f) for f in listdir(path) if isfile(join(path, f)) and len(f) > 4 and f[-4:] == ".eml"] + +# docker run --rm -it -p 993:993 -p 143:143 dovecot/dovecot +test_mb = "kzUXL7HyS5OjLcU8" +with IMAP4_SSL(host="localhost") as M: + M.login("test", "pass") + M.delete(test_mb) + M.create(test_mb) + M.select(test_mb) + for (idx, f) in enumerate(onlyfiles): + f_noext = f[:-4] + with open(f, 'r+b') as mail: + M.append(test_mb, [], None, mail.read()) + seq = (f"{idx+1}:{idx+1}").encode() + (r, b) = M.fetch(seq, "(BODY)") + assert r == 'OK' + if type(b[0]) is tuple: + bb = b'\r\n'.join([p for p in b[0]]) + else: + bb = b[0] + f = bb[bb.find(b'('):] + with open(f_noext + ".body", 'w+b') as w: + w.write(f) + + (r, b) = M.fetch(seq, "(BODYSTRUCTURE)") + assert r == 'OK' + if type(b[0]) is tuple: + bb = b'\r\n'.join([p for p in b[0]]) + else: + bb = b[0] + + f = bb[bb.find(b'('):] + with open(f_noext + ".bodystructure", 'w+b') as w: + w.write(f) + + M.close() + M.logout() + +# old : + #(res, v) = M.select(test_mb) + #assert res == 'OK' + #exists = v[0] + #print(M.fetch(b"1:"+exists, )) + #print(M.fetch(b"1:"+exists, "(BODYSTRUCTURE)")) + -- cgit v1.2.3