commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons-sandbox/email/src/java/org/apache/commons/mail HtmlEmail.java
Date Mon, 16 Dec 2002 15:06:41 GMT
dion        2002/12/16 07:06:41

  Modified:    email/src/java/org/apache/commons/mail HtmlEmail.java
  Log:
  - Completely untested change to get commons-email working again.
  - Note: build.xml is a waste of space
  - Note: The maven project.xml is also a waste of space.
  - Note: util can't be built with any of the ant or maven build files
  - Note: I wonder who actually uses this
  
  Revision  Changes    Path
  1.2       +3 -3      jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/HtmlEmail.java
  
  Index: HtmlEmail.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/HtmlEmail.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HtmlEmail.java	9 Aug 2001 22:50:48 -0000	1.1
  +++ HtmlEmail.java	16 Dec 2002 15:06:41 -0000	1.2
  @@ -63,7 +63,7 @@
   import javax.mail.Multipart;
   import javax.mail.internet.MimeBodyPart;
   import javax.mail.internet.MimeMultipart;
  -import org.apache.commons.util.GenerateUniqueId;
  +import org.apache.commons.util.identifer.StringAlphanumeric10IdentifierFactory;
   
   /**
    * An HTML multipart email.
  @@ -205,7 +205,7 @@
           mbp.setDataHandler (new DataHandler(new URLDataSource(url)));
           mbp.setFileName(name);
           mbp.setDisposition("inline");
  -        String cid = org.apache.commons.util.GenerateUniqueId.getIdentifier();
  +        String cid = new StringAlphanumeric10IdentifierFactory.nextIdentifer();
           mbp.addHeader("Content-ID", cid);
   
           getHtmlContent().addBodyPart(mbp);
  
  
  

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


Mime
View raw message