You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by ba...@apache.org on 2011/04/19 12:12:26 UTC
svn commit: r1094991 [10/16] - in /james/mime4j/trunk: ./
core/src/test/java/org/apache/james/mime4j/parser/
core/src/test/resources/mimetools-testmsgs/
dom/src/test/java/org/apache/james/mime4j/dom/
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_1.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_1.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_1.txt Tue Apr 19 10:12:19 2011
@@ -0,0 +1,13 @@
+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"
+
+Different ways of specifying the filenames have been used.
+
+--
+ ____ __
+ / __/__________/_/ Eryq (eryq@rhine.gsfc.nasa.gov)
+ / __/ _/ / / , / Hughes STX Corporation, NASA/Goddard
+/___/_/ \ /\ /___
+ /_/ /_____/ http://selsvr.stx.com/~eryq/
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_2.bin
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_2.bin?rev=1094991&view=auto
==============================================================================
Binary file - no diff available.
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_2.bin
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_3.bin
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_3.bin?rev=1094991&view=auto
==============================================================================
Binary file - no diff available.
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs-base64_decoded_1_1_3.bin
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.msg
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.msg?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.msg (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.msg Tue Apr 19 10:12:19 2011
@@ -0,0 +1,57 @@
+Return-Path: eryq@rhine.gsfc.nasa.gov
+Sender: john-bigboote
+Date: Thu, 11 Apr 1996 01:10:30 -0500
+From: Eryq <er...@rhine.gsfc.nasa.gov>
+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"
+
+This is a multi-part message in MIME format.
+
+--------------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"
+
+Different ways of specifying the filenames have been used.
+
+--
+ ____ __
+ / __/__________/_/ 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--
+That was a multi-part message in MIME format.
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.out
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.out?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.out (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.out Tue Apr 19 10:12:19 2011
@@ -0,0 +1,59 @@
+Return-Path: eryq@rhine.gsfc.nasa.gov
+Sender: john-bigboote
+Date: Thu, 11 Apr 1996 01:10:30 -0500
+From: Eryq <er...@rhine.gsfc.nasa.gov>
+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"
+
+This is a multi-part message in MIME format.
+
+--------------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"
+
+Different ways of specifying the filenames have been used.
+
+--
+ ____ __
+ / __/__________/_/ 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/6zQAAAAAAAAAA
+AAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbAoFCY47EI
+qMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT8Hl1B3kDAYYl
+e202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0qTurjHgLKAu0B5Wq
+opm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR2bhwJGlXJQYG6mMKoeNo
+WSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIvQceGWSMevpOYhl6CkydBHhBZ
+QmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ0mhMnfl0pDBFa6bUElSPWb0qtYuH
+rxlwcR17YsWMs2jTql3LFkQEADs=
+
+--------------299A70B339B65A93542D2AE
+Content-Type: image/gif; name="3d-eye.gif"
+Content-Transfer-Encoding: base64
+
+R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAAAAAA
+AAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7VujnC96I
+RVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7+3dCeRRjfAKH
+iImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatLrU8GaQdOBAQAB7+y
+XliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJvs7Y5ewH3d7Fxe3jB4rj
+8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjwE0cdGxQ/gswosoKUkmuU2FnJ
+csSKGTBjypxJsyaICAA7
+
+--------------299A70B339B65A93542D2AE--
+That was a multi-part message in MIME format.
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,90 @@
+<message>
+<header>
+<field>
+Return-Path: eryq@rhine.gsfc.nasa.gov</field>
+<field>
+Sender: john-bigboote</field>
+<field>
+Date: Thu, 11 Apr 1996 01:10:30 -0500</field>
+<field>
+From: Eryq <eryq@rhine.gsfc.nasa.gov></field>
+<field>
+Organization: Yoyodyne Propulsion Systems</field>
+<field>
+X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486)</field>
+<field>
+MIME-Version: 1.0</field>
+<field>
+To: john-bigboote@eryq.pr.mcs.net</field>
+<field>
+Subject: Two images for you...</field>
+<field>
+Content-Type: multipart/mixed; boundary="------------299A70B339B65A93542D2AE"</field>
+</header>
+<multipart>
+<preamble>
+This is a multi-part message in MIME format.
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+<field>
+Content-Transfer-Encoding: 7bit</field>
+</header>
+<body>
+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"
+
+Different ways of specifying the filenames have been used.
+
+--
+ ____ __
+ / __/__________/_/ Eryq (eryq@rhine.gsfc.nasa.gov)
+ / __/ _/ / / , / Hughes STX Corporation, NASA/Goddard
+/___/_/ \ /\ /___
+ /_/ /_____/ http://selsvr.stx.com/~eryq/
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: image/gif</field>
+<field>
+Content-Transfer-Encoding: base64</field>
+<field>
+Content-Disposition: inline; filename="3d-compress.gif"</field>
+</header>
+<body>
+R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA
+AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA
+oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT
+8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0
+qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR
+2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv
+QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ
+0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs=</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: image/gif; name="3d-eye.gif"</field>
+<field>
+Content-Transfer-Encoding: base64</field>
+</header>
+<body>
+R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA
+AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7
+VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7
++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL
+rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ
+vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw
+E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7</body>
+</body-part>
+<epilogue>
+That was a multi-part message in MIME format.
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,61 @@
+<message>
+<header>
+<field>
+Return-Path: eryq@rhine.gsfc.nasa.gov</field>
+<field>
+Sender: john-bigboote</field>
+<field>
+Date: Thu, 11 Apr 1996 01:10:30 -0500</field>
+<field>
+From: Eryq <eryq@rhine.gsfc.nasa.gov></field>
+<field>
+Organization: Yoyodyne Propulsion Systems</field>
+<field>
+X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486)</field>
+<field>
+MIME-Version: 1.0</field>
+<field>
+To: john-bigboote@eryq.pr.mcs.net</field>
+<field>
+Subject: Two images for you...</field>
+<field>
+Content-Type: multipart/mixed; boundary="------------299A70B339B65A93542D2AE"</field>
+</header>
+<multipart>
+<preamble>
+This is a multi-part message in MIME format.
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+<field>
+Content-Transfer-Encoding: 7bit</field>
+</header>
+<text-body name="multi-2gifs_decoded_1_1.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: image/gif</field>
+<field>
+Content-Transfer-Encoding: base64</field>
+<field>
+Content-Disposition: inline; filename="3d-compress.gif"</field>
+</header>
+<binary-body name="multi-2gifs_decoded_1_2.bin"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: image/gif; name="3d-eye.gif"</field>
+<field>
+Content-Transfer-Encoding: base64</field>
+</header>
+<binary-body name="multi-2gifs_decoded_1_3.bin"/>
+</body-part>
+<epilogue>
+That was a multi-part message in MIME format.
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_1.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_1.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_1.txt Tue Apr 19 10:12:19 2011
@@ -0,0 +1,13 @@
+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"
+
+Different ways of specifying the filenames have been used.
+
+--
+ ____ __
+ / __/__________/_/ Eryq (eryq@rhine.gsfc.nasa.gov)
+ / __/ _/ / / , / Hughes STX Corporation, NASA/Goddard
+/___/_/ \ /\ /___
+ /_/ /_____/ http://selsvr.stx.com/~eryq/
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_2.bin
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_2.bin?rev=1094991&view=auto
==============================================================================
Binary file - no diff available.
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_2.bin
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_3.bin
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_3.bin?rev=1094991&view=auto
==============================================================================
Binary file - no diff available.
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-2gifs_decoded_1_3.bin
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.msg
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.msg?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.msg (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.msg Tue Apr 19 10:12:19 2011
@@ -0,0 +1,181 @@
+From: Michelle Holm <ho...@sitka.colorado.edu>
+Date: Mon, 21 Aug 95 13:30:57 -600
+Sender: holm@sitka.colorado.edu
+To: imswww@rhine.gsfc.nasa.gov
+Mime-Version: 1.0
+X-Mailer: Mozilla/1.0N (X11; IRIX 5.2 IP20)
+Content-Type: multipart/mixed;
+ boundary="-------------------------------147881770724098"
+Subject: http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch
+X-Url: http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch
+Content-Type: text/plain; charset=iso-8859-1
+Content-Transfer-Encoding: 8bit
+
+> [[ERROR]] Error 600: Internal logic.
+>
+> Dying gasp:
+> Bad mode: SEARCH/ (600).
+>
+> Recommended action to correct the situation:
+> YIKES! IMS/www failed one of its internal consistency checks! Please SAVE
+> THIS FILE, and contact IMS/www's developers immediately so they can fix the
+> problem! If the parentheses at the end of this sentence are not blank, you
+> can contact them here (imswww@rhine.gsfc.nasa.gov).
+>
+> ------------------------------------------------------------------------
+>
+>
+> Location of error
+>
+> Dying gasp:
+> Package "main", file "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl", line
+> 753.
+>
+> Traceback:
+>
+> 1. Iw::Die: from "main", "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl
+> line 753
+> 2. main::Main: from "main",
+> "/usr/app/people/imswww/public_cgi/v.b/imssearch line 85
+>
+> ------------------------------------------------------------------------
+>
+>
+> Basic state information
+>
+> Include path
+>
+> /usr/app/people/imswww/v.b/lib/perl
+> /usr/app/people/imswww/v.b/lib/perl/Eg
+> /usr/local/lib/perl5/sun4-sunos
+> /usr/local/lib/perl5
+> .
+>
+> Environment variables
+>
+> CONTENT_LENGTH = "281"
+> CONTENT_TYPE = "application/x-www-form-urlencoded"
+> DOCUMENT_ROOT = "/usr/local/etc/httpd/htdocs"
+> GAEADATA_DIR = "/home/rhine/ims/lib/gaea_data"
+> GAEATMP_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+> GATEWAY_INTERFACE = "CGI/1.1"
+> HTTP_ACCEPT = "*/*, image/gif, image/x-xbitmap, image/jpeg"
+> HTTP_REFERER = "http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch"
+> HTTP_USER_AGENT = "Mozilla/1.0N (X11; IRIX 5.2 IP20)"
+> IMS_STAFF = "1"
+> IW_CGI_DIR = "/usr/app/people/imswww/v.b/cgi-bin"
+> IW_DOCS_DIR = "/usr/app/people/imswww/v.b/docs"
+> IW_LIB_DIR = "/usr/app/people/imswww/v.b/lib"
+> IW_SESSION_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+> IW_SESSION_ID = "809033436-10153"
+> IW_TMP_DIR = "/usr/app/people/imswww/v.b/tmp"
+> PATH = "/bin:/usr/bin:/usr/etc:/usr/ucb:/usr/local/bin:/usr/ucb"
+> QUERY_STRING = ""
+> REMOTE_ADDR = "128.138.135.33"
+> REMOTE_HOST = "sitka.colorado.edu"
+> REQUEST_METHOD = "POST"
+> SCRIPT_NAME = "/ims-bin/v.b/imssearch"
+> SERVER_NAME = "rhine.gsfc.nasa.gov"
+> SERVER_PORT = "8080"
+> SERVER_PROTOCOL = "HTTP/1.0"
+> SERVER_SOFTWARE = "NCSA/1.4.2"
+> SYSLOG_LEVEL = "7"
+> USRDATA_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+>
+> Tags
+>
+> pmap-geo-opt = "map"
+> pparam-param = "Sea Ice Concentration"
+> pparam-param = "Snow Cover"
+> pparam-param = "Total Sea Ice Concentration"
+> s-east-long = "-40.0"
+> s-north-lat = "75.3"
+> s-south-lat = "66.0"
+> s-start-date = "01-01-1990"
+> s-start-time = ""
+> s-stop-date = "31-12-1994"
+> s-stop-time = ""
+> s-west-long = "-176.0"
+> sid = "809033436-10153"
+>
+> Permissions
+>
+> Real user id = 65534
+> Real group ids = 65534 65534
+> Effective user id = 65534
+> Effective group ids = 65534 65534
+>
+> ------------------------------------------------------------------------
+>
+>
+> Log file /usr/app/people/imswww/v.b/tmp/imswww-usr/10184.clog
+>
+> II 1995/08/21 15:33:50 IwLog 94
+> Logging begun
+> WWW 1995/08/21 15:33:50 Iw 263
+> Perl: Use of uninitialized value at /usr/app/people/imswww/v.b/lib/perl/ims ;
+> search.pl line 82.
+> |
+> EEEE 1995/08/21 15:33:51 Iw 95
+> Bad mode: SEARCH/ (600).
+>
+> ------------------------------------------------------------------------
+>
+>
+> Session information
+>
+> [Session Directory]
+>
+> ------------------------------------------------------------------------
+>
+> Generated by EOSDIS IMS/www version 0.3b / imswww@rhine.gsfc.nasa.gov
+> NASA/GSFC Task Representative: Yonsook Enloe, yonsook@killians.gsfc.nasa.gov
+>
+> A joint project of NASA/GSFC, A/WWW Enterprises, and Hughes STX Corporation.
+> Full contact information is available.
+
+---------------------------------147881770724098
+Content-Type: text/plain
+Content-Transfer-Encoding: 8bit
+
+[[ERROR]] Error 600: Internal logic.
+
+Dying gasp:
+Bad mode: SEARCH/ (600).
+
+Recommended action to correct the situation:
+YIKES! IMS/www failed one of its internal consistency checks! Please SAVE THIS
+FILE, and contact IMS/www's developers immediately so they can fix the problem!
+If the parentheses at the end of this sentence are not blank, you can contact
+them here (imswww@rhine.gsfc.nasa.gov).
+
+ ------------------------------------------------------------------------
+
+
+Location of error
+
+Dying gasp:
+Package "main", file "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl", line
+753.
+
+Traceback:
+
+ 1. Iw::Die: from "main", "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl
+ line 753
+ 2. main::Main: from "main", "/usr/app/people/imswww/public_cgi/v.b/imssearch
+ line 85
+
+ ------------------------------------------------------------------------
+
+
+Basic state information
+
+Include path
+
+/usr/app/people/imswww/v.b/lib/perl
+/usr/app/people/imswww/v.b/lib/perl/Eg
+/usr/local/lib/perl5/sun4-sunos
+/usr/local/lib/perl5
+
+
+
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.out
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.out?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.out (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.out Tue Apr 19 10:12:19 2011
@@ -0,0 +1,183 @@
+From: Michelle Holm <ho...@sitka.colorado.edu>
+Date: Mon, 21 Aug 95 13:30:57 -600
+Sender: holm@sitka.colorado.edu
+To: imswww@rhine.gsfc.nasa.gov
+Mime-Version: 1.0
+X-Mailer: Mozilla/1.0N (X11; IRIX 5.2 IP20)
+Content-Type: multipart/mixed;
+ boundary="-------------------------------147881770724098"
+Subject: http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch
+X-Url: http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch
+Content-Type: text/plain; charset=iso-8859-1
+Content-Transfer-Encoding: 8bit
+
+> [[ERROR]] Error 600: Internal logic.
+>
+> Dying gasp:
+> Bad mode: SEARCH/ (600).
+>
+> Recommended action to correct the situation:
+> YIKES! IMS/www failed one of its internal consistency checks! Please SAVE
+> THIS FILE, and contact IMS/www's developers immediately so they can fix the
+> problem! If the parentheses at the end of this sentence are not blank, you
+> can contact them here (imswww@rhine.gsfc.nasa.gov).
+>
+> ------------------------------------------------------------------------
+>
+>
+> Location of error
+>
+> Dying gasp:
+> Package "main", file "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl", line
+> 753.
+>
+> Traceback:
+>
+> 1. Iw::Die: from "main", "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl
+> line 753
+> 2. main::Main: from "main",
+> "/usr/app/people/imswww/public_cgi/v.b/imssearch line 85
+>
+> ------------------------------------------------------------------------
+>
+>
+> Basic state information
+>
+> Include path
+>
+> /usr/app/people/imswww/v.b/lib/perl
+> /usr/app/people/imswww/v.b/lib/perl/Eg
+> /usr/local/lib/perl5/sun4-sunos
+> /usr/local/lib/perl5
+> .
+>
+> Environment variables
+>
+> CONTENT_LENGTH = "281"
+> CONTENT_TYPE = "application/x-www-form-urlencoded"
+> DOCUMENT_ROOT = "/usr/local/etc/httpd/htdocs"
+> GAEADATA_DIR = "/home/rhine/ims/lib/gaea_data"
+> GAEATMP_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+> GATEWAY_INTERFACE = "CGI/1.1"
+> HTTP_ACCEPT = "*/*, image/gif, image/x-xbitmap, image/jpeg"
+> HTTP_REFERER = "http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch"
+> HTTP_USER_AGENT = "Mozilla/1.0N (X11; IRIX 5.2 IP20)"
+> IMS_STAFF = "1"
+> IW_CGI_DIR = "/usr/app/people/imswww/v.b/cgi-bin"
+> IW_DOCS_DIR = "/usr/app/people/imswww/v.b/docs"
+> IW_LIB_DIR = "/usr/app/people/imswww/v.b/lib"
+> IW_SESSION_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+> IW_SESSION_ID = "809033436-10153"
+> IW_TMP_DIR = "/usr/app/people/imswww/v.b/tmp"
+> PATH = "/bin:/usr/bin:/usr/etc:/usr/ucb:/usr/local/bin:/usr/ucb"
+> QUERY_STRING = ""
+> REMOTE_ADDR = "128.138.135.33"
+> REMOTE_HOST = "sitka.colorado.edu"
+> REQUEST_METHOD = "POST"
+> SCRIPT_NAME = "/ims-bin/v.b/imssearch"
+> SERVER_NAME = "rhine.gsfc.nasa.gov"
+> SERVER_PORT = "8080"
+> SERVER_PROTOCOL = "HTTP/1.0"
+> SERVER_SOFTWARE = "NCSA/1.4.2"
+> SYSLOG_LEVEL = "7"
+> USRDATA_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+>
+> Tags
+>
+> pmap-geo-opt = "map"
+> pparam-param = "Sea Ice Concentration"
+> pparam-param = "Snow Cover"
+> pparam-param = "Total Sea Ice Concentration"
+> s-east-long = "-40.0"
+> s-north-lat = "75.3"
+> s-south-lat = "66.0"
+> s-start-date = "01-01-1990"
+> s-start-time = ""
+> s-stop-date = "31-12-1994"
+> s-stop-time = ""
+> s-west-long = "-176.0"
+> sid = "809033436-10153"
+>
+> Permissions
+>
+> Real user id = 65534
+> Real group ids = 65534 65534
+> Effective user id = 65534
+> Effective group ids = 65534 65534
+>
+> ------------------------------------------------------------------------
+>
+>
+> Log file /usr/app/people/imswww/v.b/tmp/imswww-usr/10184.clog
+>
+> II 1995/08/21 15:33:50 IwLog 94
+> Logging begun
+> WWW 1995/08/21 15:33:50 Iw 263
+> Perl: Use of uninitialized value at /usr/app/people/imswww/v.b/lib/perl/ims ;
+> search.pl line 82.
+> |
+> EEEE 1995/08/21 15:33:51 Iw 95
+> Bad mode: SEARCH/ (600).
+>
+> ------------------------------------------------------------------------
+>
+>
+> Session information
+>
+> [Session Directory]
+>
+> ------------------------------------------------------------------------
+>
+> Generated by EOSDIS IMS/www version 0.3b / imswww@rhine.gsfc.nasa.gov
+> NASA/GSFC Task Representative: Yonsook Enloe, yonsook@killians.gsfc.nasa.gov
+>
+> A joint project of NASA/GSFC, A/WWW Enterprises, and Hughes STX Corporation.
+> Full contact information is available.
+
+---------------------------------147881770724098
+Content-Type: text/plain
+Content-Transfer-Encoding: 8bit
+
+[[ERROR]] Error 600: Internal logic.
+
+Dying gasp:
+Bad mode: SEARCH/ (600).
+
+Recommended action to correct the situation:
+YIKES! IMS/www failed one of its internal consistency checks! Please SAVE THIS
+FILE, and contact IMS/www's developers immediately so they can fix the problem!
+If the parentheses at the end of this sentence are not blank, you can contact
+them here (imswww@rhine.gsfc.nasa.gov).
+
+ ------------------------------------------------------------------------
+
+
+Location of error
+
+Dying gasp:
+Package "main", file "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl", line
+753.
+
+Traceback:
+
+ 1. Iw::Die: from "main", "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl
+ line 753
+ 2. main::Main: from "main", "/usr/app/people/imswww/public_cgi/v.b/imssearch
+ line 85
+
+ ------------------------------------------------------------------------
+
+
+Basic state information
+
+Include path
+
+/usr/app/people/imswww/v.b/lib/perl
+/usr/app/people/imswww/v.b/lib/perl/Eg
+/usr/local/lib/perl5/sun4-sunos
+/usr/local/lib/perl5
+
+
+
+
+---------------------------------147881770724098--
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,204 @@
+<message>
+<header>
+<field>
+From: Michelle Holm <holm@sitka.colorado.edu></field>
+<field>
+Date: Mon, 21 Aug 95 13:30:57 -600</field>
+<field>
+Sender: holm@sitka.colorado.edu</field>
+<field>
+To: imswww@rhine.gsfc.nasa.gov</field>
+<field>
+Mime-Version: 1.0</field>
+<field>
+X-Mailer: Mozilla/1.0N (X11; IRIX 5.2 IP20)</field>
+<field>
+Content-Type: multipart/mixed;
+ boundary="-------------------------------147881770724098"</field>
+<field>
+Subject: http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch</field>
+<field>
+X-Url: http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch</field>
+<field>
+Content-Type: text/plain; charset=iso-8859-1</field>
+<field>
+Content-Transfer-Encoding: 8bit</field>
+</header>
+<multipart>
+<preamble>
+> [[ERROR]] Error 600: Internal logic.
+>
+> Dying gasp:
+> Bad mode: SEARCH/ (600).
+>
+> Recommended action to correct the situation:
+> YIKES! IMS/www failed one of its internal consistency checks! Please SAVE
+> THIS FILE, and contact IMS/www's developers immediately so they can fix the
+> problem! If the parentheses at the end of this sentence are not blank, you
+> can contact them here (imswww@rhine.gsfc.nasa.gov).
+>
+> ------------------------------------------------------------------------
+>
+>
+> Location of error
+>
+> Dying gasp:
+> Package "main", file "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl", line
+> 753.
+>
+> Traceback:
+>
+> 1. Iw::Die: from "main", "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl
+> line 753
+> 2. main::Main: from "main",
+> "/usr/app/people/imswww/public_cgi/v.b/imssearch line 85
+>
+> ------------------------------------------------------------------------
+>
+>
+> Basic state information
+>
+> Include path
+>
+> /usr/app/people/imswww/v.b/lib/perl
+> /usr/app/people/imswww/v.b/lib/perl/Eg
+> /usr/local/lib/perl5/sun4-sunos
+> /usr/local/lib/perl5
+> .
+>
+> Environment variables
+>
+> CONTENT_LENGTH = "281"
+> CONTENT_TYPE = "application/x-www-form-urlencoded"
+> DOCUMENT_ROOT = "/usr/local/etc/httpd/htdocs"
+> GAEADATA_DIR = "/home/rhine/ims/lib/gaea_data"
+> GAEATMP_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+> GATEWAY_INTERFACE = "CGI/1.1"
+> HTTP_ACCEPT = "*/*, image/gif, image/x-xbitmap, image/jpeg"
+> HTTP_REFERER = "http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch"
+> HTTP_USER_AGENT = "Mozilla/1.0N (X11; IRIX 5.2 IP20)"
+> IMS_STAFF = "1"
+> IW_CGI_DIR = "/usr/app/people/imswww/v.b/cgi-bin"
+> IW_DOCS_DIR = "/usr/app/people/imswww/v.b/docs"
+> IW_LIB_DIR = "/usr/app/people/imswww/v.b/lib"
+> IW_SESSION_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+> IW_SESSION_ID = "809033436-10153"
+> IW_TMP_DIR = "/usr/app/people/imswww/v.b/tmp"
+> PATH = "/bin:/usr/bin:/usr/etc:/usr/ucb:/usr/local/bin:/usr/ucb"
+> QUERY_STRING = ""
+> REMOTE_ADDR = "128.138.135.33"
+> REMOTE_HOST = "sitka.colorado.edu"
+> REQUEST_METHOD = "POST"
+> SCRIPT_NAME = "/ims-bin/v.b/imssearch"
+> SERVER_NAME = "rhine.gsfc.nasa.gov"
+> SERVER_PORT = "8080"
+> SERVER_PROTOCOL = "HTTP/1.0"
+> SERVER_SOFTWARE = "NCSA/1.4.2"
+> SYSLOG_LEVEL = "7"
+> USRDATA_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+>
+> Tags
+>
+> pmap-geo-opt = "map"
+> pparam-param = "Sea Ice Concentration"
+> pparam-param = "Snow Cover"
+> pparam-param = "Total Sea Ice Concentration"
+> s-east-long = "-40.0"
+> s-north-lat = "75.3"
+> s-south-lat = "66.0"
+> s-start-date = "01-01-1990"
+> s-start-time = ""
+> s-stop-date = "31-12-1994"
+> s-stop-time = ""
+> s-west-long = "-176.0"
+> sid = "809033436-10153"
+>
+> Permissions
+>
+> Real user id = 65534
+> Real group ids = 65534 65534
+> Effective user id = 65534
+> Effective group ids = 65534 65534
+>
+> ------------------------------------------------------------------------
+>
+>
+> Log file /usr/app/people/imswww/v.b/tmp/imswww-usr/10184.clog
+>
+> II 1995/08/21 15:33:50 IwLog 94
+> Logging begun
+> WWW 1995/08/21 15:33:50 Iw 263
+> Perl: Use of uninitialized value at /usr/app/people/imswww/v.b/lib/perl/ims ;
+> search.pl line 82.
+> |
+> EEEE 1995/08/21 15:33:51 Iw 95
+> Bad mode: SEARCH/ (600).
+>
+> ------------------------------------------------------------------------
+>
+>
+> Session information
+>
+> [Session Directory]
+>
+> ------------------------------------------------------------------------
+>
+> Generated by EOSDIS IMS/www version 0.3b / imswww@rhine.gsfc.nasa.gov
+> NASA/GSFC Task Representative: Yonsook Enloe, yonsook@killians.gsfc.nasa.gov
+>
+> A joint project of NASA/GSFC, A/WWW Enterprises, and Hughes STX Corporation.
+> Full contact information is available.
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain</field>
+<field>
+Content-Transfer-Encoding: 8bit</field>
+</header>
+<body>
+[[ERROR]] Error 600: Internal logic.
+
+Dying gasp:
+Bad mode: SEARCH/ (600).
+
+Recommended action to correct the situation:
+YIKES! IMS/www failed one of its internal consistency checks! Please SAVE THIS
+FILE, and contact IMS/www's developers immediately so they can fix the problem!
+If the parentheses at the end of this sentence are not blank, you can contact
+them here (imswww@rhine.gsfc.nasa.gov).
+
+ ------------------------------------------------------------------------
+
+
+Location of error
+
+Dying gasp:
+Package "main", file "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl", line
+753.
+
+Traceback:
+
+ 1. Iw::Die: from "main", "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl
+ line 753
+ 2. main::Main: from "main", "/usr/app/people/imswww/public_cgi/v.b/imssearch
+ line 85
+
+ ------------------------------------------------------------------------
+
+
+Basic state information
+
+Include path
+
+/usr/app/people/imswww/v.b/lib/perl
+/usr/app/people/imswww/v.b/lib/perl/Eg
+/usr/local/lib/perl5/sun4-sunos
+/usr/local/lib/perl5
+
+
+
+</body>
+</body-part>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,162 @@
+<message>
+<header>
+<field>
+From: Michelle Holm <holm@sitka.colorado.edu></field>
+<field>
+Date: Mon, 21 Aug 95 13:30:57 -600</field>
+<field>
+Sender: holm@sitka.colorado.edu</field>
+<field>
+To: imswww@rhine.gsfc.nasa.gov</field>
+<field>
+Mime-Version: 1.0</field>
+<field>
+X-Mailer: Mozilla/1.0N (X11; IRIX 5.2 IP20)</field>
+<field>
+Content-Type: multipart/mixed;
+ boundary="-------------------------------147881770724098"</field>
+<field>
+Subject: http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch</field>
+<field>
+X-Url: http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch</field>
+<field>
+Content-Type: text/plain; charset=iso-8859-1</field>
+<field>
+Content-Transfer-Encoding: 8bit</field>
+</header>
+<multipart>
+<preamble>
+> [[ERROR]] Error 600: Internal logic.
+>
+> Dying gasp:
+> Bad mode: SEARCH/ (600).
+>
+> Recommended action to correct the situation:
+> YIKES! IMS/www failed one of its internal consistency checks! Please SAVE
+> THIS FILE, and contact IMS/www's developers immediately so they can fix the
+> problem! If the parentheses at the end of this sentence are not blank, you
+> can contact them here (imswww@rhine.gsfc.nasa.gov).
+>
+> ------------------------------------------------------------------------
+>
+>
+> Location of error
+>
+> Dying gasp:
+> Package "main", file "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl", line
+> 753.
+>
+> Traceback:
+>
+> 1. Iw::Die: from "main", "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl
+> line 753
+> 2. main::Main: from "main",
+> "/usr/app/people/imswww/public_cgi/v.b/imssearch line 85
+>
+> ------------------------------------------------------------------------
+>
+>
+> Basic state information
+>
+> Include path
+>
+> /usr/app/people/imswww/v.b/lib/perl
+> /usr/app/people/imswww/v.b/lib/perl/Eg
+> /usr/local/lib/perl5/sun4-sunos
+> /usr/local/lib/perl5
+> .
+>
+> Environment variables
+>
+> CONTENT_LENGTH = "281"
+> CONTENT_TYPE = "application/x-www-form-urlencoded"
+> DOCUMENT_ROOT = "/usr/local/etc/httpd/htdocs"
+> GAEADATA_DIR = "/home/rhine/ims/lib/gaea_data"
+> GAEATMP_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+> GATEWAY_INTERFACE = "CGI/1.1"
+> HTTP_ACCEPT = "*/*, image/gif, image/x-xbitmap, image/jpeg"
+> HTTP_REFERER = "http://rhine.gsfc.nasa.gov:8080/ims-bin/v.b/imssearch"
+> HTTP_USER_AGENT = "Mozilla/1.0N (X11; IRIX 5.2 IP20)"
+> IMS_STAFF = "1"
+> IW_CGI_DIR = "/usr/app/people/imswww/v.b/cgi-bin"
+> IW_DOCS_DIR = "/usr/app/people/imswww/v.b/docs"
+> IW_LIB_DIR = "/usr/app/people/imswww/v.b/lib"
+> IW_SESSION_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+> IW_SESSION_ID = "809033436-10153"
+> IW_TMP_DIR = "/usr/app/people/imswww/v.b/tmp"
+> PATH = "/bin:/usr/bin:/usr/etc:/usr/ucb:/usr/local/bin:/usr/ucb"
+> QUERY_STRING = ""
+> REMOTE_ADDR = "128.138.135.33"
+> REMOTE_HOST = "sitka.colorado.edu"
+> REQUEST_METHOD = "POST"
+> SCRIPT_NAME = "/ims-bin/v.b/imssearch"
+> SERVER_NAME = "rhine.gsfc.nasa.gov"
+> SERVER_PORT = "8080"
+> SERVER_PROTOCOL = "HTTP/1.0"
+> SERVER_SOFTWARE = "NCSA/1.4.2"
+> SYSLOG_LEVEL = "7"
+> USRDATA_DIR = "/usr/app/people/imswww/v.b/tmp/imswww-usr/809033436-10153"
+>
+> Tags
+>
+> pmap-geo-opt = "map"
+> pparam-param = "Sea Ice Concentration"
+> pparam-param = "Snow Cover"
+> pparam-param = "Total Sea Ice Concentration"
+> s-east-long = "-40.0"
+> s-north-lat = "75.3"
+> s-south-lat = "66.0"
+> s-start-date = "01-01-1990"
+> s-start-time = ""
+> s-stop-date = "31-12-1994"
+> s-stop-time = ""
+> s-west-long = "-176.0"
+> sid = "809033436-10153"
+>
+> Permissions
+>
+> Real user id = 65534
+> Real group ids = 65534 65534
+> Effective user id = 65534
+> Effective group ids = 65534 65534
+>
+> ------------------------------------------------------------------------
+>
+>
+> Log file /usr/app/people/imswww/v.b/tmp/imswww-usr/10184.clog
+>
+> II 1995/08/21 15:33:50 IwLog 94
+> Logging begun
+> WWW 1995/08/21 15:33:50 Iw 263
+> Perl: Use of uninitialized value at /usr/app/people/imswww/v.b/lib/perl/ims ;
+> search.pl line 82.
+> |
+> EEEE 1995/08/21 15:33:51 Iw 95
+> Bad mode: SEARCH/ (600).
+>
+> ------------------------------------------------------------------------
+>
+>
+> Session information
+>
+> [Session Directory]
+>
+> ------------------------------------------------------------------------
+>
+> Generated by EOSDIS IMS/www version 0.3b / imswww@rhine.gsfc.nasa.gov
+> NASA/GSFC Task Representative: Yonsook Enloe, yonsook@killians.gsfc.nasa.gov
+>
+> A joint project of NASA/GSFC, A/WWW Enterprises, and Hughes STX Corporation.
+> Full contact information is available.
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain</field>
+<field>
+Content-Transfer-Encoding: 8bit</field>
+</header>
+<text-body name="multi-bad_decoded_1_1.txt"/>
+</body-part>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded_1_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded_1_1.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded_1_1.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded_1_1.txt Tue Apr 19 10:12:19 2011
@@ -0,0 +1,41 @@
+[[ERROR]] Error 600: Internal logic.
+
+Dying gasp:
+Bad mode: SEARCH/ (600).
+
+Recommended action to correct the situation:
+YIKES! IMS/www failed one of its internal consistency checks! Please SAVE THIS
+FILE, and contact IMS/www's developers immediately so they can fix the problem!
+If the parentheses at the end of this sentence are not blank, you can contact
+them here (imswww@rhine.gsfc.nasa.gov).
+
+ ------------------------------------------------------------------------
+
+
+Location of error
+
+Dying gasp:
+Package "main", file "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl", line
+753.
+
+Traceback:
+
+ 1. Iw::Die: from "main", "/usr/app/people/imswww/v.b/lib/perl/imssearch.pl
+ line 753
+ 2. main::Main: from "main", "/usr/app/people/imswww/public_cgi/v.b/imssearch
+ line 85
+
+ ------------------------------------------------------------------------
+
+
+Basic state information
+
+Include path
+
+/usr/app/people/imswww/v.b/lib/perl
+/usr/app/people/imswww/v.b/lib/perl/Eg
+/usr/local/lib/perl5/sun4-sunos
+/usr/local/lib/perl5
+
+
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-bad_decoded_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.msg
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.msg?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.msg (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.msg Tue Apr 19 10:12:19 2011
@@ -0,0 +1,30 @@
+From: Nathaniel Borenstein <ns...@bellcore.com>
+To: Ned Freed <ne...@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.
+--simple boundary
+Content-type: text/plain; charset=us-ascii; name="/foo/bar"
+
+
+--simple boundary
+Content-type: text/plain; charset=us-ascii; name="foo bar"
+
+This is explicitly typed plain ASCII text.
+It DOES end with a linebreak.
+
+
+--simple boundary
+Content-type: text/plain; charset=us-ascii; name="foobar"
+
+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-badnames.out
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.out?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.out (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.out Tue Apr 19 10:12:19 2011
@@ -0,0 +1,30 @@
+From: Nathaniel Borenstein <ns...@bellcore.com>
+To: Ned Freed <ne...@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.
+--simple boundary
+Content-type: text/plain; charset=us-ascii; name="/foo/bar"
+
+
+--simple boundary
+Content-type: text/plain; charset=us-ascii; name="foo bar"
+
+This is explicitly typed plain ASCII text.
+It DOES end with a linebreak.
+
+
+--simple boundary
+Content-type: text/plain; charset=us-ascii; name="foobar"
+
+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-badnames.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,54 @@
+<message>
+<header>
+<field>
+From: Nathaniel Borenstein <nsb@bellcore.com></field>
+<field>
+To: Ned Freed <ned@innosoft.com></field>
+<field>
+Subject: Sample message</field>
+<field>
+MIME-Version: 1.0</field>
+<field>
+Content-type: multipart/mixed; boundary="simple
+ boundary"</field>
+</header>
+<multipart>
+<preamble>
+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.</preamble>
+<body-part>
+<header>
+<field>
+Content-type: text/plain; charset=us-ascii; name="/foo/bar"</field>
+</header>
+<body>
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/plain; charset=us-ascii; name="foo bar"</field>
+</header>
+<body>
+This is explicitly typed plain ASCII text.
+It DOES end with a linebreak.
+
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/plain; charset=us-ascii; name="foobar"</field>
+</header>
+<body>
+This is explicitly typed plain ASCII text.
+It DOES end with a linebreak.
+</body>
+</body-part>
+<epilogue>
+This is the epilogue. It is also to be ignored.
+
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,46 @@
+<message>
+<header>
+<field>
+From: Nathaniel Borenstein <nsb@bellcore.com></field>
+<field>
+To: Ned Freed <ned@innosoft.com></field>
+<field>
+Subject: Sample message</field>
+<field>
+MIME-Version: 1.0</field>
+<field>
+Content-type: multipart/mixed; boundary="simple
+ boundary"</field>
+</header>
+<multipart>
+<preamble>
+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.</preamble>
+<body-part>
+<header>
+<field>
+Content-type: text/plain; charset=us-ascii; name="/foo/bar"</field>
+</header>
+<text-body name="multi-badnames_decoded_1_1.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/plain; charset=us-ascii; name="foo bar"</field>
+</header>
+<text-body name="multi-badnames_decoded_1_2.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/plain; charset=us-ascii; name="foobar"</field>
+</header>
+<text-body name="multi-badnames_decoded_1_3.txt"/>
+</body-part>
+<epilogue>
+This is the epilogue. It is also to be ignored.
+
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_1.txt?rev=1094991&view=auto
==============================================================================
(empty)
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_2.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_2.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_2.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_2.txt Tue Apr 19 10:12:19 2011
@@ -0,0 +1,3 @@
+This is explicitly typed plain ASCII text.
+It DOES end with a linebreak.
+
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_2.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_3.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_3.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_3.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-badnames_decoded_1_3.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-badnames_decoded_1_3.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.msg
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.msg?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.msg (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.msg Tue Apr 19 10:12:19 2011
@@ -0,0 +1,40 @@
+From: Nathaniel Borenstein <ns...@bellcore.com>
+To: Ned Freed <ne...@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.
+--simple boundary
+
+This is implicitly typed plain ASCII text.
+It does NOT end with a linebreak.
+--simple boundary
+Content-type: text/x-numbers; charset=us-ascii
+Content-length: 30
+
+123456789
+123456789
+123456789
+
+--simple boundary
+Content-type: text/x-alphabet; charset=us-ascii
+Content-length: 600
+
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+
+--simple boundary--
+This is the epilogue. It is also to be ignored.
+
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.out
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.out?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.out (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.out Tue Apr 19 10:12:19 2011
@@ -0,0 +1,40 @@
+From: Nathaniel Borenstein <ns...@bellcore.com>
+To: Ned Freed <ne...@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.
+--simple boundary
+
+This is implicitly typed plain ASCII text.
+It does NOT end with a linebreak.
+--simple boundary
+Content-type: text/x-numbers; charset=us-ascii
+Content-length: 30
+
+123456789
+123456789
+123456789
+
+--simple boundary
+Content-type: text/x-alphabet; charset=us-ascii
+Content-length: 600
+
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+
+--simple boundary--
+This is the epilogue. It is also to be ignored.
+
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,65 @@
+<message>
+<header>
+<field>
+From: Nathaniel Borenstein <nsb@bellcore.com></field>
+<field>
+To: Ned Freed <ned@innosoft.com></field>
+<field>
+Subject: Sample message</field>
+<field>
+MIME-Version: 1.0</field>
+<field>
+Content-type: multipart/mixed; boundary="simple
+ boundary"</field>
+</header>
+<multipart>
+<preamble>
+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.</preamble>
+<body-part>
+<header>
+</header>
+<body>
+This is implicitly typed plain ASCII text.
+It does NOT end with a linebreak.</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/x-numbers; charset=us-ascii</field>
+<field>
+Content-length: 30</field>
+</header>
+<body>
+123456789
+123456789
+123456789
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/x-alphabet; charset=us-ascii</field>
+<field>
+Content-length: 600</field>
+</header>
+<body>
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+</body>
+</body-part>
+<epilogue>
+This is the epilogue. It is also to be ignored.
+
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,48 @@
+<message>
+<header>
+<field>
+From: Nathaniel Borenstein <nsb@bellcore.com></field>
+<field>
+To: Ned Freed <ned@innosoft.com></field>
+<field>
+Subject: Sample message</field>
+<field>
+MIME-Version: 1.0</field>
+<field>
+Content-type: multipart/mixed; boundary="simple
+ boundary"</field>
+</header>
+<multipart>
+<preamble>
+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.</preamble>
+<body-part>
+<header>
+</header>
+<text-body name="multi-clen_decoded_1_1.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/x-numbers; charset=us-ascii</field>
+<field>
+Content-length: 30</field>
+</header>
+<text-body name="multi-clen_decoded_1_2.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/x-alphabet; charset=us-ascii</field>
+<field>
+Content-length: 600</field>
+</header>
+<text-body name="multi-clen_decoded_1_3.txt"/>
+</body-part>
+<epilogue>
+This is the epilogue. It is also to be ignored.
+
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_1.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_1.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_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-clen_decoded_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_2.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_2.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_2.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_2.txt Tue Apr 19 10:12:19 2011
@@ -0,0 +1,3 @@
+123456789
+123456789
+123456789
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_2.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_3.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_3.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_3.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_3.txt Tue Apr 19 10:12:19 2011
@@ -0,0 +1,10 @@
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
+ABCDEFGHIJKLMNOPQRSTUVWXYZ012 ABCDEFGHIJKLMNOPQRSTUVWXYZ012
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-clen_decoded_1_3.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.msg
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.msg?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.msg (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.msg Tue Apr 19 10:12:19 2011
@@ -0,0 +1,30 @@
+From: Nathaniel Borenstein <ns...@bellcore.com>
+To: Ned Freed <ne...@innosoft.com>
+Subject: Sample digest message
+MIME-Version: 1.0
+Content-type: multipart/digest; 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
+
+From: noone@nowhere.org
+Subject: embedded message 1
+
+This is implicitly-typed ASCII text.
+It does NOT end with a linebreak.
+--simple boundary
+Content-type: message/rfc822; charset=us-ascii
+
+From: noone@nowhere.org
+Subject: embedded message 2
+Content-type: text
+
+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-digest.out
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.out?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.out (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.out Tue Apr 19 10:12:19 2011
@@ -0,0 +1,30 @@
+From: Nathaniel Borenstein <ns...@bellcore.com>
+To: Ned Freed <ne...@innosoft.com>
+Subject: Sample digest message
+MIME-Version: 1.0
+Content-type: multipart/digest; 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
+
+From: noone@nowhere.org
+Subject: embedded message 1
+
+This is implicitly-typed ASCII text.
+It does NOT end with a linebreak.
+--simple boundary
+Content-type: message/rfc822; charset=us-ascii
+
+From: noone@nowhere.org
+Subject: embedded message 2
+Content-type: text
+
+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-digest.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,60 @@
+<message>
+<header>
+<field>
+From: Nathaniel Borenstein <nsb@bellcore.com></field>
+<field>
+To: Ned Freed <ned@innosoft.com></field>
+<field>
+Subject: Sample digest message</field>
+<field>
+MIME-Version: 1.0</field>
+<field>
+Content-type: multipart/digest; boundary="simple
+ boundary"</field>
+</header>
+<multipart>
+<preamble>
+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.</preamble>
+<body-part>
+<header>
+</header>
+<message>
+<header>
+<field>
+From: noone@nowhere.org</field>
+<field>
+Subject: embedded message 1</field>
+</header>
+<body>
+This is implicitly-typed ASCII text.
+It does NOT end with a linebreak.</body>
+</message>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: message/rfc822; charset=us-ascii</field>
+</header>
+<message>
+<header>
+<field>
+From: noone@nowhere.org</field>
+<field>
+Subject: embedded message 2</field>
+<field>
+Content-type: text</field>
+</header>
+<body>
+This is explicitly typed plain ASCII text.
+It DOES end with a linebreak.
+</body>
+</message>
+</body-part>
+<epilogue>
+This is the epilogue. It is also to be ignored.
+
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,55 @@
+<message>
+<header>
+<field>
+From: Nathaniel Borenstein <nsb@bellcore.com></field>
+<field>
+To: Ned Freed <ned@innosoft.com></field>
+<field>
+Subject: Sample digest message</field>
+<field>
+MIME-Version: 1.0</field>
+<field>
+Content-type: multipart/digest; boundary="simple
+ boundary"</field>
+</header>
+<multipart>
+<preamble>
+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.</preamble>
+<body-part>
+<header>
+</header>
+<message>
+<header>
+<field>
+From: noone@nowhere.org</field>
+<field>
+Subject: embedded message 1</field>
+</header>
+<text-body name="multi-digest_decoded_1_1_1.txt"/>
+</message>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: message/rfc822; charset=us-ascii</field>
+</header>
+<message>
+<header>
+<field>
+From: noone@nowhere.org</field>
+<field>
+Subject: embedded message 2</field>
+<field>
+Content-type: text</field>
+</header>
+<text-body name="multi-digest_decoded_1_2_1.txt"/>
+</message>
+</body-part>
+<epilogue>
+This is the epilogue. It is also to be ignored.
+
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded_1_1_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded_1_1_1.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded_1_1_1.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded_1_1_1.txt Tue Apr 19 10:12:19 2011
@@ -0,0 +1,2 @@
+This is implicitly-typed 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-digest_decoded_1_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded_1_2_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded_1_2_1.txt?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded_1_2_1.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-digest_decoded_1_2_1.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-digest_decoded_1_2_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.msg
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.msg?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.msg (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.msg Tue Apr 19 10:12:19 2011
@@ -0,0 +1,90 @@
+MIME-Version: 1.0
+From: Lord John Whorfin <wh...@yoyodyne.com>
+To: <jo...@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.
+--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", but
+ the terminating boundary is bad!
+
+R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA
+AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7
+VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7
++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL
+rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ
+vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw
+E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7
+XXXXXX--unique-boundary-2--
+
+The epilogue for the inner multipart message.
+
+--unique-boundary-1
+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>
+
+--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-frag.out
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.out?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.out (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.out Tue Apr 19 10:12:19 2011
@@ -0,0 +1,90 @@
+MIME-Version: 1.0
+From: Lord John Whorfin <wh...@yoyodyne.com>
+To: <jo...@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.
+--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", but
+ the terminating boundary is bad!
+
+R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAAAAAA
+AAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7VujnC96I
+RVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7+3dCeRRjfAKH
+iImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatLrU8GaQdOBAQAB7+y
+XliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJvs7Y5ewH3d7Fxe3jB4rj
+8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjwE0cdGxQ/gswosoKUkmuU2FnJ
+csSKGTBjypxJsyaICAA7XXXXXXuniqueboundary2Theepiloguefortheinnermultipartmess
+
+--unique-boundary-2--
+
+--unique-boundary-1
+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>
+
+--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-frag.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,146 @@
+<message>
+<header>
+<field>
+MIME-Version: 1.0</field>
+<field>
+From: Lord John Whorfin <whorfin@yoyodyne.com></field>
+<field>
+To: <john-yaya@yoyodyne.com></field>
+<field>
+Subject: A complex nested multipart example</field>
+<field>
+Content-Type: multipart/mixed;
+ boundary=unique-boundary-1</field>
+</header>
+<multipart>
+<preamble>
+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.</preamble>
+<body-part>
+<header>
+</header>
+<body>
+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.]
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/plain; charset=US-ASCII</field>
+</header>
+<body>
+Part 2 of the outer message.
+This could have been part of the previous part,
+but illustrates explicit versus implicit
+typing of body parts.
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Subject: Part 3 of the outer message is multipart!</field>
+<field>
+Content-Type: multipart/parallel;
+ boundary=unique-boundary-2</field>
+</header>
+<multipart>
+<preamble>
+A one-line preamble for the inner multipart message.</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: image/gif</field>
+<field>
+Content-Transfer-Encoding: base64</field>
+<field>
+Content-Disposition: inline; filename="3d-vise.gif"</field>
+<field>
+Subject: Part 1 of the inner message is a GIF, "3d-vise.gif"</field>
+</header>
+<body>
+R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA
+AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA
+oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT
+8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0
+qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR
+2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv
+QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ
+0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs=</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: image/gif</field>
+<field>
+Content-Transfer-Encoding: base64</field>
+<field>
+Content-Disposition: inline; filename="3d-eye.gif"</field>
+<field>
+Subject: Part 2 of the inner message is another GIF, "3d-eye.gif", but
+ the terminating boundary is bad!</field>
+</header>
+<body>
+R0lGODdhKAAoAPMAAAAAAAAAzN3u/76+voiIiG5ubszd7v///+fn5wAAAAAAAAAAAAAAAAAA
+AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJbMOy4bMoxkaZ5oCkoD6L5wLMfiWns41oZt7lM7
+VujnC96IRVsPWQE4nxPjkvmsQmu8oc/KBUSVWk7XepGGLeNrxoxJO1MjILjthg/kWXQ6wO/7
++3dCeRRjfAKHiImJAV+DCF0BiW5VAo1CElaRh5NjlkeYmpyTgpcTAKGiaaSfpwKpVQaxVatL
+rU8GaQdOBAQAB7+yXliXTrgAxsW4vFabv8BOtBsBt7cGvwCIT9nOyNEIxuC4zrqKzc9XbODJ
+vs7Y5ewH3d7Fxe3jB4rj8t6PuNa6r2bhKQXN17FYCBMqTGiBzSNhx5g0nEMhlsSJjiRYvDjw
+E0cdGxQ/gswosoKUkmuU2FnJcsSKGTBjypxJsyaICAA7
+XXXXXX--unique-boundary-2--
+
+The epilogue for the inner multipart message.
+</body>
+</body-part>
+</multipart>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/richtext</field>
+</header>
+<body>
+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>
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: message/rfc822; name="nice.name";</field>
+</header>
+<message>
+<header>
+<field>
+From: (mailbox in US-ASCII)</field>
+<field>
+To: (address in US-ASCII)</field>
+<field>
+Subject: Part 5 of the outer message is itself an RFC822 message!</field>
+<field>
+Content-Type: Text/plain; charset=ISO-8859-1</field>
+<field>
+Content-Transfer-Encoding: Quoted-printable</field>
+</header>
+<body>
+Part 5 of the outer message is itself an RFC822 message!
+</body>
+</message>
+</body-part>
+<epilogue>
+
+The epilogue for the outer message.
+
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag_decoded.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag_decoded.xml?rev=1094991&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag_decoded.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag_decoded.xml Tue Apr 19 10:12:19 2011
@@ -0,0 +1,109 @@
+<message>
+<header>
+<field>
+MIME-Version: 1.0</field>
+<field>
+From: Lord John Whorfin <whorfin@yoyodyne.com></field>
+<field>
+To: <john-yaya@yoyodyne.com></field>
+<field>
+Subject: A complex nested multipart example</field>
+<field>
+Content-Type: multipart/mixed;
+ boundary=unique-boundary-1</field>
+</header>
+<multipart>
+<preamble>
+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.</preamble>
+<body-part>
+<header>
+</header>
+<text-body name="multi-frag_decoded_1_1.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/plain; charset=US-ASCII</field>
+</header>
+<text-body name="multi-frag_decoded_1_2.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Subject: Part 3 of the outer message is multipart!</field>
+<field>
+Content-Type: multipart/parallel;
+ boundary=unique-boundary-2</field>
+</header>
+<multipart>
+<preamble>
+A one-line preamble for the inner multipart message.</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: image/gif</field>
+<field>
+Content-Transfer-Encoding: base64</field>
+<field>
+Content-Disposition: inline; filename="3d-vise.gif"</field>
+<field>
+Subject: Part 1 of the inner message is a GIF, "3d-vise.gif"</field>
+</header>
+<binary-body name="multi-frag_decoded_1_3_1.bin"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: image/gif</field>
+<field>
+Content-Transfer-Encoding: base64</field>
+<field>
+Content-Disposition: inline; filename="3d-eye.gif"</field>
+<field>
+Subject: Part 2 of the inner message is another GIF, "3d-eye.gif", but
+ the terminating boundary is bad!</field>
+</header>
+<binary-body name="multi-frag_decoded_1_3_2.bin"/>
+</body-part>
+</multipart>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-type: text/richtext</field>
+</header>
+<text-body name="multi-frag_decoded_1_4.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: message/rfc822; name="nice.name";</field>
+</header>
+<message>
+<header>
+<field>
+From: (mailbox in US-ASCII)</field>
+<field>
+To: (address in US-ASCII)</field>
+<field>
+Subject: Part 5 of the outer message is itself an RFC822 message!</field>
+<field>
+Content-Type: Text/plain; charset=ISO-8859-1</field>
+<field>
+Content-Transfer-Encoding: Quoted-printable</field>
+</header>
+<text-body name="multi-frag_decoded_1_5_1.txt"/>
+</message>
+</body-part>
+<epilogue>
+
+The epilogue for the outer message.
+
+</epilogue>
+</multipart>
+</message>
Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/multi-frag_decoded.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain