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:17:37 UTC

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

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