james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r995332 - /james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java
Date Thu, 09 Sep 2010 06:42:11 GMT
Author: norman
Date: Thu Sep  9 06:42:11 2010
New Revision: 995332

URL: http://svn.apache.org/viewvc?rev=995332&view=rev
Log:
User MailboxPath helper method to access inbox

Modified:
    james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java

Modified: james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java
URL: http://svn.apache.org/viewvc/james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java?rev=995332&r1=995331&r2=995332&view=diff
==============================================================================
--- james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java
(original)
+++ james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/PassCmdHandler.java
Thu Sep  9 06:42:11 2010
@@ -28,7 +28,6 @@ import javax.annotation.Resource;
 import org.apache.james.mailbox.BadCredentialsException;
 import org.apache.james.mailbox.MailboxPath;
 import org.apache.james.mailbox.MessageManager;
-import org.apache.james.mailbox.MailboxConstants;
 import org.apache.james.mailbox.MailboxManager;
 import org.apache.james.mailbox.MailboxSession;
 import org.apache.james.mailbox.MailboxException;
@@ -63,7 +62,11 @@ public class PassCmdHandler extends Rset
             String passArg = parameters;
             try {
                 MailboxSession mSession = mailboxManager.login(session.getUser(), passArg,
session.getLogger());
-                MailboxPath mailboxPath = new MailboxPath(MailboxConstants.USER_NAMESPACE,
session.getUser(), "INBOX");
+                
+                // explicit call start processing because it was not stored before in the
session
+                mailboxManager.startProcessingRequest(mSession);
+                
+                MailboxPath mailboxPath = MailboxPath.inbox(session.getUser());
                 
                 // check if mailbox exists.. if not just create it
                 if (mailboxManager.mailboxExists(mailboxPath, mSession) == false) {



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