james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r731036 - in /james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor: base/AbstractMailboxAwareProcessor.java imap4rev1/LoginProcessor.java
Date Sat, 03 Jan 2009 17:41:56 GMT
Author: rdonkin
Date: Sat Jan  3 09:41:55 2009
New Revision: 731036

URL: http://svn.apache.org/viewvc?rev=731036&view=rev
Log:
Create INBOX on login

Modified:
    james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/AbstractMailboxAwareProcessor.java
    james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/imap4rev1/LoginProcessor.java

Modified: james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/AbstractMailboxAwareProcessor.java
URL: http://svn.apache.org/viewvc/james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/AbstractMailboxAwareProcessor.java?rev=731036&r1=731035&r2=731036&view=diff
==============================================================================
--- james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/AbstractMailboxAwareProcessor.java
(original)
+++ james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/AbstractMailboxAwareProcessor.java
Sat Jan  3 09:41:55 2009
@@ -324,8 +324,6 @@
             //
             final String user = ImapSessionUtils.getUserName(session);
             if (user != null) {
-                result.getMailbox(buildFullName(MailboxManager.INBOX, user),
-                        true);
                 // TODO: reconsider decision not to sunchronise
                 // TODO: mailbox creation is ATM an expensive operation
                 // TODO: so caching is required
@@ -337,8 +335,7 @@
                         ImapSessionUtils.MAILBOX_MANAGER_ATTRIBUTE_SESSION_KEY,
                         result);
                 if (ImapSessionUtils.getMailboxSession(session) == null) {
-                    final MailboxSession mailboxSession = (MailboxSession) result
-                            .createSession();
+                    final MailboxSession mailboxSession = (MailboxSession) result.createSession();
                     ImapSessionUtils.setMailboxSession(session, mailboxSession);
                 }
             }

Modified: james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/imap4rev1/LoginProcessor.java
URL: http://svn.apache.org/viewvc/james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/imap4rev1/LoginProcessor.java?rev=731036&r1=731035&r2=731036&view=diff
==============================================================================
--- james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/imap4rev1/LoginProcessor.java
(original)
+++ james/protocols/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/imap4rev1/LoginProcessor.java
Sat Jan  3 09:41:55 2009
@@ -63,6 +63,7 @@
             if (mailboxManager.isAuthentic(userid, passwd)) {
                 session.authenticated();
                 ImapSessionUtils.setUserName(session, userid);
+                getMailboxManager(session).getMailbox(buildFullName(session, MailboxManager.INBOX),
true);
                 okComplete(command, tag, responder);
             } else {
                 final Integer currentNumberOfFailures = (Integer) session



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