Author: eric
Date: Thu Jan 19 12:53:39 2012
New Revision: 1233330

URL: http://svn.apache.org/viewvc?rev=1233330&view=rev
Log:
MessageRange all should end on MAX_LONG, NOT_A_UID should be long (IMAP-350)

Modified:
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageRange.java

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageRange.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageRange.java?rev=1233330&r1=1233329&r2=1233330&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageRange.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageRange.java
 Thu Jan 19 12:53:39 2012
@@ -43,8 +43,9 @@ public class MessageRange implements Ite
         RANGE
     }
 
-    public static final int NOT_A_UID = -1;
+    public static final long NOT_A_UID = -1;
 
+    public static final long MAX_UID = Long.MAX_VALUE;
 
     /**
      * Constructs a range consisting of a single message only.
@@ -64,7 +65,7 @@ public class MessageRange implements Ite
      * @return not null
      */
     public static MessageRange all() {
-        final MessageRange result = new MessageRange(Type.ALL, NOT_A_UID, 
NOT_A_UID);
+        final MessageRange result = new MessageRange(Type.ALL, NOT_A_UID, 
MAX_UID);
         return result;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to