james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r746242 - /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SimpleContentHandler.java
Date Fri, 20 Feb 2009 14:04:27 GMT
Author: mwiederkehr
Date: Fri Feb 20 14:04:27 2009
New Revision: 746242

URL: http://svn.apache.org/viewvc?rev=746242&view=rev
Log:
MIME4J-118: SimpleContentHandler parses Field to keep the previous behavior

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SimpleContentHandler.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SimpleContentHandler.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SimpleContentHandler.java?rev=746242&r1=746241&r2=746242&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SimpleContentHandler.java
(original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SimpleContentHandler.java
Fri Feb 20 14:04:27 2009
@@ -23,6 +23,7 @@
 import org.apache.james.mime4j.codec.Base64InputStream;
 import org.apache.james.mime4j.codec.QuotedPrintableInputStream;
 import org.apache.james.mime4j.descriptor.BodyDescriptor;
+import org.apache.james.mime4j.field.AbstractField;
 import org.apache.james.mime4j.parser.AbstractContentHandler;
 import org.apache.james.mime4j.parser.Field;
 import org.apache.james.mime4j.util.MimeUtil;
@@ -76,7 +77,8 @@
      */
     @Override
     public final void field(Field field) throws MimeException {
-        currHeader.addField(field);
+        Field parsedField = AbstractField.parse(field.getRaw()); 
+        currHeader.addField(parsedField);
     }
 
     /**



Mime
View raw message