james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r883050 - /james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
Date Sun, 22 Nov 2009 09:14:01 GMT
Author: norman
Date: Sun Nov 22 09:13:59 2009
New Revision: 883050

URL: http://svn.apache.org/viewvc?rev=883050&view=rev
Log:
Fix configuration of Properties.. Thx for Manuel for spotting it

Modified:
    james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java

Modified: james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java?rev=883050&r1=883049&r2=883050&view=diff
==============================================================================
--- james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
(original)
+++ james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
Sun Nov 22 09:13:59 2009
@@ -42,7 +42,6 @@
 
     public static final String DEMO_MODE = "demo-mode";
     
-    private Properties props = new Properties();
     private Session session;
     protected Log logger;
     private final Map<String,CachedIMAPStore> pool = new HashMap<String ,CachedIMAPStore>();
@@ -56,6 +55,12 @@
         this.address = address;
         this.port = port;
         this.useSSL = useSSL;
+      
+        session = sessionProvider.get();
+        if (logger.isDebugEnabled()) {
+            session.setDebug(true);
+        }
+        Properties props = session.getProperties();
         
         props.setProperty("mail.mime.decodetext.strict", "false");
         if (useSSL) {
@@ -67,10 +72,6 @@
             props.setProperty("mail.imap.connectionpooltimeout", timeout + "");
 
         }
-        session = sessionProvider.get();
-        if (logger.isDebugEnabled()) {
-            session.setDebug(true);
-        }
         System.setProperty("mail.mime.decodetext.strict", "false");
         
       



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


Mime
View raw message