james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r984771 - /james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java
Date Thu, 12 Aug 2010 13:46:16 GMT
Author: norman
Date: Thu Aug 12 13:46:16 2010
New Revision: 984771

URL: http://svn.apache.org/viewvc?rev=984771&view=rev
Log:
Only use the username for generating the MailboxPath if its not a private namespace (IMAP-177)

Modified:
    james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java

Modified: james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java?rev=984771&r1=984770&r2=984771&view=diff
==============================================================================
--- james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java
(original)
+++ james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractMailboxProcessor.java
Thu Aug 12 13:46:16 2010
@@ -329,7 +329,12 @@ abstract public class AbstractMailboxPro
             namespace = MailboxConstants.USER_NAMESPACE;
             name = mailboxName;
         }
-        final String user = ImapSessionUtils.getUserName(session);
+        String user = null;
+        // we only 
+        if (namespace.equals(MailboxConstants.USER_NAMESPACE)) {
+            user = ImapSessionUtils.getUserName(session);
+        }
+
         return new MailboxPath(namespace, user, name);
     }
     
@@ -338,7 +343,7 @@ abstract public class AbstractMailboxPro
      * @param mailboxPath
      * @return
      */
-    public String joinMailboxPath(MailboxPath mailboxPath) {
+    private String joinMailboxPath(MailboxPath mailboxPath) {
         StringBuffer sb = new StringBuffer("");
         if (mailboxPath.getNamespace() != null && !mailboxPath.getNamespace().equals(""))
{
             sb.append(mailboxPath.getNamespace());



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