james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r757893 - /james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java
Date Tue, 24 Mar 2009 16:43:38 GMT
Author: rdonkin
Date: Tue Mar 24 16:43:36 2009
New Revision: 757893

URL: http://svn.apache.org/viewvc?rev=757893&view=rev
Log:
Create INBOX if it does not already exist

Modified:
    james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java

Modified: james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java
URL: http://svn.apache.org/viewvc/james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java?rev=757893&r1=757892&r2=757893&view=diff
==============================================================================
--- james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java
(original)
+++ james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java
Tue Mar 24 16:43:36 2009
@@ -180,6 +180,9 @@
         final MailboxSession session = mailboxManager.createSession(new AvalonLogger(getLogger()));
         try
         {
+            if ("INBOX".equalsIgnoreCase(destination) && !(mailboxManager.mailboxExists(name)))
{
+                mailboxManager.createMailbox(name);
+            }
             final Mailbox mailbox = mailboxManager.getMailbox(name);
             
             if (mailbox == null) {



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