diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs index 7ce10b3..0a83984 100644 --- a/src/imap/mailbox_view.rs +++ b/src/imap/mailbox_view.rs @@ -838,8 +838,8 @@ mod tests { "tests/emails/dxflrs/0001_simple", "tests/emails/dxflrs/0002_mime", "tests/emails/dxflrs/0003_mime-in-mime", - "tests/emails/dxflrs/0004_msg-in-msg", // broken - //"tests/emails/dxflrs/0005_mail-parser-readme", // broken + "tests/emails/dxflrs/0004_msg-in-msg", + "tests/emails/dxflrs/0005_mail-parser-readme", // broken ]; for pref in prefixes.iter() { diff --git a/tests/emails/dxflrs/0001_simple.maddy.body b/tests/emails/dxflrs/0001_simple.maddy.body new file mode 100644 index 0000000..328cdf6 --- /dev/null +++ b/tests/emails/dxflrs/0001_simple.maddy.body @@ -0,0 +1 @@ +(BODY ("text" "plain" () NIL NIL NIL 49 1)) \ No newline at end of file diff --git a/tests/emails/dxflrs/0001_simple.maddy.bodystructure b/tests/emails/dxflrs/0001_simple.maddy.bodystructure new file mode 100644 index 0000000..9af875d --- /dev/null +++ b/tests/emails/dxflrs/0001_simple.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" () NIL NIL NIL 49 1 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/dxflrs/0002_mime.maddy.body b/tests/emails/dxflrs/0002_mime.maddy.body new file mode 100644 index 0000000..8c8758c --- /dev/null +++ b/tests/emails/dxflrs/0002_mime.maddy.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.maddy.bodystructure b/tests/emails/dxflrs/0002_mime.maddy.bodystructure new file mode 100644 index 0000000..83e6b64 --- /dev/null +++ b/tests/emails/dxflrs/0002_mime.maddy.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/0003_mime-in-mime.maddy.body b/tests/emails/dxflrs/0003_mime-in-mime.maddy.body new file mode 100644 index 0000000..124b66e --- /dev/null +++ b/tests/emails/dxflrs/0003_mime-in-mime.maddy.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "us-ascii") NIL NIL NIL 9 1) ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 9 1) "mixed") ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 9 1) "mixed")) \ No newline at end of file diff --git a/tests/emails/dxflrs/0003_mime-in-mime.maddy.bodystructure b/tests/emails/dxflrs/0003_mime-in-mime.maddy.bodystructure new file mode 100644 index 0000000..e04a189 --- /dev/null +++ b/tests/emails/dxflrs/0003_mime-in-mime.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "us-ascii") NIL NIL NIL 9 1 NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 9 1 NIL NIL NIL NIL) "mixed" ("boundary" "child") NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 9 1 NIL NIL NIL NIL) "mixed" ("boundary" "parent") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/dxflrs/0004_msg-in-msg.maddy.body b/tests/emails/dxflrs/0004_msg-in-msg.maddy.body new file mode 100644 index 0000000..c3e0bd3 --- /dev/null +++ b/tests/emails/dxflrs/0004_msg-in-msg.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL NIL 9 1) ("message" "rfc822" () NIL NIL NIL 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" () NIL NIL NIL 49 1 NIL NIL NIL NIL) 4) "mixed")) \ No newline at end of file diff --git a/tests/emails/dxflrs/0004_msg-in-msg.maddy.bodystructure b/tests/emails/dxflrs/0004_msg-in-msg.maddy.bodystructure new file mode 100644 index 0000000..4ff4ef1 --- /dev/null +++ b/tests/emails/dxflrs/0004_msg-in-msg.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL NIL 9 1 NIL NIL NIL NIL) ("message" "rfc822" () NIL NIL NIL 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" () NIL NIL NIL 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/0005_mail-parser-readme.maddy.body b/tests/emails/dxflrs/0005_mail-parser-readme.maddy.body new file mode 100644 index 0000000..47261da --- /dev/null +++ b/tests/emails/dxflrs/0005_mail-parser-readme.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "html" ("charset" "us-ascii") NIL NIL "base64" 242 4) ("message" "rfc822" () NIL NIL NIL 742 (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 4 NIL NIL NIL NIL) ("text" "plain" () NIL NIL "Base64" 56 1 NIL ("attachment" ()) NIL NIL) "mixed" ("boundary" "giddyup") NIL NIL NIL) 21) "mixed")) \ No newline at end of file diff --git a/tests/emails/dxflrs/0005_mail-parser-readme.maddy.bodystructure b/tests/emails/dxflrs/0005_mail-parser-readme.maddy.bodystructure new file mode 100644 index 0000000..af8c3ce --- /dev/null +++ b/tests/emails/dxflrs/0005_mail-parser-readme.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "html" ("charset" "us-ascii") NIL NIL "base64" 242 4 NIL NIL NIL NIL) ("message" "rfc822" () NIL NIL NIL 742 (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 4 NIL NIL NIL NIL) ("text" "plain" () NIL NIL "Base64" 56 1 NIL ("attachment" ()) NIL NIL) "mixed" ("boundary" "giddyup") NIL NIL NIL) 21 NIL NIL NIL NIL) "mixed" ("boundary" "festivus") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/000.maddy.body b/tests/emails/legacy/000.maddy.body new file mode 100644 index 0000000..db3b477 --- /dev/null +++ b/tests/emails/legacy/000.maddy.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.maddy.bodystructure b/tests/emails/legacy/000.maddy.bodystructure new file mode 100644 index 0000000..2e4f8da --- /dev/null +++ b/tests/emails/legacy/000.maddy.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.maddy.body b/tests/emails/legacy/001.maddy.body new file mode 100644 index 0000000..6b58e25 --- /dev/null +++ b/tests/emails/legacy/001.maddy.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.maddy.bodystructure b/tests/emails/legacy/001.maddy.bodystructure new file mode 100644 index 0000000..2dfc948 --- /dev/null +++ b/tests/emails/legacy/001.maddy.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.maddy.body b/tests/emails/legacy/002.maddy.body new file mode 100644 index 0000000..1bb1b25 --- /dev/null +++ b/tests/emails/legacy/002.maddy.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.maddy.bodystructure b/tests/emails/legacy/002.maddy.bodystructure new file mode 100644 index 0000000..a9869d6 --- /dev/null +++ b/tests/emails/legacy/002.maddy.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.maddy.body b/tests/emails/legacy/003.maddy.body new file mode 100644 index 0000000..c7e3e31 --- /dev/null +++ b/tests/emails/legacy/003.maddy.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.maddy.bodystructure b/tests/emails/legacy/003.maddy.bodystructure new file mode 100644 index 0000000..0daabfd --- /dev/null +++ b/tests/emails/legacy/003.maddy.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.maddy.body b/tests/emails/legacy/004.maddy.body new file mode 100644 index 0000000..e5eea57 --- /dev/null +++ b/tests/emails/legacy/004.maddy.body @@ -0,0 +1 @@ +(BODY ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 768 8)) \ No newline at end of file diff --git a/tests/emails/legacy/004.maddy.bodystructure b/tests/emails/legacy/004.maddy.bodystructure new file mode 100644 index 0000000..c62360a --- /dev/null +++ b/tests/emails/legacy/004.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 768 8 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/005.maddy.body b/tests/emails/legacy/005.maddy.body new file mode 100644 index 0000000..9c9f327 --- /dev/null +++ b/tests/emails/legacy/005.maddy.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.maddy.bodystructure b/tests/emails/legacy/005.maddy.bodystructure new file mode 100644 index 0000000..2e19c02 --- /dev/null +++ b/tests/emails/legacy/005.maddy.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.maddy.body b/tests/emails/legacy/006.maddy.body new file mode 100644 index 0000000..532af14 --- /dev/null +++ b/tests/emails/legacy/006.maddy.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.maddy.bodystructure b/tests/emails/legacy/006.maddy.bodystructure new file mode 100644 index 0000000..18b8ded --- /dev/null +++ b/tests/emails/legacy/006.maddy.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.maddy.body b/tests/emails/legacy/007.maddy.body new file mode 100644 index 0000000..0da3296 --- /dev/null +++ b/tests/emails/legacy/007.maddy.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.maddy.bodystructure b/tests/emails/legacy/007.maddy.bodystructure new file mode 100644 index 0000000..82d4dd4 --- /dev/null +++ b/tests/emails/legacy/007.maddy.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.maddy.body b/tests/emails/legacy/008.maddy.body new file mode 100644 index 0000000..e8c7bc3 --- /dev/null +++ b/tests/emails/legacy/008.maddy.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.maddy.bodystructure b/tests/emails/legacy/008.maddy.bodystructure new file mode 100644 index 0000000..79cc82e --- /dev/null +++ b/tests/emails/legacy/008.maddy.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.maddy.body b/tests/emails/legacy/009.maddy.body new file mode 100644 index 0000000..2fb8365 --- /dev/null +++ b/tests/emails/legacy/009.maddy.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.maddy.bodystructure b/tests/emails/legacy/009.maddy.bodystructure new file mode 100644 index 0000000..1dd63ba --- /dev/null +++ b/tests/emails/legacy/009.maddy.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.maddy.body b/tests/emails/legacy/010.maddy.body new file mode 100644 index 0000000..44a32c6 --- /dev/null +++ b/tests/emails/legacy/010.maddy.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.maddy.bodystructure b/tests/emails/legacy/010.maddy.bodystructure new file mode 100644 index 0000000..46f7cf5 --- /dev/null +++ b/tests/emails/legacy/010.maddy.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.maddy.body b/tests/emails/legacy/011.maddy.body new file mode 100644 index 0000000..9ca312e --- /dev/null +++ b/tests/emails/legacy/011.maddy.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.maddy.bodystructure b/tests/emails/legacy/011.maddy.bodystructure new file mode 100644 index 0000000..6f5f792 --- /dev/null +++ b/tests/emails/legacy/011.maddy.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.maddy.body b/tests/emails/legacy/012.maddy.body new file mode 100644 index 0000000..5170de5 --- /dev/null +++ b/tests/emails/legacy/012.maddy.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.maddy.bodystructure b/tests/emails/legacy/012.maddy.bodystructure new file mode 100644 index 0000000..d154b81 --- /dev/null +++ b/tests/emails/legacy/012.maddy.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.maddy.body b/tests/emails/legacy/013.maddy.body new file mode 100644 index 0000000..6b8e249 --- /dev/null +++ b/tests/emails/legacy/013.maddy.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.maddy.bodystructure b/tests/emails/legacy/013.maddy.bodystructure new file mode 100644 index 0000000..d630562 --- /dev/null +++ b/tests/emails/legacy/013.maddy.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.maddy.body b/tests/emails/legacy/014.maddy.body new file mode 100644 index 0000000..1d30454 --- /dev/null +++ b/tests/emails/legacy/014.maddy.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.maddy.bodystructure b/tests/emails/legacy/014.maddy.bodystructure new file mode 100644 index 0000000..3e9f6ff --- /dev/null +++ b/tests/emails/legacy/014.maddy.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.maddy.body b/tests/emails/legacy/015.maddy.body new file mode 100644 index 0000000..840bd10 --- /dev/null +++ b/tests/emails/legacy/015.maddy.body @@ -0,0 +1 @@ +(BODY (((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 833 17) ("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.maddy.bodystructure b/tests/emails/legacy/015.maddy.bodystructure new file mode 100644 index 0000000..4a6579c --- /dev/null +++ b/tests/emails/legacy/015.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 833 17 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.maddy.body b/tests/emails/legacy/016.maddy.body new file mode 100644 index 0000000..186f437 --- /dev/null +++ b/tests/emails/legacy/016.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16) ("application" "mac-binhex40" ("name" "blueball.png") NIL NIL NIL 1929) ("application" "mac-binhex40" ("name" "=?utf-8?q?HasenundFr=EF=BF=BDsche.txt?=") NIL NIL NIL 1131) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/016.maddy.bodystructure b/tests/emails/legacy/016.maddy.bodystructure new file mode 100644 index 0000000..198be00 --- /dev/null +++ b/tests/emails/legacy/016.maddy.bodystructure @@ -0,0 +1 @@ +(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 NIL 1929 NIL ("attachment" ("filename" "blueball.png")) NIL NIL) ("application" "mac-binhex40" ("name" "=?utf-8?q?HasenundFr=EF=BF=BDsche.txt?=") NIL NIL NIL 1131 NIL ("attachment" ("filename" "=?utf-8?q?HasenundFr=EF=BF=BDsche.txt?=")) NIL NIL) "mixed" ("boundary" "=====================_716373961==_") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/017.maddy.body b/tests/emails/legacy/017.maddy.body new file mode 100644 index 0000000..6a56dac --- /dev/null +++ b/tests/emails/legacy/017.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL NIL 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.maddy.bodystructure b/tests/emails/legacy/017.maddy.bodystructure new file mode 100644 index 0000000..ad92dd6 --- /dev/null +++ b/tests/emails/legacy/017.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL NIL 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.maddy.body b/tests/emails/legacy/018.maddy.body new file mode 100644 index 0000000..7f38a2a --- /dev/null +++ b/tests/emails/legacy/018.maddy.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 836 19) ("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.maddy.bodystructure b/tests/emails/legacy/018.maddy.bodystructure new file mode 100644 index 0000000..9347566 --- /dev/null +++ b/tests/emails/legacy/018.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 836 19 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.maddy.body b/tests/emails/legacy/019.maddy.body new file mode 100644 index 0000000..80de01c --- /dev/null +++ b/tests/emails/legacy/019.maddy.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.maddy.bodystructure b/tests/emails/legacy/019.maddy.bodystructure new file mode 100644 index 0000000..c336b41 --- /dev/null +++ b/tests/emails/legacy/019.maddy.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.maddy.body b/tests/emails/legacy/020.maddy.body new file mode 100644 index 0000000..6b8e249 --- /dev/null +++ b/tests/emails/legacy/020.maddy.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.maddy.bodystructure b/tests/emails/legacy/020.maddy.bodystructure new file mode 100644 index 0000000..d630562 --- /dev/null +++ b/tests/emails/legacy/020.maddy.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.maddy.body b/tests/emails/legacy/021.maddy.body new file mode 100644 index 0000000..d1fd5b7 --- /dev/null +++ b/tests/emails/legacy/021.maddy.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.maddy.bodystructure b/tests/emails/legacy/021.maddy.bodystructure new file mode 100644 index 0000000..c0015d1 --- /dev/null +++ b/tests/emails/legacy/021.maddy.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.maddy.body b/tests/emails/legacy/022.maddy.body new file mode 100644 index 0000000..7b1aef0 --- /dev/null +++ b/tests/emails/legacy/022.maddy.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.maddy.bodystructure b/tests/emails/legacy/022.maddy.bodystructure new file mode 100644 index 0000000..8413898 --- /dev/null +++ b/tests/emails/legacy/022.maddy.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.maddy.body b/tests/emails/legacy/023.maddy.body new file mode 100644 index 0000000..d5f83ab --- /dev/null +++ b/tests/emails/legacy/023.maddy.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 NIL 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.maddy.bodystructure b/tests/emails/legacy/023.maddy.bodystructure new file mode 100644 index 0000000..670a569 --- /dev/null +++ b/tests/emails/legacy/023.maddy.bodystructure @@ -0,0 +1 @@ +(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 NIL 804 17 NIL ("attachment" ("filename" "farmerandstork.txt")) NIL NIL) ("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16 NIL ("attachment" ("filename" "=?utf-8?q?HasenundFr=EF=BF=BDsche.txt?=")) NIL NIL) "mixed" ("boundary" "=====================_716541962==_") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/024.maddy.body b/tests/emails/legacy/024.maddy.body new file mode 100644 index 0000000..3c375aa --- /dev/null +++ b/tests/emails/legacy/024.maddy.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.maddy.bodystructure b/tests/emails/legacy/024.maddy.bodystructure new file mode 100644 index 0000000..7967dc4 --- /dev/null +++ b/tests/emails/legacy/024.maddy.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.maddy.body b/tests/emails/legacy/025.maddy.body new file mode 100644 index 0000000..6b511b8 --- /dev/null +++ b/tests/emails/legacy/025.maddy.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.maddy.bodystructure b/tests/emails/legacy/025.maddy.bodystructure new file mode 100644 index 0000000..79350a8 --- /dev/null +++ b/tests/emails/legacy/025.maddy.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" ("boundary" "=====================_715462801==_.REL" "type" "text/html") 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.maddy.body b/tests/emails/legacy/026.maddy.body new file mode 100644 index 0000000..20dd9d8 --- /dev/null +++ b/tests/emails/legacy/026.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16) ("text" "plain" ("name" "=?utf-8?q?HasenundFr=EF=BF=BDsche.txt?=" "x-mac-type" "54455854" "x-mac-creator" "74747874") NIL NIL "x-uuencode" 1088 21) ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 804 17) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/026.maddy.bodystructure b/tests/emails/legacy/026.maddy.bodystructure new file mode 100644 index 0000000..1c1e7d2 --- /dev/null +++ b/tests/emails/legacy/026.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 809 16 NIL NIL NIL NIL) ("text" "plain" ("name" "=?utf-8?q?HasenundFr=EF=BF=BDsche.txt?=" "x-mac-type" "54455854" "x-mac-creator" "74747874") NIL NIL "x-uuencode" 1088 21 NIL ("attachment" ("filename" "=?utf-8?q?HasenundFr=EF=BF=BDsche.txt?=")) NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 804 17 NIL ("attachment" ("filename" "farmerandstork.txt")) NIL NIL) "mixed" ("boundary" "=====================_716740438==_") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/027.maddy.body b/tests/emails/legacy/027.maddy.body new file mode 100644 index 0000000..0da3296 --- /dev/null +++ b/tests/emails/legacy/027.maddy.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.maddy.bodystructure b/tests/emails/legacy/027.maddy.bodystructure new file mode 100644 index 0000000..82d4dd4 --- /dev/null +++ b/tests/emails/legacy/027.maddy.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.maddy.body b/tests/emails/legacy/028.maddy.body new file mode 100644 index 0000000..45f264d --- /dev/null +++ b/tests/emails/legacy/028.maddy.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.maddy.bodystructure b/tests/emails/legacy/028.maddy.bodystructure new file mode 100644 index 0000000..ba6f69c --- /dev/null +++ b/tests/emails/legacy/028.maddy.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.maddy.body b/tests/emails/legacy/029.maddy.body new file mode 100644 index 0000000..28596c9 --- /dev/null +++ b/tests/emails/legacy/029.maddy.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.maddy.bodystructure b/tests/emails/legacy/029.maddy.bodystructure new file mode 100644 index 0000000..9cc38a7 --- /dev/null +++ b/tests/emails/legacy/029.maddy.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.maddy.body b/tests/emails/legacy/030.maddy.body new file mode 100644 index 0000000..299e77f --- /dev/null +++ b/tests/emails/legacy/030.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 15) ("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.maddy.bodystructure b/tests/emails/legacy/030.maddy.bodystructure new file mode 100644 index 0000000..b5b5157 --- /dev/null +++ b/tests/emails/legacy/030.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 15 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.maddy.body b/tests/emails/legacy/031.maddy.body new file mode 100644 index 0000000..ca639e7 --- /dev/null +++ b/tests/emails/legacy/031.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "US-ASCII") NIL NIL NIL 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.maddy.bodystructure b/tests/emails/legacy/031.maddy.bodystructure new file mode 100644 index 0000000..ad486cd --- /dev/null +++ b/tests/emails/legacy/031.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "US-ASCII") NIL NIL NIL 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.maddy.body b/tests/emails/legacy/032.maddy.body new file mode 100644 index 0000000..8ba811d --- /dev/null +++ b/tests/emails/legacy/032.maddy.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.maddy.bodystructure b/tests/emails/legacy/032.maddy.bodystructure new file mode 100644 index 0000000..e1938a7 --- /dev/null +++ b/tests/emails/legacy/032.maddy.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.maddy.body b/tests/emails/legacy/033.maddy.body new file mode 100644 index 0000000..1635c99 --- /dev/null +++ b/tests/emails/legacy/033.maddy.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.maddy.bodystructure b/tests/emails/legacy/033.maddy.bodystructure new file mode 100644 index 0000000..52e98bc --- /dev/null +++ b/tests/emails/legacy/033.maddy.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.maddy.body b/tests/emails/legacy/034.maddy.body new file mode 100644 index 0000000..f2ca9c8 --- /dev/null +++ b/tests/emails/legacy/034.maddy.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.maddy.bodystructure b/tests/emails/legacy/034.maddy.bodystructure new file mode 100644 index 0000000..be973a1 --- /dev/null +++ b/tests/emails/legacy/034.maddy.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.maddy.body b/tests/emails/legacy/035.maddy.body new file mode 100644 index 0000000..6b951c7 --- /dev/null +++ b/tests/emails/legacy/035.maddy.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 "base64" 1816) ("image" "png" () "" 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.maddy.bodystructure b/tests/emails/legacy/035.maddy.bodystructure new file mode 100644 index 0000000..e60f7c8 --- /dev/null +++ b/tests/emails/legacy/035.maddy.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 "base64" 1816 NIL ("inline" ("filename" "C:\\TEMP\\nsmailEG.png")) NIL NIL) ("image" "png" () "" NIL "base64" 1992 NIL ("inline" ("filename" "C:\\TEMP\\nsmail39.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.maddy.body b/tests/emails/legacy/036.maddy.body new file mode 100644 index 0000000..3e5a6c7 --- /dev/null +++ b/tests/emails/legacy/036.maddy.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.maddy.bodystructure b/tests/emails/legacy/036.maddy.bodystructure new file mode 100644 index 0000000..09eff39 --- /dev/null +++ b/tests/emails/legacy/036.maddy.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.maddy.body b/tests/emails/legacy/037.maddy.body new file mode 100644 index 0000000..17e6187 --- /dev/null +++ b/tests/emails/legacy/037.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 1) ("image" "png" ("name" "blueball.png") NIL NIL "base64" 1816) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/037.maddy.bodystructure b/tests/emails/legacy/037.maddy.bodystructure new file mode 100644 index 0000000..8833e9c --- /dev/null +++ b/tests/emails/legacy/037.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 1 1 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.maddy.body b/tests/emails/legacy/038.maddy.body new file mode 100644 index 0000000..62e836c --- /dev/null +++ b/tests/emails/legacy/038.maddy.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.maddy.bodystructure b/tests/emails/legacy/038.maddy.bodystructure new file mode 100644 index 0000000..a2f5552 --- /dev/null +++ b/tests/emails/legacy/038.maddy.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.maddy.body b/tests/emails/legacy/039.maddy.body new file mode 100644 index 0000000..fdab5d6 --- /dev/null +++ b/tests/emails/legacy/039.maddy.body @@ -0,0 +1 @@ +(BODY ((("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 1134 17) ("image" "png" () "" NIL "base64" 1816) ("image" "png" () "" 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.maddy.bodystructure b/tests/emails/legacy/039.maddy.bodystructure new file mode 100644 index 0000000..df3be63 --- /dev/null +++ b/tests/emails/legacy/039.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 1134 17 NIL NIL NIL NIL) ("image" "png" () "" NIL "base64" 1816 NIL ("inline" ("filename" "C:\\TEMP\\nsmailV0.png")) NIL NIL) ("image" "png" () "" NIL "base64" 1992 NIL ("inline" ("filename" "C:\\TEMP\\nsmailNM.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.maddy.body b/tests/emails/legacy/040.maddy.body new file mode 100644 index 0000000..9fc090b --- /dev/null +++ b/tests/emails/legacy/040.maddy.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.maddy.bodystructure b/tests/emails/legacy/040.maddy.bodystructure new file mode 100644 index 0000000..63104bd --- /dev/null +++ b/tests/emails/legacy/040.maddy.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.maddy.body b/tests/emails/legacy/041.maddy.body new file mode 100644 index 0000000..9647cb0 --- /dev/null +++ b/tests/emails/legacy/041.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "US-ASCII") NIL NIL NIL 0 1) ("application" "octet-stream" ("name" "redball.png") "" "red ball" "BASE64" 2004) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/041.maddy.bodystructure b/tests/emails/legacy/041.maddy.bodystructure new file mode 100644 index 0000000..55ff540 --- /dev/null +++ b/tests/emails/legacy/041.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "US-ASCII") NIL NIL NIL 0 1 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.maddy.body b/tests/emails/legacy/042.maddy.body new file mode 100644 index 0000000..177e230 --- /dev/null +++ b/tests/emails/legacy/042.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 15) ("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.maddy.bodystructure b/tests/emails/legacy/042.maddy.bodystructure new file mode 100644 index 0000000..40f5ebe --- /dev/null +++ b/tests/emails/legacy/042.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 15 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.maddy.body b/tests/emails/legacy/043.maddy.body new file mode 100644 index 0000000..d951a0a --- /dev/null +++ b/tests/emails/legacy/043.maddy.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.maddy.bodystructure b/tests/emails/legacy/043.maddy.bodystructure new file mode 100644 index 0000000..ba08b9d --- /dev/null +++ b/tests/emails/legacy/043.maddy.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.maddy.body b/tests/emails/legacy/044.maddy.body new file mode 100644 index 0000000..c33455c --- /dev/null +++ b/tests/emails/legacy/044.maddy.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.maddy.bodystructure b/tests/emails/legacy/044.maddy.bodystructure new file mode 100644 index 0000000..0d0e66f --- /dev/null +++ b/tests/emails/legacy/044.maddy.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.maddy.body b/tests/emails/legacy/045.maddy.body new file mode 100644 index 0000000..5765c3d --- /dev/null +++ b/tests/emails/legacy/045.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "US-ASCII") NIL NIL NIL 0 1) ("text" "plain" ("charset" "iso-8859-1") "" "Short story in German" "BASE64" 1040 17) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/045.maddy.bodystructure b/tests/emails/legacy/045.maddy.bodystructure new file mode 100644 index 0000000..a7c0ca1 --- /dev/null +++ b/tests/emails/legacy/045.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "US-ASCII") NIL NIL NIL 0 1 NIL NIL NIL NIL) ("text" "plain" ("charset" "iso-8859-1") "" "Short story in German" "BASE64" 1040 17 NIL ("attachment" ()) NIL NIL) "mixed" ("boundary" "-1463757054-891160829-958746372=:8452") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/046.maddy.body b/tests/emails/legacy/046.maddy.body new file mode 100644 index 0000000..10cd9db --- /dev/null +++ b/tests/emails/legacy/046.maddy.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.maddy.bodystructure b/tests/emails/legacy/046.maddy.bodystructure new file mode 100644 index 0000000..c2c2f87 --- /dev/null +++ b/tests/emails/legacy/046.maddy.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.maddy.body b/tests/emails/legacy/047.maddy.body new file mode 100644 index 0000000..ba7a00b --- /dev/null +++ b/tests/emails/legacy/047.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 15) ("text" "plain" ("name" "=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?=" "charset" "iso-8859-1") NIL NIL "quoted-printable" 812 19) "mixed")) \ No newline at end of file diff --git a/tests/emails/legacy/047.maddy.bodystructure b/tests/emails/legacy/047.maddy.bodystructure new file mode 100644 index 0000000..f7c25c9 --- /dev/null +++ b/tests/emails/legacy/047.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 15 NIL NIL NIL NIL) ("text" "plain" ("name" "=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?=" "charset" "iso-8859-1") 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.maddy.body b/tests/emails/legacy/048.maddy.body new file mode 100644 index 0000000..5bb368e --- /dev/null +++ b/tests/emails/legacy/048.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 15) ("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.maddy.bodystructure b/tests/emails/legacy/048.maddy.bodystructure new file mode 100644 index 0000000..f2a348e --- /dev/null +++ b/tests/emails/legacy/048.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 767 15 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.maddy.body b/tests/emails/legacy/049.maddy.body new file mode 100644 index 0000000..751b1dc --- /dev/null +++ b/tests/emails/legacy/049.maddy.body @@ -0,0 +1 @@ +(BODY ("text" "plain" () NIL NIL NIL 6585 121)) \ No newline at end of file diff --git a/tests/emails/legacy/049.maddy.bodystructure b/tests/emails/legacy/049.maddy.bodystructure new file mode 100644 index 0000000..ab0926b --- /dev/null +++ b/tests/emails/legacy/049.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" () NIL NIL NIL 6585 121 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/050.maddy.body b/tests/emails/legacy/050.maddy.body new file mode 100644 index 0000000..b6095fc --- /dev/null +++ b/tests/emails/legacy/050.maddy.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.maddy.bodystructure b/tests/emails/legacy/050.maddy.bodystructure new file mode 100644 index 0000000..8be8280 --- /dev/null +++ b/tests/emails/legacy/050.maddy.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.maddy.body b/tests/emails/legacy/051.maddy.body new file mode 100644 index 0000000..d97d80d --- /dev/null +++ b/tests/emails/legacy/051.maddy.body @@ -0,0 +1 @@ +(BODY ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 833 17) ("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.maddy.bodystructure b/tests/emails/legacy/051.maddy.bodystructure new file mode 100644 index 0000000..22f6ca6 --- /dev/null +++ b/tests/emails/legacy/051.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 833 17 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.maddy.body b/tests/emails/legacy/052.maddy.body new file mode 100644 index 0000000..a67d9bc --- /dev/null +++ b/tests/emails/legacy/052.maddy.body @@ -0,0 +1 @@ +(BODY ("text" "plain" () NIL NIL NIL 754 17)) \ No newline at end of file diff --git a/tests/emails/legacy/052.maddy.bodystructure b/tests/emails/legacy/052.maddy.bodystructure new file mode 100644 index 0000000..8c7825c --- /dev/null +++ b/tests/emails/legacy/052.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" () NIL NIL NIL 754 17 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/legacy/053.maddy.body b/tests/emails/legacy/053.maddy.body new file mode 100644 index 0000000..337a7e2 --- /dev/null +++ b/tests/emails/legacy/053.maddy.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.maddy.bodystructure b/tests/emails/legacy/053.maddy.bodystructure new file mode 100644 index 0000000..2728f20 --- /dev/null +++ b/tests/emails/legacy/053.maddy.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.maddy.body b/tests/emails/rfc/000.maddy.body new file mode 100644 index 0000000..24acd33 --- /dev/null +++ b/tests/emails/rfc/000.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" () NIL NIL NIL 269 7) ("text" "plain" ("charset" "US-ASCII") NIL NIL NIL 114 3) (("audio" "basic" () NIL NIL "base64" 87) ("image" "jpeg" () NIL NIL "base64" 45) "parallel") ("text" "enriched" () NIL NIL NIL 145 5) ("message" "rfc822" () NIL NIL NIL 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) "mixed")) \ No newline at end of file diff --git a/tests/emails/rfc/000.maddy.bodystructure b/tests/emails/rfc/000.maddy.bodystructure new file mode 100644 index 0000000..a450c71 --- /dev/null +++ b/tests/emails/rfc/000.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" () NIL NIL NIL 269 7 NIL NIL NIL NIL) ("text" "plain" ("charset" "US-ASCII") NIL NIL NIL 114 3 NIL NIL NIL NIL) (("audio" "basic" () NIL NIL "base64" 87 NIL NIL NIL NIL) ("image" "jpeg" () NIL NIL "base64" 45 NIL NIL NIL NIL) "parallel" ("boundary" "unique-boundary-2") NIL NIL NIL) ("text" "enriched" () NIL NIL NIL 145 5 NIL NIL NIL NIL) ("message" "rfc822" () NIL NIL NIL 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.maddy.body b/tests/emails/rfc/001.maddy.body new file mode 100644 index 0000000..3fe5ce9 --- /dev/null +++ b/tests/emails/rfc/001.maddy.body @@ -0,0 +1 @@ +(BODY (("message" "external-body" ("access-type" "ANON-FTP" "directory" "pub" "expiration" "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)" "name" "BodyFormats.ps" "site" "thumper.bellcore.com" "mode" "image") NIL NIL NIL 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 NIL 81) ("text" "plain" () NIL NIL NIL 101 4) "alternative")) \ No newline at end of file diff --git a/tests/emails/rfc/001.maddy.bodystructure b/tests/emails/rfc/001.maddy.bodystructure new file mode 100644 index 0000000..8b076be --- /dev/null +++ b/tests/emails/rfc/001.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("message" "external-body" ("access-type" "ANON-FTP" "directory" "pub" "expiration" "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)" "name" "BodyFormats.ps" "site" "thumper.bellcore.com" "mode" "image") NIL NIL NIL 81 NIL NIL NIL NIL) ("message" "external-body" ("expiration" "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)" "access-type" "local-file" "name" "/u/nsb/writing/rfcs/RFC-MIME.ps" "site" "thumper.bellcore.com") NIL NIL NIL 81 NIL NIL NIL NIL) ("text" "plain" () NIL NIL NIL 101 4 NIL NIL NIL NIL) "alternative" ("boundary" "42") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/rfc/002.maddy.body b/tests/emails/rfc/002.maddy.body new file mode 100644 index 0000000..153abf3 --- /dev/null +++ b/tests/emails/rfc/002.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 66 6) ("message" "rfc822" () NIL NIL "7bit" 2026 ("Thu, 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 (The Enforcer) Gore" NIL "vice-president" "whitehouse.gov")) NIL NIL NIL "<199804130742.RAA20366@mai1host.whitehouse.gov>") (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 367 13 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) "mixed")) \ No newline at end of file diff --git a/tests/emails/rfc/002.maddy.bodystructure b/tests/emails/rfc/002.maddy.bodystructure new file mode 100644 index 0000000..32409d5 --- /dev/null +++ b/tests/emails/rfc/002.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 66 6 NIL NIL NIL NIL) ("message" "rfc822" () NIL NIL "7bit" 2026 ("Thu, 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 (The Enforcer) Gore" NIL "vice-president" "whitehouse.gov")) NIL NIL NIL "<199804130742.RAA20366@mai1host.whitehouse.gov>") (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 367 13 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) "mixed" ("boundary" "D7F------------D7FD5A0B8AB9C65CCDBFA872") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/rfc/003.maddy.body b/tests/emails/rfc/003.maddy.body new file mode 100644 index 0000000..d90f051 --- /dev/null +++ b/tests/emails/rfc/003.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" ("charset" "us-ascii") NIL NIL NIL 49 1) ("text" "enriched" () NIL NIL NIL 71 2) ("application" "x-whatever" () NIL NIL NIL 52) "alternative")) \ No newline at end of file diff --git a/tests/emails/rfc/003.maddy.bodystructure b/tests/emails/rfc/003.maddy.bodystructure new file mode 100644 index 0000000..92c080e --- /dev/null +++ b/tests/emails/rfc/003.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL NIL 49 1 NIL NIL NIL NIL) ("text" "enriched" () NIL NIL NIL 71 2 NIL NIL NIL NIL) ("application" "x-whatever" () NIL NIL NIL 52 NIL NIL NIL NIL) "alternative" ("boundary" "boundary42") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/rfc/004.maddy.body b/tests/emails/rfc/004.maddy.body new file mode 100644 index 0000000..90950bb --- /dev/null +++ b/tests/emails/rfc/004.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" () NIL NIL NIL 46 1) (("text" "plain" () NIL NIL NIL 105 5) ("text" "plain" () NIL NIL NIL 130 5) "digest") "mixed")) \ No newline at end of file diff --git a/tests/emails/rfc/004.maddy.bodystructure b/tests/emails/rfc/004.maddy.bodystructure new file mode 100644 index 0000000..ea521cc --- /dev/null +++ b/tests/emails/rfc/004.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" () NIL NIL NIL 46 1 NIL NIL NIL NIL) (("text" "plain" () NIL NIL NIL 105 5 NIL NIL NIL NIL) ("text" "plain" () NIL NIL NIL 130 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.maddy.body b/tests/emails/rfc/005.maddy.body new file mode 100644 index 0000000..36d674e --- /dev/null +++ b/tests/emails/rfc/005.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" () NIL NIL NIL 80 2) ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 78 2) "mixed")) \ No newline at end of file diff --git a/tests/emails/rfc/005.maddy.bodystructure b/tests/emails/rfc/005.maddy.bodystructure new file mode 100644 index 0000000..b1f710c --- /dev/null +++ b/tests/emails/rfc/005.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" () NIL NIL NIL 80 2 NIL NIL NIL NIL) ("text" "plain" ("charset" "us-ascii") NIL NIL NIL 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.maddy.body b/tests/emails/rfc/006.maddy.body new file mode 100644 index 0000000..34bef7b --- /dev/null +++ b/tests/emails/rfc/006.maddy.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.maddy.bodystructure b/tests/emails/rfc/006.maddy.bodystructure new file mode 100644 index 0000000..2727143 --- /dev/null +++ b/tests/emails/rfc/006.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 89 2 NIL ("inline" ()) NIL NIL) ("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 95 2 NIL ("inline" ()) NIL NIL) "alternative" ("boundary" "boundary-string") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/rfc/007.maddy.body b/tests/emails/rfc/007.maddy.body new file mode 100644 index 0000000..ad0c6fb --- /dev/null +++ b/tests/emails/rfc/007.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" () NIL NIL NIL 1 1) (((("text" "plain" () NIL NIL NIL 1 1) ("image" "jpeg" () NIL NIL NIL 1) ("text" "plain" () NIL NIL NIL 1 1) "mixed") (("text" "html" () NIL NIL NIL 14 1) ("image" "jpeg" () NIL NIL NIL 1) "related") "alternative") ("image" "jpeg" () NIL NIL NIL 1) ("application" "x-excel" () NIL NIL NIL 1) ("message" "rfc822" () NIL NIL NIL 15 (NIL "J" NIL NIL NIL NIL NIL NIL NIL NIL) ("text" "plain" () NIL NIL NIL 1 1 NIL NIL NIL NIL) 4) "mixed") ("text" "plain" () NIL NIL NIL 1 1) "mixed")) \ No newline at end of file diff --git a/tests/emails/rfc/007.maddy.bodystructure b/tests/emails/rfc/007.maddy.bodystructure new file mode 100644 index 0000000..bee79e5 --- /dev/null +++ b/tests/emails/rfc/007.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" () NIL NIL NIL 1 1 NIL ("inline" ()) NIL NIL) (((("text" "plain" () NIL NIL NIL 1 1 NIL ("inline" ()) NIL NIL) ("image" "jpeg" () NIL NIL NIL 1 NIL ("inline" ()) NIL NIL) ("text" "plain" () NIL NIL NIL 1 1 NIL ("inline" ()) NIL NIL) "mixed" ("boundary" "4") NIL NIL NIL) (("text" "html" () NIL NIL NIL 14 1 NIL NIL NIL NIL) ("image" "jpeg" () NIL NIL NIL 1 NIL NIL NIL NIL) "related" ("boundary" "5") NIL NIL NIL) "alternative" ("boundary" "3") NIL NIL NIL) ("image" "jpeg" () NIL NIL NIL 1 NIL ("attachment" ()) NIL NIL) ("application" "x-excel" () NIL NIL NIL 1 NIL NIL NIL NIL) ("message" "rfc822" () NIL NIL NIL 15 (NIL "J" NIL NIL NIL NIL NIL NIL NIL NIL) ("text" "plain" () NIL NIL NIL 1 1 NIL NIL NIL NIL) 4 NIL NIL NIL NIL) "mixed" ("boundary" "2") NIL NIL NIL) ("text" "plain" () NIL NIL NIL 1 1 NIL ("inline" ()) NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/000.maddy.body b/tests/emails/thirdparty/000.maddy.body new file mode 100644 index 0000000..a53f690 --- /dev/null +++ b/tests/emails/thirdparty/000.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" () NIL NIL "base64" 224 3) ("text" "plain" () NIL NIL "base64" 4 1) "alternative")) \ No newline at end of file diff --git a/tests/emails/thirdparty/000.maddy.bodystructure b/tests/emails/thirdparty/000.maddy.bodystructure new file mode 100644 index 0000000..14e5fa0 --- /dev/null +++ b/tests/emails/thirdparty/000.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" () NIL NIL "base64" 224 3 NIL NIL NIL NIL) ("text" "plain" () NIL NIL "base64" 4 1 NIL NIL NIL NIL) "alternative" ("boundary" "bound") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/001.maddy.body b/tests/emails/thirdparty/001.maddy.body new file mode 100644 index 0000000..7247e37 --- /dev/null +++ b/tests/emails/thirdparty/001.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" () NIL NIL "binary" 224 3) ("text" "plain" () NIL NIL "binary" 4 1) ("text" "plain" () NIL NIL NIL 13 1) "alternative")) \ No newline at end of file diff --git a/tests/emails/thirdparty/001.maddy.bodystructure b/tests/emails/thirdparty/001.maddy.bodystructure new file mode 100644 index 0000000..a4e18a0 --- /dev/null +++ b/tests/emails/thirdparty/001.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" () NIL NIL "binary" 224 3 NIL NIL NIL NIL) ("text" "plain" () NIL NIL "binary" 4 1 NIL NIL NIL NIL) ("text" "plain" () NIL NIL NIL 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.maddy.body b/tests/emails/thirdparty/002.maddy.body new file mode 100644 index 0000000..3e3f8d3 --- /dev/null +++ b/tests/emails/thirdparty/002.maddy.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 1) ("text" "plain" ("charset" "utf-8") NIL NIL "base64" 8 1) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/002.maddy.bodystructure b/tests/emails/thirdparty/002.maddy.bodystructure new file mode 100644 index 0000000..4555671 --- /dev/null +++ b/tests/emails/thirdparty/002.maddy.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 1 NIL NIL NIL NIL) ("text" "plain" ("charset" "utf-8") NIL NIL "base64" 8 1 NIL NIL NIL NIL) "mixed" ("boundary" "foo") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/003.maddy.body b/tests/emails/thirdparty/003.maddy.body new file mode 100644 index 0000000..7d6271d --- /dev/null +++ b/tests/emails/thirdparty/003.maddy.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.maddy.bodystructure b/tests/emails/thirdparty/003.maddy.bodystructure new file mode 100644 index 0000000..5cf433c --- /dev/null +++ b/tests/emails/thirdparty/003.maddy.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.maddy.body b/tests/emails/thirdparty/004.maddy.body new file mode 100644 index 0000000..7f18c1b --- /dev/null +++ b/tests/emails/thirdparty/004.maddy.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 "8 bit" 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 NIL 41 1) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/004.maddy.bodystructure b/tests/emails/thirdparty/004.maddy.bodystructure new file mode 100644 index 0000000..a3cc66c --- /dev/null +++ b/tests/emails/thirdparty/004.maddy.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 "8 bit" 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 NIL 41 1 NIL NIL NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/006.maddy.body b/tests/emails/thirdparty/006.maddy.body new file mode 100644 index 0000000..c121c30 --- /dev/null +++ b/tests/emails/thirdparty/006.maddy.body @@ -0,0 +1 @@ +(BODY (((("text" "html" ("charset" "us-ascii") NIL NIL NIL 90 1) ("text" "plain" () NIL NIL "binary" 27 1) "alternative") ("signature" "plain" ("charset" "us-ascii") NIL NIL NIL 21) "signed") "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/006.maddy.bodystructure b/tests/emails/thirdparty/006.maddy.bodystructure new file mode 100644 index 0000000..7dce952 --- /dev/null +++ b/tests/emails/thirdparty/006.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (((("text" "html" ("charset" "us-ascii") NIL NIL NIL 90 1 NIL NIL NIL NIL) ("text" "plain" () NIL NIL "binary" 27 1 NIL NIL NIL NIL) "alternative" ("boundary" "3") NIL NIL NIL) ("signature" "plain" ("charset" "us-ascii") NIL NIL NIL 21 NIL NIL NIL NIL) "signed" ("boundary" "2" "protocol" "signature/plain" "migalc" "pen+paper") NIL NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/007.maddy.body b/tests/emails/thirdparty/007.maddy.body new file mode 100644 index 0000000..88f3208 --- /dev/null +++ b/tests/emails/thirdparty/007.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" () NIL NIL NIL 76 4) ("text" "plain" () NIL NIL NIL 77 4) ("text" "plain" () NIL NIL NIL 332 15) "digest")) \ No newline at end of file diff --git a/tests/emails/thirdparty/007.maddy.bodystructure b/tests/emails/thirdparty/007.maddy.bodystructure new file mode 100644 index 0000000..58c3be0 --- /dev/null +++ b/tests/emails/thirdparty/007.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" () NIL NIL NIL 76 4 NIL NIL NIL NIL) ("text" "plain" () NIL NIL NIL 77 4 NIL NIL NIL NIL) ("text" "plain" () NIL NIL NIL 332 15 NIL NIL NIL NIL) "digest" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/009.maddy.body b/tests/emails/thirdparty/009.maddy.body new file mode 100644 index 0000000..deaec19 --- /dev/null +++ b/tests/emails/thirdparty/009.maddy.body @@ -0,0 +1 @@ +(BODY (("text" "plain" () NIL NIL "binary" 48 1) ("message" "partial" ("total" "5" "id" "heks68ewe@example.org" "number" "1") NIL NIL NIL 247) "mixed")) \ No newline at end of file diff --git a/tests/emails/thirdparty/009.maddy.bodystructure b/tests/emails/thirdparty/009.maddy.bodystructure new file mode 100644 index 0000000..8307d72 --- /dev/null +++ b/tests/emails/thirdparty/009.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE (("text" "plain" () NIL NIL "binary" 48 1 NIL NIL NIL NIL) ("message" "partial" ("id" "heks68ewe@example.org" "number" "1" "total" "5") NIL NIL NIL 247 NIL NIL NIL NIL) "mixed" ("boundary" "1") NIL NIL NIL)) \ No newline at end of file diff --git a/tests/emails/thirdparty/010.maddy.body b/tests/emails/thirdparty/010.maddy.body new file mode 100644 index 0000000..4609f0e --- /dev/null +++ b/tests/emails/thirdparty/010.maddy.body @@ -0,0 +1 @@ +(BODY ("text" "plain" () NIL NIL NIL 117 7)) \ No newline at end of file diff --git a/tests/emails/thirdparty/010.maddy.bodystructure b/tests/emails/thirdparty/010.maddy.bodystructure new file mode 100644 index 0000000..335b8e5 --- /dev/null +++ b/tests/emails/thirdparty/010.maddy.bodystructure @@ -0,0 +1 @@ +(BODYSTRUCTURE ("text" "plain" () NIL NIL NIL 117 7 NIL NIL NIL NIL)) \ No newline at end of file diff --git a/tests/send-to-imap.py b/tests/send-to-imap.py index ccbebda..42faee0 100644 --- a/tests/send-to-imap.py +++ b/tests/send-to-imap.py @@ -1,8 +1,35 @@ -from imaplib import IMAP4_SSL +from imaplib import IMAP4_SSL, IMAP4 from os import listdir from os.path import isfile, join import sys +# COMMAND USAGE +# +# start a test IMAP server locally (see comment below) +# then call this script. eg: +# ./send-to-imap.py dovecot ./emails/dxflrs/ + +# DOCKER CONTAINERS TO QUICKLY SPAWN A REFERENCE SERVER +# +# -- Dovecot -- +# cmd: docker run --rm -it -p 993:993 -p 143:143 dovecot/dovecot +# user: test (any) +# pw: pass +# +# -- Maddy -- +# cmds: +# docker volume create maddydata +# openssl req -nodes -new -x509 -keyout privkey.pem -out fullchain.pem +# docker run --rm -it --name maddy -e MADDY_DOMAIN=example.com -e MADDY_HOSTNAME=mx.example.com -v maddydata:/data -p 143:143 -p 993:993 --entrypoint /bin/sh foxcpp/maddy +# mkdir /data/tls +# docker cp ./fullchain.pem maddy:/data/tls/ +# docker cp ./privkey.pem maddy:/data/tls/ +# maddyctl creds create test@example.com +# maddyctl imap-acct create test@example.com +# maddy -config /data/maddy.conf run --debug +# +# docker run --rm -it -v maddydata:/data-p 143:143 -p 993:993 foxcpp/maddy + def rebuild_body_res(b): bb = b'' for e in b: @@ -14,40 +41,59 @@ def rebuild_body_res(b): f = bb[bb.find(b'('):] return f -path = sys.argv[1] +target = sys.argv[1] +path = sys.argv[2] + +parameters = { + "dovecot": { + "con": IMAP4_SSL, + "user": "test", + "pw": "pass", + "ext": "", + }, + "maddy": { + "con": IMAP4_SSL, + "user": "test@example.com", + "pw": "pass", + "ext": ".maddy", + }, +} +conf = parameters[target] + 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) +with conf['con'](host="localhost") as M: + print(M.login(conf['user'], conf['pw'])) + print(M.delete(test_mb)) + print(M.create(test_mb)) + + + print(M.list()) + print(M.select(test_mb)) + failed = 0 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' + try: + with open(f, 'r+b') as mail: + print(M.append(test_mb, [], None, mail.read())) + seq = (f"{idx+1-failed}:{idx+1-failed}").encode() + (r, b) = M.fetch(seq, "(BODY)") + print((r, b)) + assert r == 'OK' - with open(f_noext + ".body", 'w+b') as w: - w.write(rebuild_body_res(b)) + with open(f_noext + conf['ext'] + ".body", 'w+b') as w: + w.write(rebuild_body_res(b)) - (r, b) = M.fetch(seq, "(BODYSTRUCTURE)") - assert r == 'OK' - with open(f_noext + ".bodystructure", 'w+b') as w: - w.write(rebuild_body_res(b)) + (r, b) = M.fetch(seq, "(BODYSTRUCTURE)") + print((r, b)) + assert r == 'OK' + with open(f_noext + conf['ext'] + ".bodystructure", 'w+b') as w: + w.write(rebuild_body_res(b)) + except: + failed += 1 + print(f"failed {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)")) -