Author: bago
Date: Mon Jul 14 07:02:00 2008
New Revision: 676594
URL: http://svn.apache.org/viewvc?rev=676594&view=rev
Log:
A test for a boundary with all of the permitted chars and a length of 70,
ending with a space.
Added:
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.msg
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.xml
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded.xml
(with props)
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded_1_1.txt
(with props)
Added: james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.msg
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.msg?rev=676594&view=auto
==============================================================================
--- james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.msg (added)
+++ james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.msg Mon Jul
14 07:02:00 2008
@@ -0,0 +1,15 @@
+Content-Type: multipart/mixed;
boundary="0123456789abcdefghijklmnopqrstuvwxyzABCDEFLMNOPRSTUVWXYZ'()+_,-./:=?
"
+
+multipart
+
+--0123456789abcdefghijklmnopqrstuvwxyzABCDEFLMNOPRSTUVWXYZ'()+_,-./:=?
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+Text body
+--0123456789abcdefghijklmnopqrstuvwxyzABCDEFLMNOPRSTUVWXYZ'()+_,-./:=?
+The above line is similar to the boundary but miss a final space, so it
+should be part of the body.
+
+--0123456789abcdefghijklmnopqrstuvwxyzABCDEFLMNOPRSTUVWXYZ'()+_,-./:=? --
+epilogue
\ No newline at end of file
Added: james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.xml
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.xml?rev=676594&view=auto
==============================================================================
--- james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.xml (added)
+++ james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary.xml Mon Jul
14 07:02:00 2008
@@ -0,0 +1,27 @@
+<message>
+<header>
+<field>
+Content-Type: multipart/mixed;
boundary="0123456789abcdefghijklmnopqrstuvwxyzABCDEFLMNOPRSTUVWXYZ'()+_,-./:=?
"</field>
+</header>
+<multipart>
+<preamble>
+multipart
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+<field>
+Content-Transfer-Encoding: 7bit</field>
+</header>
+<body>
+Text body
+--0123456789abcdefghijklmnopqrstuvwxyzABCDEFLMNOPRSTUVWXYZ'()+_,-./:=?
+The above line is similar to the boundary but miss a final space, so it
+should be part of the body.
+</body>
+</body-part>
+<epilogue>
+epilogue</epilogue>
+</multipart>
+</message>
Added: james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded.xml
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded.xml?rev=676594&view=auto
==============================================================================
--- james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded.xml
(added)
+++ james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded.xml
Mon Jul 14 07:02:00 2008
@@ -0,0 +1,22 @@
+<message>
+<header>
+<field>
+Content-Type: multipart/mixed;
boundary="0123456789abcdefghijklmnopqrstuvwxyzABCDEFLMNOPRSTUVWXYZ'()+_,-./:=?
"</field>
+</header>
+<multipart>
+<preamble>
+multipart
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+<field>
+Content-Transfer-Encoding: 7bit</field>
+</header>
+<text-body name="weird-boundary_decoded_1_1.txt"/>
+</body-part>
+<epilogue>
+epilogue</epilogue>
+</multipart>
+</message>
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded_1_1.txt
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded_1_1.txt?rev=676594&view=auto
==============================================================================
---
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded_1_1.txt
(added)
+++
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded_1_1.txt
Mon Jul 14 07:02:00 2008
@@ -0,0 +1,4 @@
+Text body
+--0123456789abcdefghijklmnopqrstuvwxyzABCDEFLMNOPRSTUVWXYZ'()+_,-./:=?
+The above line is similar to the boundary but miss a final space, so it
+should be part of the body.
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded_1_1.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
james/mime4j/trunk/src/test/resources/testmsgs/weird-boundary_decoded_1_1.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]