ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1482963 - /webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEMessage.java
Date Wed, 15 May 2013 17:10:10 GMT
Author: veithen
Date: Wed May 15 17:10:10 2013
New Revision: 1482963

URL: http://svn.apache.org/r1482963
Log:
Adapted to change in MIME4J.

Modified:
    webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEMessage.java

Modified: webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEMessage.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEMessage.java?rev=1482963&r1=1482962&r2=1482963&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEMessage.java
(original)
+++ webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEMessage.java
Wed May 15 17:10:10 2013
@@ -54,6 +54,8 @@ import org.apache.james.mime4j.stream.Re
 class MIMEMessage extends AttachmentsDelegate {
     private static final Log log = LogFactory.getLog(MIMEMessage.class);
 
+    private static final MimeConfig mimeConfig = MimeConfig.custom().setStrictParsing(true).build();
+    
     /** <code>ContentType</code> of the MIME message */
     private final ContentType contentType;
     
@@ -124,9 +126,7 @@ class MIMEMessage extends AttachmentsDel
             filterIS = null;
         }
         
-        MimeConfig config = new MimeConfig();
-        config.setStrictParsing(true);
-        parser = new MimeTokenStream(config);
+        parser = new MimeTokenStream(mimeConfig);
         parser.setRecursionMode(RecursionMode.M_NO_RECURSE);
         parser.parseHeadless(is, contentTypeString);
         



Mime
View raw message