james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r885926 - /james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java
Date Tue, 01 Dec 2009 20:54:22 GMT
Author: olegk
Date: Tue Dec  1 20:54:22 2009
New Revision: 885926

URL: http://svn.apache.org/viewvc?rev=885926&view=rev
Log:
MIME4J-141: DefaultFieldParser / DelegatingFieldParser incorrectly reject folded headers as
invalid

Modified:
    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/DelegatingFieldParser.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java?rev=885926&r1=885925&r2=885926&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
Tue Dec  1 20:54:22 2009
@@ -23,6 +23,7 @@
 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;
@@ -48,6 +49,6 @@
     
     public ParsedField parse(final String name, final String body, final ByteSequence raw)
{
         final FieldParser parser = getParser(name);
-        return parser.parse(name, body, raw);
+        return parser.parse(name, MimeUtil.unfold(body), raw);
     }
 }



Mime
View raw message