geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r702432 - /geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimePartDataSource.java
Date Tue, 07 Oct 2008 11:18:09 GMT
Author: rickmcguire
Date: Tue Oct  7 04:18:08 2008
New Revision: 702432

URL: http://svn.apache.org/viewvc?rev=702432&view=rev
Log:
GERONIMO-4340 MimePartDataSource incorrectly assumes that MimeMessages are never transfer
encoded

Patch provided by Andreas Velthen

Modified:
    geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimePartDataSource.java

Modified: geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimePartDataSource.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimePartDataSource.java?rev=702432&r1=702431&r2=702432&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimePartDataSource.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimePartDataSource.java
Tue Oct  7 04:18:08 2008
@@ -43,8 +43,7 @@
         try {
             InputStream stream;
             if (part instanceof MimeMessage) {
-                // this never gets encoded, so we can skip other steps 
-                return ((MimeMessage) part).getContentStream();
+                stream = ((MimeMessage) part).getContentStream();
             } else if (part instanceof MimeBodyPart) {
                 stream = ((MimeBodyPart) part).getContentStream();
             } else {



Mime
View raw message