Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,69 @@ + +
+ +Date: Thu, 6 Jun 1996 15:50:39 +0400 (MOW DST) + +From: Starovoitov Igor <igor@fripp.aic.synapse.ru> + +To: eryq@rhine.gsfc.nasa.gov + +Subject: Need help + +MIME-Version: 1.0 + +Content-Type: MULTIPART/MIXED; BOUNDARY="-490585488-806670346-834061839=:2195" +
+ + + This message is in MIME format. The first part should be readable text, + while the remaining parts are likely unreadable without MIME-aware tools. + Send mail to mime@docserver.cac.washington.edu for more info. + + +
+ +Content-Type: TEXT/PLAIN; charset=US-ASCII +
+ +
+ +
+ +Content-Type: TEXT/PLAIN; charset=US-ASCII; name=Makefile + +Content-Transfer-Encoding: BASE64 + +Content-ID: <Pine.LNX.3.91.960606155039.2195B@fripp.aic.synapse.ru> + +Content-Description: Makefile +
+ +
+ +
+ +Content-Type: TEXT/PLAIN; charset=US-ASCII; name="multi-nested.msg" + +Content-Transfer-Encoding: BASE64 + +Content-ID: <Pine.LNX.3.91.960606155039.2195C@fripp.aic.synapse.ru> + +Content-Description: test message +
+ +
+ +
+ +Content-Type: TEXT/PLAIN; charset=US-ASCII; name="Parser.n.out" + +Content-Transfer-Encoding: BASE64 + +Content-ID: <Pine.LNX.3.91.960606155039.2195D@fripp.aic.synapse.ru> + +Content-Description: out from parser +
+ +
+
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_1.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_1.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_1.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_1.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,16 @@ +Dear Sir, + +I have a problem with Your MIME-Parser-1.9 +and multipart-nested messages. +Not all parts are parsed. + +Here my Makefile, Your own multipart-nested.msg +and its out after "make test". +Some my messages not completely parsed too. + +Is this a bug? + +Thank You for help. + + +Igor Starovoytov. \ No newline at end of file Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_1.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_2.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_2.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_2.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_2.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,76 @@ +#------------------------------------------------------------ +# Makefile for MIME:: +#------------------------------------------------------------ + +# Where to install the libraries: +SITE_PERL = /usr/lib/perl5 + +# What Perl5 is called on your system (no need to give entire path): +PERL5 = perl + +# You probably won't need to change these... +MODS = Decoder.pm Entity.pm Head.pm Parser.pm Base64.pm QuotedPrint.pm +SHELL = /bin/sh + +#------------------------------------------------------------ +# For installers... +#------------------------------------------------------------ + +help: + @echo "Valid targets: test clean install" + +clean: + rm -f testout/* + +test: +# @echo "TESTING Head.pm..." +# ${PERL5} MIME/Head.pm < testin/first.hdr > testout/Head.out +# @echo "TESTING Decoder.pm..." +# ${PERL5} MIME/Decoder.pm < testin/quot-print.body > testout/Decoder.out +# @echo "TESTING Parser.pm (simple)..." +# ${PERL5} MIME/Parser.pm < testin/simple.msg > testout/Parser.s.out +# @echo "TESTING Parser.pm (multipart)..." +# ${PERL5} MIME/Parser.pm < testin/multi-2gifs.msg > testout/Parser.m.out + @echo "TESTING Parser.pm (multi_nested.msg)..." + ${PERL5} MIME/Parser.pm < testin/multi-nested.msg > testout/Parser.n.out + @echo "All tests passed... see ./testout/MODULE*.out for output" + +install: + @if [ ! -d ${SITE_PERL} ]; then \ + echo "Please edit the SITE_PERL in your Makefile"; exit -1; \ + fi + @if [ ! -w ${SITE_PERL} ]; then \ + echo "No permission... should you be root?"; exit -1; \ + fi + @if [ ! -d ${SITE_PERL}/MIME ]; then \ + mkdir ${SITE_PERL}/MIME; \ + fi + install -m 0644 MIME/*.pm ${SITE_PERL}/MIME + + +#------------------------------------------------------------ +# For developer only... +#------------------------------------------------------------ + +POD2HTML_FLAGS = --podpath=. --flush --htmlroot=.. +HTMLS = ${MODS:.pm=.html} +VPATH = MIME + +.SUFFIXES: .pm .pod .html + +# v.1.8 generated 30 Apr 96 +# v.1.9 is only because 1.8 failed CPAN ingestion +dist: documented + VERSION=1.9 ; \ + mkdist -tgz MIME-parser-$$VERSION ; \ + cp MKDIST/MIME-parser-$$VERSION.tgz ${HOME}/public_html/cpan + +documented: ${HTMLS} ${MODS} + +.pm.html: + pod2html ${POD2HTML_FLAGS} \ + --title=MIME::$* \ + --infile=$< \ + --outfile=docs/$*.html + +#------------------------------------------------------------ Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_2.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_3.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_3.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_3.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_3.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,88 @@ +MIME-Version: 1.0 +From: Lord John Whorfin +To: +Subject: A complex nested multipart example +Content-Type: multipart/mixed; + boundary=unique-boundary-1 + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. +--unique-boundary-1 + +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +--unique-boundary-1 +Content-type: text/plain; charset=US-ASCII + +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +--unique-boundary-1 +Subject: Part 3 of the outer message is multipart! +Content-Type: multipart/parallel; + boundary=unique-boundary-2 + +A one-line preamble for the inner multipart message. +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-compress.gif" +Subject: Part 1 of the inner message is a GIF, "3d-compress.gif" + +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA +oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT +8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0 +qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR +2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv +QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ +0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs= +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-eye.gif" +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" + +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7 +VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7 ++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL +rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ +vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw +E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7 +--unique-boundary-2-- + +The epilogue for the inner multipart message. + +--unique-boundary-1 +Content-type: text/richtext + +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? + +--unique-boundary-1 +Content-Type: message/rfc822 + +From: (mailbox in US-ASCII) +To: (address in US-ASCII) +Subject: Part 5 of the outer message is itself an RFC822 message! +Content-Type: Text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Part 5 of the outer message is itself an RFC822 message! + +--unique-boundary-1-- + +The epilogue for the outer message. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_3.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_4.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_4.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_4.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_4.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,28 @@ +* Waiting for a MIME message from STDIN... +============================================================ +Content-type: multipart/mixed +Body-file: NONE +Subject: A complex nested multipart example +Num-parts: 3 +-- + Content-type: text/plain + Body-file: ./testout/msg-3538-1.doc + -- + Content-type: text/plain + Body-file: ./testout/msg-3538-2.doc + -- + Content-type: multipart/parallel + Body-file: NONE + Subject: Part 3 of the outer message is multipart! + Num-parts: 2 + -- + Content-type: image/gif + Body-file: ./testout/3d-compress.gif + Subject: Part 1 of the inner message is a GIF, "3d-compress.gif" + -- + Content-type: image/gif + Body-file: ./testout/3d-eye.gif + Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" + -- +============================================================ + Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-igor_decoded_1_4.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.msg URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.msg?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.msg (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.msg Tue Apr 19 10:12:19 2011 @@ -0,0 +1,89 @@ +MIME-Version: 1.0 +From: Lord John Whorfin +To: +Subject: A complex nested multipart example +Content-Type: multipart/mixed; + boundary=unique-boundary-1 + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. +--unique-boundary-1 + +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +--unique-boundary-1 +Content-type: text/plain; charset=US-ASCII + +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +--unique-boundary-1 +Subject: Part 3 of the outer message is multipart! +Content-Type: multipart/parallel; + boundary=unique-boundary-2 + +A one-line preamble for the inner multipart message. +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-vise.gif" +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" + +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA +oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT +8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0 +qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR +2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv +QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ +0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs= +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-eye.gif" +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" + +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7 +VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7 ++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL +rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ +vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw +E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7 +--unique-boundary-2-- + +The epilogue for the inner multipart message. + +--unique-boundary-1 +Content-type: text/richtext + +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? + +--unique-boundary-1 +Content-Type: message/rfc822; name="/evil/filename"; + +From: (mailbox in US-ASCII) +To: (address in US-ASCII) +Subject: Part 5 of the outer message is itself an RFC822 message! +Content-Type: Text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Part 5 of the outer message is itself an RFC822 message! + +--unique-boundary-1-- + +The epilogue for the outer message. + Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.out URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.out?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.out (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.out Tue Apr 19 10:12:19 2011 @@ -0,0 +1,91 @@ +MIME-Version: 1.0 +From: Lord John Whorfin +To: +Subject: A complex nested multipart example +Content-Type: multipart/mixed; + boundary=unique-boundary-1 + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. +--unique-boundary-1 + +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +--unique-boundary-1 +Content-type: text/plain; charset=US-ASCII + +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +--unique-boundary-1 +Subject: Part 3 of the outer message is multipart! +Content-Type: multipart/parallel; + boundary=unique-boundary-2 + +A one-line preamble for the inner multipart message. +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-vise.gif" +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" + +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAAAAAA +AAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbAoFCY47EI +qMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT8Hl1B3kDAYYl +e202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0qTurjHgLKAu0B5Wq +opm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR2bhwJGlXJQYG6mMKoeNo +WSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIvQceGWSMevpOYhl6CkydBHhBZ +QmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ0mhMnfl0pDBFa6bUElSPWb0qtYuH +rxlwcR17YsWMs2jTql3LFkQEADs= + +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-eye.gif" +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" + +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAAAAAA +AAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7VujnC96I +RVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7+3dCeRRjfAKH +iImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatLrU8GaQdOBAQAB7+y +XliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJvs7Y5ewH3d7Fxe3jB4rj +8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjwE0cdGxQ/gswosoKUkmuU2FnJ +csSKGTBjypxJsyaICAA7 + +--unique-boundary-2-- + +The epilogue for the inner multipart message. + +--unique-boundary-1 +Content-type: text/richtext + +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? + +--unique-boundary-1 +Content-Type: message/rfc822; name="/evil/filename"; + +From: (mailbox in US-ASCII) +To: (address in US-ASCII) +Subject: Part 5 of the outer message is itself an RFC822 message! +Content-Type: Text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Part 5 of the outer message is itself an RFC822 message! + +--unique-boundary-1-- + +The epilogue for the outer message. + Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,145 @@ + +
+ +MIME-Version: 1.0 + +From: Lord John Whorfin <whorfin@yoyodyne.com> + +To: <john-yaya@yoyodyne.com> + +Subject: A complex nested multipart example + +Content-Type: multipart/mixed; + boundary=unique-boundary-1 +
+ + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. + +
+
+ +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +
+ +
+ +Content-type: text/plain; charset=US-ASCII +
+ +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +
+ +
+ +Subject: Part 3 of the outer message is multipart! + +Content-Type: multipart/parallel; + boundary=unique-boundary-2 +
+ + +A one-line preamble for the inner multipart message. + +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-vise.gif" + +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" +
+ +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA +oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT +8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0 +qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR +2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv +QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ +0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs= +
+ +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-eye.gif" + +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" +
+ +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7 +VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7 ++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL +rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ +vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw +E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7 +
+ + +The epilogue for the inner multipart message. + +
+
+ +
+ +Content-type: text/richtext +
+ +This is <bold>part 4 of the outer message</bold> +<smaller>as defined in RFC1341</smaller><nl> +<nl> +Isn't it <bigger><bigger>cool?</bigger></bigger> + +
+ +
+ +Content-Type: message/rfc822; name="/evil/filename"; +
+ +
+ +From: (mailbox in US-ASCII) + +To: (address in US-ASCII) + +Subject: Part 5 of the outer message is itself an RFC822 message! + +Content-Type: Text/plain; charset=ISO-8859-1 + +Content-Transfer-Encoding: Quoted-printable +
+ +Part 5 of the outer message is itself an RFC822 message! + +
+
+ + +The epilogue for the outer message. + + +
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.msg URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.msg?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.msg (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.msg Tue Apr 19 10:12:19 2011 @@ -0,0 +1,89 @@ +MIME-Version: 1.0 +From: Lord John Whorfin +To: +Subject: A complex nested multipart example +Content-Type: multipart/mixed; + boundary=unique-boundary-1 + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. +--unique-boundary-1 + +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +--unique-boundary-1 +Content-type: text/plain; charset=US-ASCII + +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +--unique-boundary-1 +Subject: Part 3 of the outer message is multipart! +Content-Type: multipart/parallel; + boundary=unique-boundary-2 + +A one-line preamble for the inner multipart message. +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-vise.gif" +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" + +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA +oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT +8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0 +qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR +2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv +QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ +0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs= +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-eye.gif" +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" + +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7 +VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7 ++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL +rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ +vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw +E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7 +--unique-boundary-2-- + +The epilogue for the inner multipart message. + +--unique-boundary-1 +Content-type: text/richtext + +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? + +--unique-boundary-1 +Content-Type: message/rfc822; name="/evil/filename"; + +From: (mailbox in US-ASCII) +To: (address in US-ASCII) +Subject: Part 5 of the outer message is itself an RFC822 message! +Content-Type: Text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Part 5 of the outer message is itself an RFC822 message! + +--unique-boundary-1-- + +The epilogue for the outer message. + Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.out URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.out?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.out (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.out Tue Apr 19 10:12:19 2011 @@ -0,0 +1,91 @@ +MIME-Version: 1.0 +From: Lord John Whorfin +To: +Subject: A complex nested multipart example +Content-Type: multipart/mixed; + boundary=unique-boundary-1 + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. +--unique-boundary-1 + +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +--unique-boundary-1 +Content-type: text/plain; charset=US-ASCII + +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +--unique-boundary-1 +Subject: Part 3 of the outer message is multipart! +Content-Type: multipart/parallel; + boundary=unique-boundary-2 + +A one-line preamble for the inner multipart message. +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-vise.gif" +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" + +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAAAAAA +AAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbAoFCY47EI +qMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT8Hl1B3kDAYYl +e202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0qTurjHgLKAu0B5Wq +opm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR2bhwJGlXJQYG6mMKoeNo +WSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIvQceGWSMevpOYhl6CkydBHhBZ +QmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ0mhMnfl0pDBFa6bUElSPWb0qtYuH +rxlwcR17YsWMs2jTql3LFkQEADs= + +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-eye.gif" +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" + +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAAAAAA +AAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7VujnC96I +RVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7+3dCeRRjfAKH +iImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatLrU8GaQdOBAQAB7+y +XliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJvs7Y5ewH3d7Fxe3jB4rj +8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjwE0cdGxQ/gswosoKUkmuU2FnJ +csSKGTBjypxJsyaICAA7 + +--unique-boundary-2-- + +The epilogue for the inner multipart message. + +--unique-boundary-1 +Content-type: text/richtext + +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? + +--unique-boundary-1 +Content-Type: message/rfc822; name="/evil/filename"; + +From: (mailbox in US-ASCII) +To: (address in US-ASCII) +Subject: Part 5 of the outer message is itself an RFC822 message! +Content-Type: Text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Part 5 of the outer message is itself an RFC822 message! + +--unique-boundary-1-- + +The epilogue for the outer message. + Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,145 @@ + +
+ +MIME-Version: 1.0 + +From: Lord John Whorfin <whorfin@yoyodyne.com> + +To: <john-yaya@yoyodyne.com> + +Subject: A complex nested multipart example + +Content-Type: multipart/mixed; + boundary=unique-boundary-1 +
+ + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. + +
+
+ +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +
+ +
+ +Content-type: text/plain; charset=US-ASCII +
+ +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +
+ +
+ +Subject: Part 3 of the outer message is multipart! + +Content-Type: multipart/parallel; + boundary=unique-boundary-2 +
+ + +A one-line preamble for the inner multipart message. + +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-vise.gif" + +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" +
+ +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA +oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT +8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0 +qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR +2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv +QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ +0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs= +
+ +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-eye.gif" + +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" +
+ +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7 +VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7 ++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL +rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ +vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw +E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7 +
+ + +The epilogue for the inner multipart message. + +
+
+ +
+ +Content-type: text/richtext +
+ +This is <bold>part 4 of the outer message</bold> +<smaller>as defined in RFC1341</smaller><nl> +<nl> +Isn't it <bigger><bigger>cool?</bigger></bigger> + +
+ +
+ +Content-Type: message/rfc822; name="/evil/filename"; +
+ +
+ +From: (mailbox in US-ASCII) + +To: (address in US-ASCII) + +Subject: Part 5 of the outer message is itself an RFC822 message! + +Content-Type: Text/plain; charset=ISO-8859-1 + +Content-Transfer-Encoding: Quoted-printable +
+ +Part 5 of the outer message is itself an RFC822 message! + +
+
+ + +The epilogue for the outer message. + + +
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,112 @@ + +
+ +MIME-Version: 1.0 + +From: Lord John Whorfin <whorfin@yoyodyne.com> + +To: <john-yaya@yoyodyne.com> + +Subject: A complex nested multipart example + +Content-Type: multipart/mixed; + boundary=unique-boundary-1 +
+ + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. + +
+
+ +
+ +
+ +Content-type: text/plain; charset=US-ASCII +
+ +
+ +
+ +Subject: Part 3 of the outer message is multipart! + +Content-Type: multipart/parallel; + boundary=unique-boundary-2 +
+ + +A one-line preamble for the inner multipart message. + +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-vise.gif" + +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" +
+ +
+ +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-eye.gif" + +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" +
+ +
+ + +The epilogue for the inner multipart message. + +
+
+ +
+ +Content-type: text/richtext +
+ +
+ +
+ +Content-Type: message/rfc822; name="/evil/filename"; +
+ +
+ +From: (mailbox in US-ASCII) + +To: (address in US-ASCII) + +Subject: Part 5 of the outer message is itself an RFC822 message! + +Content-Type: Text/plain; charset=ISO-8859-1 + +Content-Transfer-Encoding: Quoted-printable +
+ +
+
+ + +The epilogue for the outer message. + + +
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_1.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_1.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_1.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_1.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,5 @@ +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_1.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_2.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_2.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_2.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_2.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,4 @@ +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_2.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_3_1.bin URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_3_1.bin?rev=1094991&view=auto ============================================================================== Binary file - no diff available. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_3_1.bin ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_3_2.bin URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_3_2.bin?rev=1094991&view=auto ============================================================================== Binary file - no diff available. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_3_2.bin ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_4.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_4.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_4.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_4.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,4 @@ +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_4.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_5_1.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_5_1.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_5_1.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_5_1.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1 @@ +Part 5 of the outer message is itself an RFC822 message! Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested2_decoded_1_5_1.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.msg URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.msg?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.msg (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.msg Tue Apr 19 10:12:19 2011 @@ -0,0 +1,89 @@ +MIME-Version: 1.0 +From: Lord John Whorfin +To: +Subject: A complex nested multipart example +Content-Type: multipart/mixed; + boundary=unique-boundary-1 + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. +--unique-boundary-1 + +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +--unique-boundary-1 +Content-type: text/plain; charset=US-ASCII + +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +--unique-boundary-1 +Subject: Part 3 of the outer message is multipart! +Content-Type: multipart/parallel; + boundary=unique-boundary-2 + +A one-line preamble for the inner multipart message. +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-vise.gif" +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" + +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA +oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT +8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0 +qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR +2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv +QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ +0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs= +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-eye.gif" +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" + +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7 +VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7 ++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL +rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ +vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw +E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7 +--unique-boundary-2-- + +The epilogue for the inner multipart message. + +--unique-boundary-1 +Content-type: text/richtext + +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? + +--unique-boundary-1 +Content-Type: message/rfc822; name="nice.name"; + +From: (mailbox in US-ASCII) +To: (address in US-ASCII) +Subject: Part 5 of the outer message is itself an RFC822 message! +Content-Type: Text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Part 5 of the outer message is itself an RFC822 message! + +--unique-boundary-1-- + +The epilogue for the outer message. + Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.out URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.out?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.out (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.out Tue Apr 19 10:12:19 2011 @@ -0,0 +1,91 @@ +MIME-Version: 1.0 +From: Lord John Whorfin +To: +Subject: A complex nested multipart example +Content-Type: multipart/mixed; + boundary=unique-boundary-1 + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. +--unique-boundary-1 + +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +--unique-boundary-1 +Content-type: text/plain; charset=US-ASCII + +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +--unique-boundary-1 +Subject: Part 3 of the outer message is multipart! +Content-Type: multipart/parallel; + boundary=unique-boundary-2 + +A one-line preamble for the inner multipart message. +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-vise.gif" +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" + +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAAAAAA +AAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbAoFCY47EI +qMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT8Hl1B3kDAYYl +e202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0qTurjHgLKAu0B5Wq +opm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR2bhwJGlXJQYG6mMKoeNo +WSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIvQceGWSMevpOYhl6CkydBHhBZ +QmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ0mhMnfl0pDBFa6bUElSPWb0qtYuH +rxlwcR17YsWMs2jTql3LFkQEADs= + +--unique-boundary-2 +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-eye.gif" +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" + +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAAAAAA +AAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7VujnC96I +RVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7+3dCeRRjfAKH +iImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatLrU8GaQdOBAQAB7+y +XliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJvs7Y5ewH3d7Fxe3jB4rj +8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjwE0cdGxQ/gswosoKUkmuU2FnJ +csSKGTBjypxJsyaICAA7 + +--unique-boundary-2-- + +The epilogue for the inner multipart message. + +--unique-boundary-1 +Content-type: text/richtext + +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? + +--unique-boundary-1 +Content-Type: message/rfc822; name="nice.name"; + +From: (mailbox in US-ASCII) +To: (address in US-ASCII) +Subject: Part 5 of the outer message is itself an RFC822 message! +Content-Type: Text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Part 5 of the outer message is itself an RFC822 message! + +--unique-boundary-1-- + +The epilogue for the outer message. + Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,145 @@ + +
+ +MIME-Version: 1.0 + +From: Lord John Whorfin <whorfin@yoyodyne.com> + +To: <john-yaya@yoyodyne.com> + +Subject: A complex nested multipart example + +Content-Type: multipart/mixed; + boundary=unique-boundary-1 +
+ + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. + +
+
+ +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] + +
+ +
+ +Content-type: text/plain; charset=US-ASCII +
+ +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. + +
+ +
+ +Subject: Part 3 of the outer message is multipart! + +Content-Type: multipart/parallel; + boundary=unique-boundary-2 +
+ + +A one-line preamble for the inner multipart message. + +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-vise.gif" + +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" +
+ +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA +oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT +8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0 +qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR +2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv +QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ +0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs= +
+ +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-eye.gif" + +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" +
+ +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7 +VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7 ++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL +rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ +vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw +E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7 +
+ + +The epilogue for the inner multipart message. + +
+
+ +
+ +Content-type: text/richtext +
+ +This is <bold>part 4 of the outer message</bold> +<smaller>as defined in RFC1341</smaller><nl> +<nl> +Isn't it <bigger><bigger>cool?</bigger></bigger> + +
+ +
+ +Content-Type: message/rfc822; name="nice.name"; +
+ +
+ +From: (mailbox in US-ASCII) + +To: (address in US-ASCII) + +Subject: Part 5 of the outer message is itself an RFC822 message! + +Content-Type: Text/plain; charset=ISO-8859-1 + +Content-Transfer-Encoding: Quoted-printable +
+ +Part 5 of the outer message is itself an RFC822 message! + +
+
+ + +The epilogue for the outer message. + + +
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,112 @@ + +
+ +MIME-Version: 1.0 + +From: Lord John Whorfin <whorfin@yoyodyne.com> + +To: <john-yaya@yoyodyne.com> + +Subject: A complex nested multipart example + +Content-Type: multipart/mixed; + boundary=unique-boundary-1 +
+ + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. + +
+
+ +
+ +
+ +Content-type: text/plain; charset=US-ASCII +
+ +
+ +
+ +Subject: Part 3 of the outer message is multipart! + +Content-Type: multipart/parallel; + boundary=unique-boundary-2 +
+ + +A one-line preamble for the inner multipart message. + +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-vise.gif" + +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" +
+ +
+ +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-eye.gif" + +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" +
+ +
+ + +The epilogue for the inner multipart message. + +
+
+ +
+ +Content-type: text/richtext +
+ +
+ +
+ +Content-Type: message/rfc822; name="nice.name"; +
+ +
+ +From: (mailbox in US-ASCII) + +To: (address in US-ASCII) + +Subject: Part 5 of the outer message is itself an RFC822 message! + +Content-Type: Text/plain; charset=ISO-8859-1 + +Content-Transfer-Encoding: Quoted-printable +
+ +
+
+ + +The epilogue for the outer message. + + +
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_1.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_1.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_1.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_1.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,5 @@ +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_1.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_2.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_2.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_2.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_2.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,4 @@ +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_2.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_3_1.bin URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_3_1.bin?rev=1094991&view=auto ============================================================================== Binary file - no diff available. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_3_1.bin ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_3_2.bin URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_3_2.bin?rev=1094991&view=auto ============================================================================== Binary file - no diff available. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_3_2.bin ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_4.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_4.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_4.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_4.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,4 @@ +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_4.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_5_1.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_5_1.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_5_1.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_5_1.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1 @@ +Part 5 of the outer message is itself an RFC822 message! Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested3_decoded_1_5_1.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,112 @@ + +
+ +MIME-Version: 1.0 + +From: Lord John Whorfin <whorfin@yoyodyne.com> + +To: <john-yaya@yoyodyne.com> + +Subject: A complex nested multipart example + +Content-Type: multipart/mixed; + boundary=unique-boundary-1 +
+ + +The preamble of the outer multipart message. +Mail readers that understand multipart format +should ignore this preamble. +If you are reading this text, you might want to +consider changing to a mail reader that understands +how to properly display multipart messages. + +
+
+ +
+ +
+ +Content-type: text/plain; charset=US-ASCII +
+ +
+ +
+ +Subject: Part 3 of the outer message is multipart! + +Content-Type: multipart/parallel; + boundary=unique-boundary-2 +
+ + +A one-line preamble for the inner multipart message. + +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-vise.gif" + +Subject: Part 1 of the inner message is a GIF, "3d-vise.gif" +
+ +
+ +
+ +Content-Type: image/gif + +Content-Transfer-Encoding: base64 + +Content-Disposition: inline; filename="3d-eye.gif" + +Subject: Part 2 of the inner message is another GIF, "3d-eye.gif" +
+ +
+ + +The epilogue for the inner multipart message. + +
+
+ +
+ +Content-type: text/richtext +
+ +
+ +
+ +Content-Type: message/rfc822; name="/evil/filename"; +
+ +
+ +From: (mailbox in US-ASCII) + +To: (address in US-ASCII) + +Subject: Part 5 of the outer message is itself an RFC822 message! + +Content-Type: Text/plain; charset=ISO-8859-1 + +Content-Transfer-Encoding: Quoted-printable +
+ +
+
+ + +The epilogue for the outer message. + + +
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_1.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_1.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_1.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_1.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,5 @@ +Part 1 of the outer message. +[Note that the preceding blank line means +no header fields were given and this is text, +with charset US ASCII. It could have been +done with explicit typing as in the next part.] Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_1.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_2.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_2.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_2.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_2.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,4 @@ +Part 2 of the outer message. +This could have been part of the previous part, +but illustrates explicit versus implicit +typing of body parts. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_2.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_3_1.bin URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_3_1.bin?rev=1094991&view=auto ============================================================================== Binary file - no diff available. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_3_1.bin ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_3_2.bin URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_3_2.bin?rev=1094991&view=auto ============================================================================== Binary file - no diff available. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_3_2.bin ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_4.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_4.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_4.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_4.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,4 @@ +This is part 4 of the outer message +as defined in RFC1341 + +Isn't it cool? Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_4.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_5_1.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_5_1.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_5_1.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_5_1.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1 @@ +Part 5 of the outer message is itself an RFC822 message! Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-nested_decoded_1_5_1.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.msg URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.msg?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.msg (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.msg Tue Apr 19 10:12:19 2011 @@ -0,0 +1,23 @@ +From: Nathaniel Borenstein +To: Ned Freed +Subject: Sample message +MIME-Version: 1.0 +Content-type: multipart/mixed; boundary="simple + boundary" + +This is the preamble. It is to be ignored, though it +is a handy place for mail composers to include an +explanatory note to non-MIME conformant readers. +--simple boundary + +This is implicitly typed plain ASCII text. +It does NOT end with a linebreak. +--simple boundary +Content-type: text/plain; charset=us-ascii + +This is explicitly typed plain ASCII text. +It DOES end with a linebreak. + +--simple boundary-- +This is the epilogue. It is also to be ignored. + Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.out URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.out?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.out (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.out Tue Apr 19 10:12:19 2011 @@ -0,0 +1,23 @@ +From: Nathaniel Borenstein +To: Ned Freed +Subject: Sample message +MIME-Version: 1.0 +Content-type: multipart/mixed; boundary="simple + boundary" + +This is the preamble. It is to be ignored, though it +is a handy place for mail composers to include an +explanatory note to non-MIME conformant readers. +--simple boundary + +This is implicitly typed plain ASCII text. +It does NOT end with a linebreak. +--simple boundary +Content-type: text/plain; charset=us-ascii + +This is explicitly typed plain ASCII text. +It DOES end with a linebreak. + +--simple boundary-- +This is the epilogue. It is also to be ignored. + Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,42 @@ + +
+ +From: Nathaniel Borenstein <nsb@bellcore.com> + +To: Ned Freed <ned@innosoft.com> + +Subject: Sample message + +MIME-Version: 1.0 + +Content-type: multipart/mixed; boundary="simple + boundary" +
+ + +This is the preamble. It is to be ignored, though it +is a handy place for mail composers to include an +explanatory note to non-MIME conformant readers. + +
+
+ +This is implicitly typed plain ASCII text. +It does NOT end with a linebreak. +
+ +
+ +Content-type: text/plain; charset=us-ascii +
+ +This is explicitly typed plain ASCII text. +It DOES end with a linebreak. + +
+ +This is the epilogue. It is also to be ignored. + + +
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded.xml URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded.xml?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded.xml (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded.xml Tue Apr 19 10:12:19 2011 @@ -0,0 +1,37 @@ + +
+ +From: Nathaniel Borenstein <nsb@bellcore.com> + +To: Ned Freed <ned@innosoft.com> + +Subject: Sample message + +MIME-Version: 1.0 + +Content-type: multipart/mixed; boundary="simple + boundary" +
+ + +This is the preamble. It is to be ignored, though it +is a handy place for mail composers to include an +explanatory note to non-MIME conformant readers. + +
+
+ +
+ +
+ +Content-type: text/plain; charset=us-ascii +
+ +
+ +This is the epilogue. It is also to be ignored. + + +
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_1.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_1.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_1.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_1.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,2 @@ +This is implicitly typed plain ASCII text. +It does NOT end with a linebreak. \ No newline at end of file Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_1.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_2.txt URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_2.txt?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_2.txt (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_2.txt Tue Apr 19 10:12:19 2011 @@ -0,0 +1,2 @@ +This is explicitly typed plain ASCII text. +It DOES end with a linebreak. Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-simple_decoded_1_2.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-weirdspace.msg URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-weirdspace.msg?rev=1094991&view=auto ============================================================================== --- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-weirdspace.msg (added) +++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-weirdspace.msg Tue Apr 19 10:12:19 2011 @@ -0,0 +1,56 @@ +Return-Path: eryq@rhine.gsfc.nasa.gov +Sender: john-bigboote +Date: Thu, 11 Apr 1996 01:10:30 -0500 +From: Eryq +Organization: Yoyodyne Propulsion Systems +X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486) +MIME-Version: 1.0 +To: john-bigboote@eryq.pr.mcs.net +Subject: Two images for you... +Content-Type: multipart/mixed; boundary="------------299A70B339B65A93542D2AE" + +--------------299A70B339B65A93542D2AE +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit + +When unpacked, this message should produce two GIF files: + + * The 1st should be called "3d-compress.gif" + * The 2nd should be called "3d-eye.gif" + +There is an empty preamble, and linear space after the bounds. + +-- + ____ __ + / __/__________/_/ Eryq (eryq@rhine.gsfc.nasa.gov) + / __/ _/ / / , / Hughes STX Corporation, NASA/Goddard +/___/_/ \ /\ /___ + /_/ /_____/ http://selsvr.stx.com/~eryq/ + +--------------299A70B339B65A93542D2AE +Content-Type: image/gif +Content-Transfer-Encoding: base64 +Content-Disposition: inline; filename="3d-compress.gif" + +R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA +oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT +8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0 +qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR +2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv +QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ +0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs= +--------------299A70B339B65A93542D2AE +Content-Type: image/gif; name="3d-eye.gif" +Content-Transfer-Encoding: base64 + +R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA +AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7 +VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7 ++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL +rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ +vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw +E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7 +--------------299A70B339B65A93542D2AE-- + +