james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r773360 - in /james/imap/trunk: mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java processor/src/main/java/org/apache/james/imap/processor/LoginProcessor.java
Date Sun, 10 May 2009 16:28:01 GMT
Author: rdonkin
Date: Sun May 10 16:28:01 2009
New Revision: 773360

URL: http://svn.apache.org/viewvc?rev=773360&view=rev
Log:
INBOX is only used in the login processor, so let's move it there. IMAP-81 https://issues.apache.org/jira/browse/IMAP-81

Modified:
    james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java
    james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/LoginProcessor.java

Modified: james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java?rev=773360&r1=773359&r2=773360&view=diff
==============================================================================
--- james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java
(original)
+++ james/imap/trunk/mailbox/src/main/java/org/apache/james/imap/mailbox/MailboxManager.java
Sun May 10 16:28:01 2009
@@ -62,8 +62,6 @@
 
     public static final char HIERARCHY_DELIMITER = '.';
 
-    public static final String INBOX = "INBOX";
-
     /**
      * <p>
      * Resolves a path for the given user.

Modified: james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/LoginProcessor.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/LoginProcessor.java?rev=773360&r1=773359&r2=773360&view=diff
==============================================================================
--- james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/LoginProcessor.java
(original)
+++ james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/LoginProcessor.java
Sun May 10 16:28:01 2009
@@ -39,6 +39,8 @@
  */
 public class LoginProcessor extends AbstractMailboxProcessor {
 
+    public static final String INBOX = "INBOX";
+    
     private static final String ATTRIBUTE_NUMBER_OF_FAILURES = "org.apache.james.imap.processor.imap4rev1.LoginProcessor.NUMBER_OF_FAILURES";
 
     // TODO: this should be configurable
@@ -67,7 +69,7 @@
                 session.setAttribute(
                         ImapSessionUtils.MAILBOX_SESSION_ATTRIBUTE_SESSION_KEY,
                         mailboxSession);
-                final String inboxName = buildFullName(session, MailboxManager.INBOX);
+                final String inboxName = buildFullName(session, INBOX);
                 if (mailboxManager.mailboxExists(inboxName, mailboxSession)) {
                     session.getLog().debug("INBOX exists. No need to create it.");
                 } else {



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