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 2006/06/08 07:50:03 UTC
svn commit: r412667 -
/james/server/trunk/src/java/org/apache/james/James.java
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