commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ep...@apache.org
Subject cvs commit: jakarta-commons-sandbox/email/src/java/org/apache/commons/mail MultiPartEmail.java
Date Fri, 29 Oct 2004 10:31:36 GMT
epugh       2004/10/29 03:31:36

  Modified:    email/src/java/org/apache/commons/mail MultiPartEmail.java
  Log:
  Move creation of primaryBodypart to getPrimaryodypart method
  
  Revision  Changes    Path
  1.10      +6 -6      jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/MultiPartEmail.java
  
  Index: MultiPartEmail.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/MultiPartEmail.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- MultiPartEmail.java	27 Oct 2004 09:53:46 -0000	1.9
  +++ MultiPartEmail.java	29 Oct 2004 10:31:35 -0000	1.10
  @@ -126,11 +126,7 @@
           }
   
           container = new MimeMultipart();
  -        super.setContent(container);
  -
  -        // Add the first body part to the message.  The fist body part must be
  -        primaryBodyPart = new MimeBodyPart();
  -        container.addBodyPart(primaryBodyPart);
  +        super.setContent(container);       
   
           initialized = true;
       }
  @@ -384,6 +380,10 @@
           {
               init();
           }
  +        
  +        // Add the first body part to the message.  The fist body part must be
  +        primaryBodyPart = new MimeBodyPart();
  +        container.addBodyPart(primaryBodyPart);
   
           return primaryBodyPart;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message