james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joac...@apache.org
Subject svn commit: r481328 - in /james/server/trunk/src/java/org/apache/james/imapserver/commands: CloseCommand.java ExpungeCommand.java
Date Fri, 01 Dec 2006 18:07:48 GMT
Author: joachim
Date: Fri Dec  1 10:07:47 2006
New Revision: 481328

URL: http://svn.apache.org/viewvc?view=rev&rev=481328
Log:
 fixed wrong constant for MessageResult.NOTHING (no effect)

Modified:
    james/server/trunk/src/java/org/apache/james/imapserver/commands/CloseCommand.java
    james/server/trunk/src/java/org/apache/james/imapserver/commands/ExpungeCommand.java

Modified: james/server/trunk/src/java/org/apache/james/imapserver/commands/CloseCommand.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/imapserver/commands/CloseCommand.java?view=diff&rev=481328&r1=481327&r2=481328
==============================================================================
--- james/server/trunk/src/java/org/apache/james/imapserver/commands/CloseCommand.java (original)
+++ james/server/trunk/src/java/org/apache/james/imapserver/commands/CloseCommand.java Fri
Dec  1 10:07:47 2006
@@ -24,8 +24,8 @@
 import org.apache.james.imapserver.ImapSession;
 import org.apache.james.imapserver.ProtocolException;
 import org.apache.james.imapserver.store.MailboxException;
-import org.apache.james.mailboxmanager.GeneralMessageSet;
 import org.apache.james.mailboxmanager.MailboxManagerException;
+import org.apache.james.mailboxmanager.MessageResult;
 import org.apache.james.mailboxmanager.impl.GeneralMessageSetImpl;
 import org.apache.james.mailboxmanager.mailbox.ImapMailboxSession;
 
@@ -49,7 +49,7 @@
         ImapMailboxSession mailbox = session.getSelected().getMailbox();
         if ( session.getSelected().getMailbox().isWriteable() ) {
             try {
-                mailbox.expunge(GeneralMessageSetImpl.all(),GeneralMessageSet.TYPE_NONE);
+                mailbox.expunge(GeneralMessageSetImpl.all(),MessageResult.NOTHING);
             } catch (MailboxManagerException e) {
                throw new MailboxException(e);
             }

Modified: james/server/trunk/src/java/org/apache/james/imapserver/commands/ExpungeCommand.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/imapserver/commands/ExpungeCommand.java?view=diff&rev=481328&r1=481327&r2=481328
==============================================================================
--- james/server/trunk/src/java/org/apache/james/imapserver/commands/ExpungeCommand.java (original)
+++ james/server/trunk/src/java/org/apache/james/imapserver/commands/ExpungeCommand.java Fri
Dec  1 10:07:47 2006
@@ -24,8 +24,8 @@
 import org.apache.james.imapserver.ImapSession;
 import org.apache.james.imapserver.ProtocolException;
 import org.apache.james.imapserver.store.MailboxException;
-import org.apache.james.mailboxmanager.GeneralMessageSet;
 import org.apache.james.mailboxmanager.MailboxManagerException;
+import org.apache.james.mailboxmanager.MessageResult;
 import org.apache.james.mailboxmanager.impl.GeneralMessageSetImpl;
 import org.apache.james.mailboxmanager.mailbox.ImapMailboxSession;
 
@@ -53,7 +53,7 @@
         }
        
         try {
-            mailbox.expunge(GeneralMessageSetImpl.all(),GeneralMessageSet.TYPE_NONE);
+            mailbox.expunge(GeneralMessageSetImpl.all(),MessageResult.NOTHING);
         } catch (MailboxManagerException e) {
             throw new MailboxException(e);
         }



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