james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1095114 - /james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/stream/DefaultBodyDescriptor.java
Date Tue, 19 Apr 2011 15:26:48 GMT
Author: bago
Date: Tue Apr 19 15:26:47 2011
New Revision: 1095114

URL: http://svn.apache.org/viewvc?rev=1095114&view=rev
Log:
Temporay fix for missing unfolding by RawFieldParser (MIME4J-189)

Modified:
    james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/stream/DefaultBodyDescriptor.java

Modified: james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/stream/DefaultBodyDescriptor.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/stream/DefaultBodyDescriptor.java?rev=1095114&r1=1095113&r2=1095114&view=diff
==============================================================================
--- james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/stream/DefaultBodyDescriptor.java
(original)
+++ james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/stream/DefaultBodyDescriptor.java
Tue Apr 19 15:26:47 2011
@@ -133,7 +133,9 @@ public class DefaultBodyDescriptor imple
 
     private void parseContentType(RawField field) throws MimeException {
         contentTypeSet = true;
-        RawBody body = RawFieldParser.DEFAULT.parseRawBody(field);
+        // TODO this is a temporary fix while MIME4J-189 is fixed for real.
+        RawField rf = new RawField(field.getName(), field.getBody());
+        RawBody body = RawFieldParser.DEFAULT.parseRawBody(rf);
         String main = body.getValue();
         Map<String, String> params = new HashMap<String, String>();
         for (NameValuePair nmp: body.getParams()) {



Mime
View raw message