You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/01/01 14:16:14 UTC

svn commit: r895006 - /james/server/trunk/fetchmail-function/src/main/java/org/apache/james/fetchmail/FetchMail.java

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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org