Message-ID: <587.895171924@localhost>
Mime-Version: 1.0
Subject: test a mime article
Content-Type: multipart/mixed; boundary="-"

This is a MIME encoded message.  Decode it with "munpack"
or any other MIME reading software.  Mpack/munpack is available
via anonymous FTP in ftp.andrew.cmu.edu:pub/mpack/
---
Content-Type: application/octet-stream; name="qp.c"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="qp.c"
Content-MD5: qPkiKi4coVEFlHIEAsiPUQ==

LyoKICogcXA6IGVuY29kZXIgYW5kIGRlY29kZXIgZm9yIHF1b3RlZC1wcmludGFibGUgaXRl bXMKICovCgojaW5jbHVkZSAibWltZV9lbmNvZGluZy5oIgoKc3RhdGljIGNoYXIKUVBlbmNb
XSA9IHsKCSAgMCwgIDAsICAwLCAgMCwgIDAsICAwLCAgMCwgIDAsICAwLCAgMCwgIDAsICAw LCAgMCwgIDAsICAwLCAgMCwKCSAgMCwgIDAsICAwLCAgMCwgIDAsICAwLCAgMCwgIDAsICAw
LCAgMCwgIDAsICAwLCAgMCwgIDAsICAwLCAgMCwKCSAgMCwnIScsJyInLCcjJywnJCcsJyUn LCcmJywnXCcnLCcoJywnKScsJyonLCcrJywnLCcsJy0nLCcuJywnLycsCgknMCcsJzEnLCcy
JywnMycsJzQnLCc1JywnNicsJzcnLCc4JywnOScsJzonLCc7JywnPCcsICAwLCc+JywnPycs CgknQCcsJ0EnLCdCJywnQycsJ0QnLCdFJywnRicsJ0cnLCdIJywnSScsJ0onLCdLJywnTCcs
J00nLCdOJywnTycsCgknUCcsJ1EnLCdSJywnUycsJ1QnLCdVJywnVicsJ1cnLCdYJywnWScs J1onLCdbJywnXFwnLCddJywnXicsJ18nLAoJJ2AnLCdhJywnYicsJ2MnLCdkJywnZScsJ2Yn
LCdnJywnaCcsJ2knLCdqJywnaycsJ2wnLCdtJywnbicsJ28nLAoJJ3AnLCdxJywncicsJ3Mn LCd0JywndScsJ3YnLCd3JywneCcsJ3knLCd6JywneycsJ3wnLCd9JywnficsICAwLAp9OwoK
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AgICBpZiAoYyA9PSAnXHInIHx8IGMgPT0gJ1xuJykgewkvKiBz b2Z0IGxpbmVicmVhaz8gKi8KCQljID0gZmdldGMoZW5jb2RlZCk7CgkJaWYgKGMgIT0gJ1xu
JyAmJiBjICE9ICdccicpCgkJICAgIHVuZ2V0YyhjLCBlbmNvZGVkKTsKCSAgICB9CgkgICAg ZWxzZSBpZiAoYyAhPSBFT0YpIHsJCS8qIG9yIHNvbWUgcXAgZW5jb2RlZCB0aGluZyAqLwoJ
CWJmclswXSA9IGM7CgkJYyA9IGZnZXRjKGVuY29kZWQpOwoJCWlmIChjICE9IEVPRikgewoJ CSAgICBiZnJbMV0gPSBjOwoJCSAgICBiZnJbMl0gPSAwOwoKCQkgICAgc3NjYW5mKGJmciwg
IiV4IiwgJnZhbCk7CgkJICAgIGZwdXRjKHZhbCwgZG9jdW1lbnQpOwoJCX0KCSAgICB9Cgl9 CgllbHNlIGlmIChjICE9ICdccicpCQkvKiBkZWFsIHdpdGggXHJcbiBieSBkcm9wcGluZyBh
bGwgKi8KCQkJCQkvKiBccidzICovCgkgICAgZnB1dGMoYywgZG9jdW1lbnQpOwogICAgfQp9 IC8qIGRlY29kZXIgKi8KCgpzdHJ1Y3QgbWltZV9lbmNvZGluZyBxdW90ZWRfcHJpbnRhYmxl
ID0gewogICAgInF1b3RlZC1wcmludGFibGUiLAogICAgZW5jb2RlciwKICAgIGRlY29kZXIK fTsKCgojaWZkZWYgVEVTVAptYWluKCkKewogICAgZGVjb2RlcihzdGRpbiwgc3Rkb3V0KTsK
fQojZW5kaWYK

---
Content-Type: application/octet-stream; name="Plaintext"
Content-Disposition: inline; filename="Plaintext"

This is plain text, not encoded in any way.
---
Subject: test a mime article
Content-Type: multipart/mixed; boundary="___Hello_Sailor___"

This is a MIME encoded message.  Decode it with "munpack"
or any other MIME reading software.  Mpack/munpack is available
via anonymous FTP in ftp.andrew.cmu.edu:pub/mpack/
--___Hello_Sailor___
Content-Type: application/octet-stream; name="qp.c"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="qp.c"
Content-MD5: qPkiKi4coVEFlHIEAsiPUQ==

[encoded data, 4964 characters]
fQojZW5kaWYK

--___Hello_Sailor___--
Junk
---
Content-Type: text/plain; name="a message"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="a message"

More plain text
-----
Text that is exploding.
