Author: bago
Date: Mon Jul 14 04:47:06 2008
New Revision: 676555
URL: http://svn.apache.org/viewvc?rev=676555&view=rev
Log:
Adding some new messages proving bugs in the current implementation and
differences from what we had in mime4j 0.2 result/testsuite.
Expected results have to be checked for correctness.
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.msg
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.xml
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded.mime4j.xml
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded_1_1_1.txt
(with props)
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.msg
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.xml
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded.mime4j.xml
(with props)
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded_1_1.txt
(with props)
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.msg
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.xml
(with props)
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary_decoded_1_1.txt
(with props)
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.msg
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.xml
(with props)
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_1.txt
(with props)
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_2_1.mime4j.txt
(with props)
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.msg
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.msg?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.msg
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.msg
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,11 @@
+Content-type: message/rfc822
+Content-transfer-encoding: base64
+Subject: a multipart message/rfc822 which has been base64-encoded
+
+Q29udGVudC1UeXBlOiBtdWx0aXBhcnQvbWl4ZWQ7IGJvdW5kYXJ5PSItLS0tLS0tLS0tLS0yOTlB
+NzBCMzM5QjY1QTkzNTQyRDJBRSIKClRoaXMgaXMgYSBtdWx0aS1wYXJ0IG1lc3NhZ2UgaW4gTUlN
+RSBmb3JtYXQuCgotLS0tLS0tLS0tLS0tLTI5OUE3MEIzMzlCNjVBOTM1NDJEMkFFCkNvbnRlbnQt
+VHlwZTogdGV4dC9wbGFpbjsgY2hhcnNldD11cy1hc2NpaQpDb250ZW50LVRyYW5zZmVyLUVuY29k
+aW5nOiA3Yml0CgpUZXh0IGJvZHkKCi0tLS0tLS0tLS0tLS0tMjk5QTcwQjMzOUI2NUE5MzU0MkQy
+QUUtLQpUaGF0IHdhcyBhIG11bHRpLXBhcnQgbWVzc2FnZSBpbiBNSU1FIGZvcm1hdC4K
+
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.xml
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.xml?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.xml
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64.xml
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,35 @@
+<message>
+<header>
+<field>
+Content-type: message/rfc822</field>
+<field>
+Content-transfer-encoding: base64</field>
+<field>
+Subject: a multipart message/rfc822 which has been base64-encoded</field>
+</header>
+<message>
+<header>
+<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>
+Text body
+</body>
+</body-part>
+<epilogue>
+That was a multi-part message in MIME format.
+</epilogue>
+</multipart>
+</message>
+</message>
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded.mime4j.xml
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded.mime4j.xml?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded.mime4j.xml
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded.mime4j.xml
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,32 @@
+<message>
+<header>
+<field>
+Content-type: message/rfc822</field>
+<field>
+Content-transfer-encoding: base64</field>
+<field>
+Subject: a multipart message/rfc822 which has been base64-encoded</field>
+</header>
+<message>
+<header>
+<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="bad-newlines-multiple-parts-base64_decoded_1_1_1.txt"/>
+</body-part>
+<epilogue>
+</epilogue>
+</multipart>
+</message>
+</message>
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded_1_1_1.txt
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded_1_1_1.txt?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded_1_1_1.txt
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded_1_1_1.txt
Mon Jul 14 04:47:06 2008
@@ -0,0 +1 @@
+Text body
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded_1_1_1.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts-base64_decoded_1_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.msg
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.msg?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.msg
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.msg
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,12 @@
+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
+
+Text body
+
+--------------299A70B339B65A93542D2AE--
+That was a multi-part message in MIME format.
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.xml
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.xml?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.xml
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts.xml
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,25 @@
+<message>
+<header>
+<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>
+Text body
+</body>
+</body-part>
+<epilogue>
+That was a multi-part message in MIME format.
+</epilogue>
+</multipart>
+</message>
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded.mime4j.xml
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded.mime4j.xml?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded.mime4j.xml
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded.mime4j.xml
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,23 @@
+<message>
+<header>
+<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="bad-newlines-multiple-parts_decoded_1_1.txt"/>
+</body-part>
+<epilogue>
+That was a multi-part message in MIME format.
+</epilogue>
+</multipart>
+</message>
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded.mime4j.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded.mime4j.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded_1_1.txt
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded_1_1.txt?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded_1_1.txt
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded_1_1.txt
Mon Jul 14 04:47:06 2008
@@ -0,0 +1 @@
+Text body
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded_1_1.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/bad-newlines-multiple-parts_decoded_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.msg
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.msg?rev=676555&view=auto
==============================================================================
--- james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.msg
(added)
+++ james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.msg Mon
Jul 14 04:47:06 2008
@@ -0,0 +1,10 @@
+Content-Type: multipart/mixed; boundary="boundary"
+
+--boundary
+Content-Type: text/plain
+
+This should be a text including the --boundary
+string and should not be parsed as multiple bodies
+
+--boundary--
+epilouge
Added: james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.xml
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.xml?rev=676555&view=auto
==============================================================================
--- james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.xml
(added)
+++ james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.xml Mon
Jul 14 04:47:06 2008
@@ -0,0 +1,23 @@
+<message>
+<header>
+<field>
+Content-Type: multipart/mixed; boundary="boundary"</field>
+</header>
+<multipart>
+<preamble>
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain</field>
+</header>
+<body>
+This should be a text including the --boundary
+string and should not be parsed as multiple bodies
+</body>
+</body-part>
+<epilogue>
+epilouge
+</epilogue>
+</multipart>
+</message>
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary_decoded_1_1.txt
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary_decoded_1_1.txt?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary_decoded_1_1.txt
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary_decoded_1_1.txt
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,2 @@
+This should be a text including the --boundary
+string and should not be parsed as multiple bodies
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary_decoded_1_1.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/misplaced-boundary_decoded_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.msg
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.msg?rev=676555&view=auto
==============================================================================
--- james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.msg
(added)
+++ james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.msg
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,16 @@
+Content-Type: multipart/mixed; boundary="outer-boundary"
+
+Outer preamble
+
+--outer-boundary
+Content-Type: text/plain
+
+Foo
+
+--outer-boundary
+Content-Type: multipart/alternative; boundary="inner-boundary"
+
+AAA
+
+--outer-boundary--
+Outer epilouge
Added: james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.xml
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.xml?rev=676555&view=auto
==============================================================================
--- james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.xml
(added)
+++ james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.xml
Mon Jul 14 04:47:06 2008
@@ -0,0 +1,44 @@
+<message>
+<header>
+<field>
+Content-Type: multipart/mixed; boundary="outer-boundary"</field>
+</header>
+<multipart>
+<preamble>
+Outer preamble
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain</field>
+</header>
+<body>
+Foo
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: multipart/alternative; boundary="inner-boundary"</field>
+</header>
+<multipart>
+<preamble>
+AAA
+
+--outer-boundary--
+Outer epilouge
+</preamble>
+<body-part>
+<header>
+</header>
+<body>
+</body>
+</body-part>
+<epilogue>
+</epilogue>
+</multipart>
+</body-part>
+<epilogue>
+</epilogue>
+</multipart>
+</message>
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_1.txt
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_1.txt?rev=676555&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_1.txt
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_1.txt
Mon Jul 14 04:47:06 2008
@@ -0,0 +1 @@
+Foo
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_1.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_2_1.mime4j.txt
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_2_1.mime4j.txt?rev=676555&view=auto
==============================================================================
(empty)
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_2_1.mime4j.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/missing-inner-boundary_decoded_1_2_1.mime4j.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]