axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsi...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/attachments MimeUtils.java
Date Sun, 04 Aug 2002 02:08:49 GMT
rsitze      2002/08/03 19:08:49

  Modified:    java/src/org/apache/axis/attachments MimeUtils.java
  Log:
  Returned to original state... This is counter to the strategy used
  for the rest of the properties, but it's odd-man-out until someone
  can think of something better.
  
  Revision  Changes    Path
  1.29      +7 -2      xml-axis/java/src/org/apache/axis/attachments/MimeUtils.java
  
  Index: MimeUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/attachments/MimeUtils.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- MimeUtils.java	2 Aug 2002 17:27:43 -0000	1.28
  +++ MimeUtils.java	4 Aug 2002 02:08:49 -0000	1.29
  @@ -215,6 +215,11 @@
   
       /**
        * This routine will the multi part type and write it out to a stream.
  +     * 
  +     * <p>Note that is does *NOT* pass <code>AxisProperties</code>
  +     * to <code>javax.mail.Session.getInstance</code>, but instead
  +     * the System properties.
  +     * </p>
        * @param os is the output stream to write to.
        * @param the multipart that needs to be written to the stream.
        * @param mp
  @@ -223,12 +228,12 @@
               java.io.OutputStream os, javax.mail.internet.MimeMultipart mp) {
   
           try {
  -            AxisProperties.setProperty(
  +            System.setProperty(
                       "mail.smtp.host",
                       "localhost");    // this is a bogus since we will never mail it.
   
               javax.mail.Session session =
  -                    javax.mail.Session.getInstance(AxisProperties.getProperties(), null);
  +                    javax.mail.Session.getInstance(System.getProperties(), null);
               javax.mail.internet.MimeMessage message =
                       new javax.mail.internet.MimeMessage(session);
   
  
  
  

Mime
View raw message