james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/transport/mailets RemoteDelivery.java
Date Thu, 06 Feb 2003 15:55:32 GMT
serge       2003/02/06 07:55:32

  Modified:    src/java/org/apache/james/transport/mailets
                        RemoteDelivery.java
  Log:
  Removed setting mail.smtp.user property that caused a memory leak (submitted by Jason Webb).
  
  Revision  Changes    Path
  1.42      +1 -4      jakarta-james/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
  
  Index: RemoteDelivery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/RemoteDelivery.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- RemoteDelivery.java	4 Feb 2003 21:05:56 -0000	1.41
  +++ RemoteDelivery.java	6 Feb 2003 15:55:32 -0000	1.42
  @@ -199,13 +199,10 @@
                           URLName urlname = new URLName("smtp://" + outgoingMailServer);
   
                           Properties props = session.getProperties();
  -                        //This was an older version of JavaMail
                           if (mail.getSender() == null) {
  -                            props.put("mail.smtp.user", "<>");
                               props.put("mail.smtp.from", "<>");
                           } else {
                               String sender = mail.getSender().toString();
  -                            props.put("mail.smtp.user", sender);
                               props.put("mail.smtp.from", sender);
                           }
   
  
  
  

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


Mime
View raw message