expect MISSING_MIME_VERSION SINGLE_SHORT_PART Content-Type: text/plain; charset="us-ascii" Test expect MV_CASE SINGLE_SHORT_PART Content-Type: text/plain; charset="us-ascii" Mime-Version: 1.0 Test expect CTE_CASE CT_EXTRA_SEMI SINGLE_SHORT_PART Content-Type: text/plain; charset="us-ascii"; Content-Transfer-Encoding: 7Bit MIME-Version: 1.0 Test expect BROKEN_CONTENT_TYPE SINGLE_SHORT_PART Content-Type: ; tag=1 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Test expect MIME_HEADER_CTYPE_ONLY MISSING_MIME_VERSION SINGLE_SHORT_PART Content-Type: text/html; charset="us-ascii" Test expect BAD_CTE_7BIT SINGLE_SHORT_PART Content-Type: text/plain Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Téstíng expect MISSING_CHARSET SINGLE_SHORT_PART Content-Type: text/plain Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Test expect MIME_BASE64_TEXT_BOGUS SINGLE_SHORT_PART Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 aGVsbG8gd29ybGQK expect MIME_BASE64_TEXT SINGLE_SHORT_PART Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 aMOpbGzDsyB3w7NybGQK expect MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. --boundary Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
--boundary-- expect MIME_MA_MISSING_TEXT MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="boundary" --boundary Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bitLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
--boundary-- expect MIME_MA_MISSING_HTML MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. --boundary-- expect PARTS_DIFFER MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Lorem ipsum dolor sit Ramet, Rcnsectetur Radipiscing elit, Rsed do Reiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. --boundary Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bitLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
--boundary-- expect URI_COUNT_ODD MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Find me at http://www.example.com or http://www.example.org --boundary Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bitFind me at http://www.example.com or
--boundary-- expect MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Find me at http://www.example.com or http://www.example.org --boundary Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bitFind me at http://www.example.com or http://example.org
--boundary-- expect CTYPE_MIXED_BOGUS MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit this is a test --boundary Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bitthis is a test
--boundary-- expect MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit this is a test --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit another test --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit last test --boundary-- expect HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit this is a test --boundary Content-Type: application/octet-stream Content-Disposition: attachment Content-Transfer-Encoding: 7bitthis is a test
--boundary-- expect CTYPE_MISSING_DISPOSITION HAS_ATTACHMENT SINGLE_SHORT_PART Content-Type: application/octet-stream MIME-Version: 1.0 Test expect ENCRYPTED_PGP ENCRYPTED_SMIME SIGNED_PGP SIGNED_SMIME HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/encrypted; boundary="boundary" --boundary Content-Type: application/pkcs7-mime Content-Transfer-Encoding: 7bit this is a test --boundary Content-Type: application/pkcs7-signature Content-Transfer-Encoding: 7bit this is a test --boundary Content-Type: application/pgp-encrypted Content-Transfer-Encoding: 7bit this is a test --boundary Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit this is a test --boundary Content-Type: application/octet-stream Content-Transfer-Encoding: 7bit this is a test --boundary-- expect CTYPE_MISSING_DISPOSITION HAS_ATTACHMENT SINGLE_SHORT_PART Content-Type: application/octet-stream MIME-Version: 1.0 Test expect BOGUS_ENCRYPTED_AND_TEXT ENCRYPTED_SMIME MIME-Version: 1.0 Content-Type: multipart/encrypted; boundary="boundary" --boundary Content-Type: application/pkcs7-mime Content-Transfer-Encoding: 7bit this is a test --boundary Content-Type: text/html Content-Transfer-Encoding: 7bit this is a test --boundary-- expect MIXED_CHARSET SINGLE_SHORT_PART Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Tést 孔子 expect MIME_BAD_EXTENSION MIME_GOOD HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: text/html; charset="utf-8" Content-Disposition: attachment; filename="test.html" Content-Transfer-Encoding: 8bithello world
--boundary-- expect MIME_BAD_ATTACHMENT HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: text/x-plain; charset="utf-8" Content-Disposition: attachment; filename="test.txt" Content-Transfer-Encoding: 8bit hello world --boundary-- expect HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: text/plain; charset="utf-8" Content-Disposition: attachment; filename="test.txt" Content-Transfer-Encoding: 8bit hello world --boundary-- expect MIME_DOUBLE_BAD_EXTENSION MIME_GOOD HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: text/html; charset="utf-8" Content-Disposition: attachment; filename="test.html.html" Content-Transfer-Encoding: 8bithello world
--boundary-- expect MIME_ARCHIVE_IN_ARCHIVE MIME_GOOD HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: application/zip Content-Disposition: attachment; filename="test.zip.zip" Content-Transfer-Encoding: base64 UEsDBAoAAAAAALN6RlcAAAAAAAAAAAAAAAAIABwAdGVzdC5iaW5VVAkAA+IJI GXiCSBldXgLAAEE9QEAAAQUAAAAUEsBAh4DCgAAAAAAs3pGVwAAAAAAAAAAAA AAAAgAGAAAAAAAAAAAAKSBAAAAAHRlc3QuYmluVVQFAAPiCSBldXgLAAEE9QE AAAQUAAAAUEsFBgAAAAABAAEATgAAAEIAAAAAAA== --boundary-- expect MIME_BAD HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: image/png Content-Disposition: attachment; filename="test.png" Content-Transfer-Encoding: base64 UEsDBAoAAAAAALN6RlcAAAAAAAAAAAAAAAAIABwAdGVzdC5iaW5VVAkAA+IJI GXiCSBldXgLAAEE9QEAAAQUAAAAUEsBAh4DCgAAAAAAs3pGVwAAAAAAAAAAAA AAAAgAGAAAAAAAAAAAAKSBAAAAAHRlc3QuYmluVVQFAAPiCSBldXgLAAEE9QE AAAQUAAAAUEsFBgAAAAABAAEATgAAAEIAAAAAAA== --boundary-- expect MIME_GOOD HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: audio/x-wave Content-Disposition: attachment; filename="voicemail.wav" Content-Transfer-Encoding: base64 UklGRqQAAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YYAAAAAAAQID BAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIz NDU2Nzg5Ojs8PT4/AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIj JCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+Pw== --boundary-- expect MIME_GOOD HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: application/x-zip-compressed Content-Disposition: attachment; filename="test.zip" Content-Transfer-Encoding: base64 UEsDBAoAAAAAALN6RlcAAAAAAAAAAAAAAAAIABwAdGVzdC5iaW5VVAkAA+IJI GXiCSBldXgLAAEE9QEAAAQUAAAAUEsBAh4DCgAAAAAAs3pGVwAAAAAAAAAAAA AAAAgAGAAAAAAAAAAAAKSBAAAAAHRlc3QuYmluVVQFAAPiCSBldXgLAAEE9QE AAAQUAAAAUEsFBgAAAAABAAEATgAAAEIAAAAAAA== --boundary-- expect HAS_ATTACHMENT MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="boundary" --boundary Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit simple text --boundary Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document Content-Disposition: attachment; filename="test.docx" Content-Transfer-Encoding: base64 UEsDBAoAAAAAALN6RlcAAAAAAAAAAAAAAAAIABwAdGVzdC5iaW5VVAkAA+IJI GXiCSBldXgLAAEE9QEAAAQUAAAAUEsBAh4DCgAAAAAAs3pGVwAAAAAAAAAAAA AAAAgAGAAAAAAAAAAAAKSBAAAAAHRlc3QuYmluVVQFAAPiCSBldXgLAAEE9QE AAAQUAAAAUEsFBgAAAAABAAEATgAAAEIAAAAAAA== --boundary--