james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r894102 - in /james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field: AbstractField.java DelegatingFieldParser.java
Date Sun, 27 Dec 2009 19:30:41 GMT
Author: bago
Date: Sun Dec 27 19:30:40 2009
New Revision: 894102

URL: http://svn.apache.org/viewvc?rev=894102&view=rev
Log:
More consistent unfolding behaviour (MIME4J-146, partial revert of MIME4J-141). Continued
from r894101 (previous commit).

Modified:
    james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java
    james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java

Modified: james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java?rev=894102&r1=894101&r2=894102&view=diff
==============================================================================
--- james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java
(original)
+++ james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/AbstractField.java
Sun Dec 27 19:30:40 2009
@@ -25,6 +25,7 @@
 import org.apache.james.mime4j.MimeException;
 import org.apache.james.mime4j.util.ByteSequence;
 import org.apache.james.mime4j.util.ContentUtil;
+import org.apache.james.mime4j.util.MimeUtil;
 
 /**
  * The base class of all field classes.
@@ -159,6 +160,7 @@
             body = body.substring(1);
         }
 
+        body = MimeUtil.unfold(body);
         return PARSER.parse(name, body, raw);
     }
 

Modified: james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java?rev=894102&r1=894101&r2=894102&view=diff
==============================================================================
--- james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java
(original)
+++ james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java
Sun Dec 27 19:30:40 2009
@@ -23,7 +23,6 @@
 import java.util.Map;
 
 import org.apache.james.mime4j.util.ByteSequence;
-import org.apache.james.mime4j.util.MimeUtil;
 
 public class DelegatingFieldParser implements FieldParser {
     private static final FieldParser DEFAULT_PARSER = UnstructuredField.PARSER;
@@ -49,6 +48,6 @@
     
     public ParsedField parse(final String name, final String body, final ByteSequence raw)
{
         final FieldParser parser = getParser(name);
-        return parser.parse(name, MimeUtil.unfold(body), raw);
+        return parser.parse(name, body, raw);
     }
 }



Mime
View raw message