Author: norman
Date: Fri Jan  1 13:17:37 2010
New Revision: 895007

URL: http://svn.apache.org/viewvc?rev=895007&view=rev
Log:
Copy over fix for JAMES-942

Modified:
    
james/server/sandbox/active/pure_spring_deployment/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java

Modified: 
james/server/sandbox/active/pure_spring_deployment/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java
URL: 
http://svn.apache.org/viewvc/james/server/sandbox/active/pure_spring_deployment/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java?rev=895007&r1=895006&r2=895007&view=diff
==============================================================================
--- 
james/server/sandbox/active/pure_spring_deployment/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java
 (original)
+++ 
james/server/sandbox/active/pure_spring_deployment/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java
 Fri Jan  1 13:17:37 2010
@@ -936,7 +936,10 @@
      */
     protected Session computeSession()
     {
-        return Session.getInstance(System.getProperties());
+        // Make separate properties instance so the
+        // fetchmail.xml <javaMailProperties> can override the
+         // property values without interfering with other fetchmail instances
+        return Session.getInstance( new Properties( System.getProperties()) ); 
    
     }
     
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to