james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1142478 - /james/server/trunk/mailbox-adapter/src/main/java/org/apache/james/adapter/mailbox/maildir/MaildirStoreUtil.java
Date Sun, 03 Jul 2011 18:58:03 GMT
Author: norman
Date: Sun Jul  3 18:58:02 2011
New Revision: 1142478

URL: http://svn.apache.org/viewvc?rev=1142478&view=rev
Log:
Upgrade to mailbox 0.3. See JAMES-1288

Modified:
    james/server/trunk/mailbox-adapter/src/main/java/org/apache/james/adapter/mailbox/maildir/MaildirStoreUtil.java

Modified: james/server/trunk/mailbox-adapter/src/main/java/org/apache/james/adapter/mailbox/maildir/MaildirStoreUtil.java
URL: http://svn.apache.org/viewvc/james/server/trunk/mailbox-adapter/src/main/java/org/apache/james/adapter/mailbox/maildir/MaildirStoreUtil.java?rev=1142478&r1=1142477&r2=1142478&view=diff
==============================================================================
--- james/server/trunk/mailbox-adapter/src/main/java/org/apache/james/adapter/mailbox/maildir/MaildirStoreUtil.java
(original)
+++ james/server/trunk/mailbox-adapter/src/main/java/org/apache/james/adapter/mailbox/maildir/MaildirStoreUtil.java
Sun Jul  3 18:58:02 2011
@@ -21,6 +21,7 @@ package org.apache.james.adapter.mailbox
 import java.io.FileNotFoundException;
 
 import org.apache.james.filesystem.api.FileSystem;
+import org.apache.james.mailbox.MailboxPathLocker;
 import org.apache.james.mailbox.maildir.MaildirStore;
 import org.apache.james.user.api.UsersRepository;
 import org.apache.james.user.api.UsersRepositoryException;
@@ -36,11 +37,12 @@ public class MaildirStoreUtil {
      * @param fs
      * @param mailServer
      * @param rootURL
+     * @param locker
      * @return store
      * @throws FileNotFoundException
      * @throws UsersRepositoryException
      */
-    public static MaildirStore create(FileSystem fs, UsersRepository usersRepos, String rootURL)
throws FileNotFoundException, UsersRepositoryException {
+    public static MaildirStore create(FileSystem fs, UsersRepository usersRepos, String rootURL,
MailboxPathLocker locker) throws FileNotFoundException, UsersRepositoryException {
         StringBuffer root = new StringBuffer();
         root.append(fs.getFile(rootURL).getAbsolutePath());
         if (usersRepos.supportVirtualHosting()) {
@@ -49,6 +51,6 @@ public class MaildirStoreUtil {
             root.append("/").append(MaildirStore.PATH_USER).append("/");
         }
 
-        return new MaildirStore(root.toString());
+        return new MaildirStore(root.toString(), locker);
     }
 }



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