james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r412667 - /james/server/trunk/src/java/org/apache/james/James.java
Date Thu, 08 Jun 2006 05:50:03 GMT
Author: norman
Date: Wed Jun  7 22:50:02 2006
New Revision: 412667

URL: http://svn.apache.org/viewvc?rev=412667&view=rev
Log:
Modify the inboxRepository config to allow for passing options to the MailRepository.Thanks
to Joachim Draeger. See JAMES-523 

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=412667&r1=412666&r2=412667&view=diff
==============================================================================
--- james/server/trunk/src/java/org/apache/james/James.java (original)
+++ james/server/trunk/src/java/org/apache/james/James.java Wed Jun  7 22:50:02 2006
@@ -526,11 +526,12 @@
                         .append(userName)
                         .append("/");
             String destination = destinationBuffer.toString();
-            DefaultConfiguration mboxConf
-                = new DefaultConfiguration("repository", "generated:AvalonFileRepository.compose()");
-            mboxConf.setAttribute("destinationURL", destination);
-            mboxConf.setAttribute("type", "MAIL");
             try {
+                // Copy the inboxRepository configuration and modify the destinationURL
+                DefaultConfiguration mboxConf = new DefaultConfiguration(conf
+                        .getChild("inboxRepository").getChild("repository"));
+                mboxConf.setAttribute("destinationURL", destination);
+
                 userInbox = (MailRepository) store.select(mboxConf);
                 if (userInbox!=null) {
                     mailboxes.put(userName, userInbox);



---------------------------------------------------------------------
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