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: [email protected]
For additional commands, e-mail: [email protected]