geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r670657 - /geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimeMessage.java
Date Mon, 23 Jun 2008 15:47:05 GMT
Author: rickmcguire
Date: Mon Jun 23 08:47:04 2008
New Revision: 670657

URL: http://svn.apache.org/viewvc?rev=670657&view=rev
Log:
GERONIMO-4151 MIME-Version header gets added in different order from Sun implementation.


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

Modified: geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimeMessage.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimeMessage.java?rev=670657&r1=670656&r2=670657&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimeMessage.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/MimeMessage.java
Mon Jun 23 08:47:04 2008
@@ -1354,9 +1354,6 @@
      */
     protected void updateHeaders() throws MessagingException {
 
-        // make sure we set the MIME version
-        setHeader("MIME-Version", "1.0");
-
         DataHandler handler = getDataHandler();
 
         try {
@@ -1433,6 +1430,8 @@
                 setHeader("Content-Type", type); 
             }
 
+            // make sure we set the MIME version
+            setHeader("MIME-Version", "1.0");
             // new javamail 1.4 requirement.
             updateMessageID();
 



Mime
View raw message