Author: bago
Date: Wed May 24 10:52:48 2006
New Revision: 409216

URL: http://svn.apache.org/viewvc?rev=409216&view=rev
Log:
Remove inbox "root" mailrepository selection check (JAMES-507).
I'm confident this can be removed safely: the only problem is that now the 
check for a misconfiguration is delayed to the creation of the first inbox.

Modified:
    james/server/trunk/src/java/org/apache/james/James.java

Modified: james/server/trunk/src/java/org/apache/james/James.java
URL: 
http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/James.java?rev=409216&r1=409215&r2=409216&view=diff
==============================================================================
--- james/server/trunk/src/java/org/apache/james/James.java (original)
+++ james/server/trunk/src/java/org/apache/james/James.java Wed May 24 10:52:48 
2006
@@ -352,17 +352,7 @@
         compMgr.put( UsersRepository.ROLE, localusers);
         getLogger().info("Local users repository opened");
 
-        Configuration inboxConf = conf.getChild("inboxRepository");
-        Configuration inboxRepConf = inboxConf.getChild("repository");
-        // we could delete this block. I didn't remove this because I'm not 
sure
-        // wether we need the "check" of the inbox repository here, or not.
-        try {
-            store.select(inboxRepConf);
-        } catch (Exception e) {
-            getLogger().error("Cannot open private MailRepository");
-            throw e;
-        }
-        inboxRootURL = inboxRepConf.getAttribute("destinationURL");
+        inboxRootURL = 
conf.getChild("inboxRepository").getChild("repository").getAttribute("destinationURL");
 
         getLogger().info("Private Repository LocalInbox opened");
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to