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 2011/10/05 08:34:15 UTC

svn commit: r1179061 - /james/server/trunk/mailets/src/main/java/org/apache/james/transport/mailets/SieveMailet.java

Author: norman
Date: Wed Oct  5 06:34:15 2011
New Revision: 1179061

URL: http://svn.apache.org/viewvc?rev=1179061&view=rev
Log:
Use the MailboxSession to construct the MailboxPath for the user. See JAMES-1326

Modified:
    james/server/trunk/mailets/src/main/java/org/apache/james/transport/mailets/SieveMailet.java

Modified: james/server/trunk/mailets/src/main/java/org/apache/james/transport/mailets/SieveMailet.java
URL: http://svn.apache.org/viewvc/james/server/trunk/mailets/src/main/java/org/apache/james/transport/mailets/SieveMailet.java?rev=1179061&r1=1179060&r2=1179061&view=diff
==============================================================================
--- james/server/trunk/mailets/src/main/java/org/apache/james/transport/mailets/SieveMailet.java (original)
+++ james/server/trunk/mailets/src/main/java/org/apache/james/transport/mailets/SieveMailet.java Wed Oct  5 06:34:15 2011
@@ -27,7 +27,6 @@ import javax.mail.internet.MimeMessage;
 
 import org.apache.james.core.MimeMessageInputStream;
 import org.apache.james.mailbox.BadCredentialsException;
-import org.apache.james.mailbox.MailboxConstants;
 import org.apache.james.mailbox.MailboxException;
 import org.apache.james.mailbox.MailboxManager;
 import org.apache.james.mailbox.MailboxPath;
@@ -174,7 +173,10 @@ public class SieveMailet extends SieveMa
                     }
                     if (destination.startsWith(session.getPathDelimiter() + ""))
                         destination = destination.substring(1);
-                    final MailboxPath path = new MailboxPath(MailboxConstants.USER_NAMESPACE, user, destination);
+                    
+                    // Use the MailboxSession to construct the MailboxPath.
+                    // See JAMES-1326
+                    final MailboxPath path = MailboxPath.inbox(session);
                     try {
                         if ("INBOX".equalsIgnoreCase(destination) && !(mailboxManager.mailboxExists(path, session))) {
                             mailboxManager.createMailbox(path, session);



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org