Author: norman
Date: Fri Jan  1 13:16:13 2010
New Revision: 895006

URL: http://svn.apache.org/viewvc?rev=895006&view=rev
Log:
Make separate properties instance per Fetchmail instance (JAMES-942). Thx to 
Ralph Holland for the patch 

Modified:
    
james/server/trunk/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java

Modified: 
james/server/trunk/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java
URL: 
http://svn.apache.org/viewvc/james/server/trunk/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java?rev=895006&r1=895005&r2=895006&view=diff
==============================================================================
--- 
james/server/trunk/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java
 (original)
+++ 
james/server/trunk/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java
 Fri Jan  1 13:16:13 2010
@@ -944,7 +944,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