james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r895516 - /james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java
Date Mon, 04 Jan 2010 00:23:14 GMT
Author: bago
Date: Mon Jan  4 00:23:13 2010
New Revision: 895516

URL: http://svn.apache.org/viewvc?rev=895516&view=rev
Log:
Make sure MimeEntity use the "monitoring" version of QuotedPrintable/Base64 decoders. (MIME4J-156)

Modified:
    james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java

Modified: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java?rev=895516&r1=895515&r2=895516&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java
(original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java
Mon Jan  4 00:23:13 2010
@@ -225,9 +225,9 @@
     private InputStream decodedStream(InputStream instream) {
         String transferEncoding = body.getTransferEncoding();
         if (MimeUtil.isBase64Encoding(transferEncoding)) {
-            instream = new Base64InputStream(instream);                    
+            instream = new Base64InputStream(instream, monitor);                    
         } else if (MimeUtil.isQuotedPrintableEncoded(transferEncoding)) {
-            instream = new QuotedPrintableInputStream(instream);
+            instream = new QuotedPrintableInputStream(instream, monitor);
         }
         return instream;
     }



Mime
View raw message