james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r773250 - in /james/imap/trunk: api/src/main/java/org/apache/james/imap/api/message/response/ processor/src/main/java/org/apache/james/imap/processor/ seda/src/test/resources/org/apache/james/imap/scripts/
Date Sat, 09 May 2009 16:44:01 GMT
Author: rdonkin
Date: Sat May  9 16:43:59 2009
New Revision: 773250

URL: http://svn.apache.org/viewvc?rev=773250&view=rev
Log:
IMAP-66 SELECT should UIDNEXT as per RFC3501 https://issues.apache.org/jira/browse/IMAP-66

Modified:
    james/imap/trunk/api/src/main/java/org/apache/james/imap/api/message/response/StatusResponse.java
    james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractSelectionProcessor.java
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExamineInbox.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExpunge.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendSelectInbox.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendToSelected.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/BodyPartialFetch.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ComplexMail.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentDeleteSelected.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExistsResponse.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExpungeResponse.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentFetchResponse.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelected.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelectedSub.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Copy.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExamineEmpty.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExpungeBasics.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFields.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFieldsNot.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartAlternative.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartBodyStructure.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixed.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixedComplex.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchRFC822Mixed.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchSimpleBodyStructure.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureComplex.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureEmbedded.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/HeaderPartialFetch.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/MimePartialFetch.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Rename.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/RenameSelected.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchAtoms.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchCombinations.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectAppend.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectEmpty.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectInbox.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectUnseen.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectedStateSetup.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/TextPartialFetch.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchAtoms.test
    james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchCombinations.test

Modified: james/imap/trunk/api/src/main/java/org/apache/james/imap/api/message/response/StatusResponse.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/api/src/main/java/org/apache/james/imap/api/message/response/StatusResponse.java?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/api/src/main/java/org/apache/james/imap/api/message/response/StatusResponse.java (original)
+++ james/imap/trunk/api/src/main/java/org/apache/james/imap/api/message/response/StatusResponse.java Sat May  9 16:43:59 2009
@@ -254,7 +254,7 @@
          *            positive non-zero integer
          * @return <code>ResponseCode</code>, not null
          */
-        public static final ResponseCode uidNext(int uid) {
+        public static final ResponseCode uidNext(long uid) {
             return new ResponseCode("UIDNEXT", uid);
         }
 

Modified: james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractSelectionProcessor.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractSelectionProcessor.java?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractSelectionProcessor.java (original)
+++ james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/AbstractSelectionProcessor.java Sat May  9 16:43:59 2009
@@ -106,9 +106,19 @@
         uidValidity(responder, metaData);
         unseen(responder, mailbox, mailboxSession, selected);
         permanentFlags(responder, metaData);
+        uidNext(responder, mailboxSession, mailbox);
         taggedOk(responder, tag, command, mailbox);
     }
 
+    private void uidNext(final Responder responder,
+            final MailboxSession mailboxSession, final Mailbox mailbox)
+    throws MailboxException {
+        final long uid = mailbox.getUidNext(mailboxSession);
+        final StatusResponse untaggedOk = statusResponseFactory.untaggedOk(
+                HumanReadableTextKey.UNSEEN, ResponseCode.uidNext(uid));
+        responder.respond(untaggedOk);
+    }
+    
     private void taggedOk(final Responder responder, final String tag,
             final ImapCommand command, final Mailbox mailbox) {
         final boolean writeable = mailbox.isWriteable() && !openReadOnly;

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExamineInbox.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExamineInbox.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExamineInbox.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExamineInbox.test Sat May  9 16:43:59 2009
@@ -50,6 +50,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: abcd OK \[READ-ONLY\] EXAMINE completed.
 
 # Try again to ensure that no changes to flags were made.
@@ -60,6 +61,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: abcd OK \[READ-ONLY\] EXAMINE completed.
 
 # Rename the INBOX - this copies all of the messages out

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExpunge.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExpunge.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExpunge.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendExpunge.test Sat May  9 16:43:59 2009
@@ -73,6 +73,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 4\]
 S: A006 OK \[READ-WRITE\] SELECT completed.
 
 C: A109 STORE 1:2 FLAGS.SILENT (\Deleted)

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendSelectInbox.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendSelectInbox.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendSelectInbox.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendSelectInbox.test Sat May  9 16:43:59 2009
@@ -50,6 +50,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: abcd OK \[READ-WRITE\] SELECT completed.
 
 # Try again to ensure that no changes to flags were made.
@@ -60,6 +61,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: abcd OK \[READ-WRITE\] SELECT completed.
 
 # Closing the inbox will cause the messages to be silently expunged

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendToSelected.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendToSelected.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendToSelected.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/AppendToSelected.test Sat May  9 16:43:59 2009
@@ -41,6 +41,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: a7 OK \[READ-WRITE\] SELECT completed.
 
 C: A007 APPEND appendBox (\Seen) "17-Jul-1996 02:44:25 -0700" {310+}

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/BodyPartialFetch.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/BodyPartialFetch.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/BodyPartialFetch.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/BodyPartialFetch.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {765+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -70,6 +71,7 @@
 S: \* OK \[UIDVALIDITY (.)*\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: A5 OK \[READ-WRITE\] SELECT completed\.
 C: A6 FETCH 1 (BODY[]<0.10>)
 S: \* 1 FETCH \(FLAGS \(\\Recent \\Seen\) BODY\[\]<0> \{10\}

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ComplexMail.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ComplexMail.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ComplexMail.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ComplexMail.test Sat May  9 16:43:59 2009
@@ -28,6 +28,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A20 APPEND testmailbox {14862+}
 C: Return-Path: <robertburrelldonkin@gmail.com>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentDeleteSelected.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentDeleteSelected.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentDeleteSelected.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentDeleteSelected.test Sat May  9 16:43:59 2009
@@ -46,6 +46,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: 1c OK \[READ-WRITE\] SELECT completed.
 
 

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExistsResponse.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExistsResponse.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExistsResponse.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExistsResponse.test Sat May  9 16:43:59 2009
@@ -33,6 +33,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: 2a OK \[READ-WRITE\] SELECT completed.
 
 SESSION: 3
@@ -42,6 +43,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: 3a OK \[READ-WRITE\] SELECT completed.
 
 SESSION: 4
@@ -51,6 +53,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: 4a OK \[READ-WRITE\] SELECT completed.
 
 SESSION: 1

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExpungeResponse.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExpungeResponse.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExpungeResponse.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentExpungeResponse.test Sat May  9 16:43:59 2009
@@ -79,6 +79,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\] Message 1 is the first unseen
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 5\]
 S: 1e OK \[READ-WRITE\] SELECT completed
 
 SESSION: 2
@@ -89,6 +90,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\] Message 1 is the first unseen
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 5\]
 S: 2a OK \[READ-WRITE\] SELECT completed
 
 SESSION: 3
@@ -99,6 +101,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\] Message 1 is the first unseen
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 5\]
 S: 3a OK \[READ-WRITE\] SELECT completed
 
 # Do an expunge with session 1

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentFetchResponse.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentFetchResponse.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentFetchResponse.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentFetchResponse.test Sat May  9 16:43:59 2009
@@ -59,6 +59,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: 1d OK \[READ-WRITE\] SELECT completed.
 
 SESSION: 2
@@ -69,6 +70,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: 2a OK \[READ-WRITE\] SELECT completed.
 
 SESSION: 3
@@ -79,6 +81,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: 3a OK \[READ-WRITE\] SELECT completed.
 
 SESSION: 4
@@ -89,6 +92,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: 4a OK \[READ-WRITE\] SELECT completed.
 
 SESSION: 1

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelected.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelected.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelected.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelected.test Sat May  9 16:43:59 2009
@@ -45,6 +45,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: 1c OK \[READ-WRITE\] SELECT completed.
 
 

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelectedSub.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelectedSub.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelectedSub.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ConcurrentRenameSelectedSub.test Sat May  9 16:43:59 2009
@@ -47,6 +47,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: 1c OK \[READ-WRITE\] SELECT completed.
 
 

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Copy.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Copy.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Copy.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Copy.test Sat May  9 16:43:59 2009
@@ -49,6 +49,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 4\]
 S: a1 OK \[READ-WRITE\] SELECT completed.
 
 C: a1 FETCH 1:4 (FLAGS)

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExamineEmpty.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExamineEmpty.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExamineEmpty.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExamineEmpty.test Sat May  9 16:43:59 2009
@@ -32,6 +32,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: abcd OK \[READ-ONLY\] EXAMINE completed.
 
 C: abcd EXAMINE test.subfolder
@@ -40,6 +41,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: abcd OK \[READ-ONLY\] EXAMINE completed.
 
 C: abcd EXAMINE test1
@@ -48,6 +50,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: abcd OK \[READ-ONLY\] EXAMINE completed.
 
 C: abcd EXAMINE subfolder1

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExpungeBasics.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExpungeBasics.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExpungeBasics.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/ExpungeBasics.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -684,6 +685,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 11\]
 S: A14 OK \[READ-WRITE\] SELECT completed.
 C: A15 STORE 4  FLAGS (\DELETED)
 S: \* 4 FETCH \(FLAGS \(\\Deleted \\Recent\)\)
@@ -707,6 +709,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 11\]
 S: A19 OK \[READ-WRITE\] SELECT completed.
 C: A20 DELETE testmailbox
 S: A20 OK DELETE completed.
\ No newline at end of file

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFields.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFields.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFields.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFields.test Sat May  9 16:43:59 2009
@@ -25,6 +25,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -278,6 +279,7 @@
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 10\]
 S: A13 OK \[READ-WRITE\] SELECT completed\.
 C: A14 FETCH 1:* (BODY.PEEK[])
 S: \* 1 FETCH \(BODY\[\] \{185\}
@@ -582,6 +584,7 @@
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 10\]
 S: A16 OK \[READ-WRITE\] SELECT completed\.
 C: A17 DELETE testmailbox
 S: A17 OK DELETE completed\.
\ No newline at end of file

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFieldsNot.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFieldsNot.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFieldsNot.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchHeaderFieldsNot.test Sat May  9 16:43:59 2009
@@ -25,6 +25,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -278,6 +279,7 @@
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 10\]
 S: A13 OK \[READ-WRITE\] SELECT completed\.
 C: A14 FETCH 1:* (BODY.PEEK[])
 S: \* 1 FETCH \(BODY\[\] \{185\}
@@ -559,6 +561,7 @@
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 10\]
 S: A16 OK \[READ-WRITE\] SELECT completed\.
 C: A17 DELETE testmailbox
 S: A17 OK DELETE completed\.

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartAlternative.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartAlternative.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartAlternative.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartAlternative.test Sat May  9 16:43:59 2009
@@ -25,6 +25,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {666+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -64,6 +65,7 @@
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 2\]
 S: A5 OK \[READ-WRITE\] SELECT completed\.
 C: A6 FETCH 1 (BODY[])
 S: \* 1 FETCH \(FLAGS \(\\Recent \\Seen\) BODY\[\] \{666\}
@@ -152,6 +154,7 @@
 S: \* 1 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 2\]
 S: A12 OK \[READ-WRITE\] SELECT completed\.
 C: A13 DELETE testmailbox
 S: A13 OK DELETE completed\.

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartBodyStructure.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartBodyStructure.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartBodyStructure.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartBodyStructure.test Sat May  9 16:43:59 2009
@@ -6,6 +6,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {8989+}
 C: Return-Path: <robertburrelldonkin@blueyonder.co.uk>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixed.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixed.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixed.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixed.test Sat May  9 16:43:59 2009
@@ -25,6 +25,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {765+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -71,6 +72,7 @@
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 2\]
 S: A5 OK \[READ-WRITE\] SELECT completed\.
 C: A6 FETCH 1 (BODY[])
 S: \* 1 FETCH \(FLAGS \(\\Recent \\Seen\) BODY\[\] \{765\}
@@ -179,6 +181,7 @@
 S: \* 1 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 2\]
 S: A13 OK \[READ-WRITE\] SELECT completed\.
 C: A14 DELETE testmailbox
 S: A14 OK DELETE completed\.

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixedComplex.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixedComplex.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixedComplex.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchMultipartMixedComplex.test Sat May  9 16:43:59 2009
@@ -25,6 +25,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {1767+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -128,6 +129,7 @@
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 2\]
 S: A5 OK \[READ-WRITE\] SELECT completed\.
 C: A6 FETCH 1 (BODY[])
 S: \* 1 FETCH \(FLAGS \(\\Recent \\Seen\) BODY\[\] \{1767\}
@@ -564,6 +566,7 @@
 S: \* 1 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 2\]
 S: A26 OK \[READ-WRITE\] SELECT completed\.
 C: A27 DELETE testmailbox
 S: A27 OK DELETE completed\.

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchRFC822Mixed.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchRFC822Mixed.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchRFC822Mixed.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchRFC822Mixed.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchSimpleBodyStructure.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchSimpleBodyStructure.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchSimpleBodyStructure.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchSimpleBodyStructure.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {318+}
 C: From: "Brian G. Hutton" <brian@example.org>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureComplex.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureComplex.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureComplex.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureComplex.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {14154+}
 C: Return-Path: <robertburrelldonkin@gmail.com>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureEmbedded.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureEmbedded.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureEmbedded.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/FetchStructureEmbedded.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {1767+}
 C: From: Timothy Tayler <timothy@example.org>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/HeaderPartialFetch.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/HeaderPartialFetch.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/HeaderPartialFetch.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/HeaderPartialFetch.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {1767+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -127,6 +128,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: A5 OK \[READ-WRITE\] SELECT completed\.
 C: A6 FETCH 1 (BODY[HEADER]<0.0>)
 S: A6 BAD FETCH failed. Illegal arguments.

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/MimePartialFetch.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/MimePartialFetch.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/MimePartialFetch.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/MimePartialFetch.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {1767+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -127,6 +128,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: A5 OK \[READ-WRITE\] SELECT completed\.
 C: A6 FETCH 1 (BODY[4.1.MIME]<0.0>)
 S: A6 BAD FETCH failed. Illegal arguments.

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Rename.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Rename.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Rename.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/Rename.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -1950,6 +1951,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 3\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 40\]
 S: A100 OK \[READ-WRITE\] SELECT completed\.
 C: A101 FETCH 1:* (FLAGS UID BODY.PEEK[HEADER.FIELDS (DATE FROM TO ORIGINATOR X-LIST)])
 S: \* 1 FETCH \(FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Recent \\Seen\) UID 21 BODY\[HEADER\.FIELDS \(DATE FROM TO ORIGINATOR X-LIST\)\] \{130\}
@@ -2075,6 +2077,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A103 OK \[READ-WRITE\] SELECT completed\.
 C: A104 APPEND other {14996+}
 C: Return-Path: <robertburrelldonkin@gmail.com>
@@ -2338,6 +2341,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A106 OK \[READ-WRITE\] SELECT completed\.
 C: A107 RENAME testmailbox moved
 S: A107 OK RENAME completed\.
@@ -2348,6 +2352,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 3\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 40\]
 S: A108 OK \[READ-WRITE\] SELECT completed\.
 C: A109 FETCH 1:* (FLAGS UID BODY.PEEK[HEADER.FIELDS (DATE FROM TO ORIGINATOR X-LIST)])
 S: \* 1 FETCH \(FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\) UID 21 BODY\[HEADER\.FIELDS \(DATE FROM TO ORIGINATOR X-LIST\)\] \{130\}
@@ -2478,6 +2483,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 3\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 40\]
 S: A113 OK \[READ-WRITE\] SELECT completed\.
 C: A114 SELECT other
 S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
@@ -2486,6 +2492,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: A114 OK \[READ-WRITE\] SELECT completed\.
 C: A115 SELECT base
 S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
@@ -2493,6 +2500,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A115 OK \[READ-WRITE\] SELECT completed\.
 C: A116 SELECT BOGUS
 S: A116 NO (.)*
@@ -2507,6 +2515,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: A119 OK \[READ-WRITE\] SELECT completed\.
 C: A120 SELECT moved
 S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
@@ -2515,6 +2524,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 3\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 40\]
 S: A120 OK \[READ-WRITE\] SELECT completed\.
 C: A121 SELECT other
 S: A121 NO (.)*
@@ -2524,6 +2534,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A122 OK \[READ-WRITE\] SELECT completed\.
 C: A123 SELECT BOGUS
 S: A123 NO (.)*
@@ -2544,6 +2555,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: A129 OK \[READ-WRITE\] SELECT completed\.
 C: A130 SELECT moved
 S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
@@ -2552,6 +2564,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 3\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 40\]
 S: A130 OK \[READ-WRITE\] SELECT completed\.
 C: A131 SELECT other
 S: A131 (.)*
@@ -2561,6 +2574,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A132 OK \[READ-WRITE\] SELECT completed\.
 C: A133 SELECT BOGUS
 S: A133 NO (.)*

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/RenameSelected.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/RenameSelected.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/RenameSelected.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/RenameSelected.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -89,6 +90,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 6\]
 S: A9 OK \[READ-WRITE\] SELECT completed\.
 C: A10 FETCH 1:* (FLAGS UID BODY.PEEK[HEADER.FIELDS (DATE FROM TO ORIGINATOR X-LIST)])
 S: \* 1 FETCH \(FLAGS \(\\Recent\) UID 1 BODY\[HEADER\.FIELDS \(DATE FROM TO ORIGINATOR X-LIST\)\] \{130\}
@@ -220,6 +222,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 6\]
 S: A19 OK \[READ-WRITE\] SELECT completed\.
 C: A20 FETCH 1:* (FLAGS UID BODY.PEEK[HEADER.FIELDS (DATE FROM TO ORIGINATOR X-LIST)])
 S: \* 1 FETCH \(FLAGS \(\\Answered \\Flagged \\Recent\) UID 1 BODY\[HEADER\.FIELDS \(DATE FROM TO ORIGINATOR X-LIST\)\] \{130\}

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchAtoms.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchAtoms.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchAtoms.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchAtoms.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchCombinations.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchCombinations.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchCombinations.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SearchCombinations.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectAppend.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectAppend.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectAppend.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectAppend.test Sat May  9 16:43:59 2009
@@ -25,6 +25,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: 10 OK \[READ-WRITE\] SELECT completed.
 
 C: A003 APPEND selectappend {310}

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectEmpty.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectEmpty.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectEmpty.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectEmpty.test Sat May  9 16:43:59 2009
@@ -32,6 +32,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: abcd OK \[READ-WRITE\] SELECT completed.
 
 C: abcd SELECT test.subfolder
@@ -42,6 +43,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 }
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: abcd OK \[READ-WRITE\] SELECT completed.
 
 C: abcd SELECT test1
@@ -50,6 +52,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: abcd OK \[READ-WRITE\] SELECT completed.
 
 C: abcd SELECT subfolder1

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectInbox.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectInbox.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectInbox.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectInbox.test Sat May  9 16:43:59 2009
@@ -22,4 +22,5 @@
 S: \* \d+ RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: abcd OK \[READ-WRITE\] SELECT completed.

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectUnseen.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectUnseen.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectUnseen.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectUnseen.test Sat May  9 16:43:59 2009
@@ -28,6 +28,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: 10 OK \[READ-WRITE\] SELECT completed.
 
 C: A003 APPEND selectappend {310}
@@ -70,6 +71,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: 20 OK \[READ-WRITE\] SELECT completed.
 
 C: 21 SELECT selectappend
@@ -79,6 +81,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: 21 OK \[READ-WRITE\] SELECT completed.
 
 C: 30 FETCH 1 BODY[]
@@ -101,6 +104,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: 30 OK \[READ-WRITE\] SELECT completed.
 
 C: 40 SELECT selectappend
@@ -110,6 +114,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 2\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 3\]
 S: 40 OK \[READ-WRITE\] SELECT completed.
 
 C: a1 DELETE another

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectedStateSetup.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectedStateSetup.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectedStateSetup.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/SelectedStateSetup.test Sat May  9 16:43:59 2009
@@ -78,5 +78,6 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 5\]
 S: a1 OK \[READ-WRITE\] SELECT completed.
 

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/TextPartialFetch.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/TextPartialFetch.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/TextPartialFetch.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/TextPartialFetch.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {1767+}
 C: From: Timothy Tayler <timothy@example.org>
@@ -127,6 +128,7 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: \* OK \[UNSEEN 1\](.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
+S: \* OK \[UIDNEXT 2\]
 S: A5 OK \[READ-WRITE\] SELECT completed\.
 C: A6 FETCH 1 (BODY[TEXT]<0.0>)
 S: A6 BAD FETCH failed. Illegal arguments.

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchAtoms.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchAtoms.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchAtoms.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchAtoms.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>

Modified: james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchCombinations.test
URL: http://svn.apache.org/viewvc/james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchCombinations.test?rev=773250&r1=773249&r2=773250&view=diff
==============================================================================
--- james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchCombinations.test (original)
+++ james/imap/trunk/seda/src/test/resources/org/apache/james/imap/scripts/UidSearchCombinations.test Sat May  9 16:43:59 2009
@@ -24,6 +24,7 @@
 S: \* 0 RECENT
 S: \* OK \[UIDVALIDITY (.)*
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* OK \[UIDNEXT 1\]
 S: A3 OK \[READ-WRITE\] SELECT completed\.
 C: A4 APPEND testmailbox {185+}
 C: From: Timothy Tayler <timothy@example.org>



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