You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rd...@apache.org on 2008/02/24 22:37:51 UTC

svn commit: r630683 - in /james/server/trunk/experimental-seda-imap-function/src/test: java/org/apache/james/test/functional/ resources/org/apache/james/test/functional/ resources/org/apache/james/test/functional/imap/scripts/

Author: rdonkin
Date: Sun Feb 24 13:37:49 2008
New Revision: 630683

URL: http://svn.apache.org/viewvc?rev=630683&view=rev
Log:
Test for FETCH HEADER.FIELDS.NOT

Added:
    james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/imap/scripts/FetchHeaderFieldsNot.test
    james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-group-addresses.mail
    james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-reply.mail
    james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-resent.mail
    james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-trace.mail
Modified:
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java?rev=630683&r1=630682&r2=630683&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java (original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java Sun Feb 24 13:37:49 2008
@@ -23,7 +23,38 @@
 
     public static final void main(String[] args) throws Exception {
         ScriptBuilder builder = ScriptBuilder.open("localhost", 143);
-        simpleCombinedFetches(builder);
+        notHeaderFetches(builder);
+    }
+    
+    public static void notHeaderFetches(ScriptBuilder builder) throws Exception {
+        builder.login();
+        builder.create();
+        builder.select();
+        builder.append();
+        builder.setFile("wild-example.mail");
+        builder.append();
+        builder.setFile("multipart-alt.mail");
+        builder.append();
+        builder.setFile("multipart-mixed.mail");
+        builder.append();
+        builder.setFile("multipart-mixed-complex.mail");
+        builder.append();
+        builder.setFile("rfc822-hello-world.mail");
+        builder.append();
+        builder.setFile("rfc822-sender.mail");
+        builder.append();
+        builder.setFile("rfc822.mail");
+        builder.append();
+        builder.setFile("rfc822-multiple-addresses.mail");
+        builder.append();
+        builder.select();
+        builder.getFetch().bodyPeekCompleteMessage();
+        builder.fetchAllMessages();
+        builder.resetFetch();
+        builder.getFetch().bodyPeekNotHeaders(ScriptBuilder.Fetch.SELECT_HEADERS);
+        builder.fetchAllMessages();
+        builder.select();
+        builder.quit();
     }
     
     public static void simpleCombinedFetches(ScriptBuilder builder) throws Exception {

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java?rev=630683&r1=630682&r2=630683&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java (original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java Sun Feb 24 13:37:49 2008
@@ -235,6 +235,9 @@
             "X-MAILING-LIST", "X-LOOP", "LIST-ID", "LIST-POST", "MAILING-LIST", "ORIGINATOR", "X-LIST", 
             "SENDER", "RETURN-PATH", "X-BEENTHERE"};
         
+        
+        public static final String[] SELECT_HEADERS = {"DATE", "FROM", "TO", "ORIGINATOR", "X-LIST"};
+        
         private boolean flagsFetch = false;
         private boolean rfc822Size = false;
         private boolean internalDate = false;
@@ -284,8 +287,12 @@
             setBodyPeek(buildBody(true, ""));
         }
         
+        public void bodyPeekNotHeaders(String[] fields) {
+            setBodyPeek(buildBody(true, buildHeaderFields(fields, true)));
+        }
+        
         public void bodyPeekHeaders(String[] fields) {
-            setBodyPeek(buildBody(true, buildHeaderFields(fields)));
+            setBodyPeek(buildBody(true, buildHeaderFields(fields, false)));
         }
         
         public String buildBody(boolean peek, String section) {
@@ -299,8 +306,13 @@
             return result;
         }
         
-        public String buildHeaderFields(String[] fields) {
-            String result = "HEADER.FIELDS (";
+        public String buildHeaderFields(String[] fields, boolean not) {
+            String result;
+            if (not) {
+                result = "HEADER.FIELDS.NOT (";
+            } else {
+                result = "HEADER.FIELDS (";
+            }
             for (int i = 0; i < fields.length; i++) {
                 if (i>0) {
                     result = result + " ";

Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/imap/scripts/FetchHeaderFieldsNot.test
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/imap/scripts/FetchHeaderFieldsNot.test?rev=630683&view=auto
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/imap/scripts/FetchHeaderFieldsNot.test (added)
+++ james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/imap/scripts/FetchHeaderFieldsNot.test Sun Feb 24 13:37:49 2008
@@ -0,0 +1,567 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+C: A2 CREATE testmailbox
+S: A2 OK CREATE completed\.
+C: A3 SELECT testmailbox
+S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* 0 EXISTS
+S: \* 0 RECENT
+S: \* OK \[UIDVALIDITY 1203791562\] UIDs valid
+S: \* OK \[UIDNEXT 1\] Predicted next UID
+S: A3 OK \[READ-WRITE\] SELECT completed\.
+C: A4 APPEND testmailbox {185+}
+C: From: Timothy Tayler <ti...@example.org>
+C: To: Samual Smith <sa...@example.org>
+C: Date: Thu, 14 Feb 2008 12:00:00 +0000 (GMT)
+C: Subject: A Simple Email
+C: 
+C: This is a very simple email.
+C: 
+S: \* 1 EXISTS
+S: \* 1 RECENT
+S: A4 OK Append completed\.
+C: A5 APPEND testmailbox {704+}
+C: Received: by 10.114.81.13 with HTTP; Sat, 2 Feb 2008 05:14:19 -0800 (PST)
+C: Message-ID: <f4...@mail.gmail.com>
+C: Date: Sat, 2 Feb 2008 13:14:19 +0000
+C: From: "Robert Burrell Donkin" <ro...@gmail.com>
+C: To: "James Developers List" <se...@james.apache.org>
+C: Subject: JCR -> trunk ...?
+C: MIME-Version: 1.0
+C: Content-Type: text/plain; charset=ISO-8859-1
+C: Content-Transfer-Encoding: 7bit
+C: Content-Disposition: inline
+C: Delivered-To: robertburrelldonkin@gmail.com
+C: 
+C: i'd like to copy james-jcr into trunk and add some example
+C: configurations. development can continue in the sandbox (or not) and
+C: merged in later (if necessary).
+C: 
+C: any objections?
+C: 
+C: - robert
+S: \* 2 EXISTS
+S: \* 2 RECENT
+S: A5 OK Append completed\.
+C: A6 APPEND testmailbox {668+}
+C: From: Timothy Tayler <ti...@example.org>
+C: To: Samual Smith <sa...@example.org>
+C: Date: Thu, 14 Feb 2008 12:00:00 +0000 (GMT)
+C: Subject: A Multipart Email
+C: Content-Type: multipart/alternative;boundary=1729
+C: 
+C: Start with a preamble
+C: 
+C: --1729
+C: Content-Type: applcation/xhtml+xml
+C: 
+C: <!DOCTYPE html
+C: PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+C: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+C: <html><head><title>Rhubarb</title></head><body>Rhubarb!</body></html>
+C: 
+C: --1729
+C: Content-Type: text/plain; charset=US-ASCII
+C: 
+C: Rhubarb!
+C: 
+C: --1729
+C: Content-Type: text/html; charset=US-ASCII
+C: 
+C: <html><head><title>Rhubarb</title></head><body>Rhubarb!</body></html>
+C: 
+C: --1729--
+C: 
+S: \* 3 EXISTS
+S: \* 3 RECENT
+S: A6 OK Append completed\.
+C: A7 APPEND testmailbox {765+}
+C: From: Timothy Tayler <ti...@example.org>
+C: To: Samual Smith <sa...@example.org>
+C: Date: Thu, 14 Feb 2008 12:00:00 +0000 (GMT)
+C: Subject: A Multipart Email
+C: Content-Type: multipart/mixed;boundary=1729
+C: 
+C: Start with a preamble
+C: 
+C: --1729
+C: Content-Type: text/plain; charset=US-ASCII
+C: 
+C: Rhubarb!
+C: 
+C: --1729
+C: Content-Type: text/html; charset=US-ASCII
+C: 
+C: <html><head><title>Rhubarb</title></head><body>Rhubarb!</body></html>
+C: 
+C: --1729
+C: Content-Type: application/xhtml+xml
+C: 
+C: <!DOCTYPE html
+C: PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+C: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+C: <html><head><title>Rhubarb</title></head><body>Rhubarb!</body></html>
+C: 
+C: --1729
+C: Content-Type: image/jpeg
+C: Content-Transfer-Encoding: base64
+C: 
+C: 1234567890ABCDEFGHIJKLMNOPQ
+C: 
+C: --1729--
+C: 
+S: \* 4 EXISTS
+S: \* 4 RECENT
+S: A7 OK Append completed\.
+C: A8 APPEND testmailbox {1767+}
+C: From: Timothy Tayler <ti...@example.org>
+C: To: Samual Smith <sa...@example.org>
+C: Date: Thu, 14 Feb 2008 12:00:00 +0000 (GMT)
+C: Subject: A Multipart Email
+C: Content-Type: multipart/mixed;boundary=1729
+C: 
+C: Start with a preamble
+C: 
+C: --1729
+C: Content-Type: text/plain; charset=US-ASCII
+C: 
+C: Rhubarb!
+C: 
+C: --1729
+C: Content-Type: application/octet-stream
+C: Content-Transfer-Encoding: base64
+C: 
+C: 987654321AHPLA
+C: 
+C: --1729
+C: Content-Type: message/rfc822
+C: 
+C: From: Timothy Tayler <ti...@example.org>
+C: To: Samual Smith <sa...@example.org>
+C: Date: Thu, 14 Feb 2008 12:00:00 +0000 (GMT)
+C: Subject: A Multipart Alternative Email
+C: Content-Type: multipart/alternative;boundary=42
+C: 
+C: This message has a premable
+C: 
+C: --42
+C: Content-Type: text/plain; charset=US-ASCII
+C: 
+C: Custard!
+C: 
+C: --42
+C: Content-Type: application/octet-stream
+C: 
+C: CUSTARDCUSTARDCUSTARD
+C: 
+C: --42--
+C: 
+C: --1729
+C: Content-Type: multipart/mixed; boundary=4.66920160910299
+C: 
+C: --4.66920160910299
+C: Content-Type: image/gif
+C: Content-Transfer-Encoding: base64
+C: MIME-Version: 1.0
+C: Content-ID: 238478934723847238947892374
+C: Content-Description: Bogus Image Data
+C: 
+C: ABCDFEGHIJKLMNO
+C: 
+C: --4.66920160910299
+C: Content-Type: message/rfc822
+C: 
+C: From: Timothy Tayler <ti...@example.org>
+C: To: John Smith <jo...@example.org>
+C: Date: Sat, 16 Feb 2008 12:00:00 +0000 (GMT)
+C: Subject: Another Example Email
+C: Content-Type: multipart/mixed;boundary=2.50290787509
+C: 
+C: Yet another preamble
+C: 
+C: --2.50290787509
+C: Content-Type: text/plain
+C: 
+C: Rhubard AND Custard!
+C: 
+C: --2.50290787509
+C: Content-Type: multipart/alternative;boundary=3.243F6A8885A308D3
+C: 
+C: --3.243F6A8885A308D3
+C: Content-Type: text/plain
+C: 
+C: Rhubard?Custard?
+C: 
+C: --3.243F6A8885A308D3
+C: 
+C: Content-Type: text/richtext
+C: 
+C: Rhubard?Custard?
+C: 
+C: --3.243F6A8885A308D3--
+C: 
+C: --2.50290787509--
+C: 
+C: --4.66920160910299--
+C: --1729--
+C: 
+S: \* 5 EXISTS
+S: \* 5 RECENT
+S: A8 OK Append completed\.
+C: A9 APPEND testmailbox {185+}
+C: From: John Smith <jo...@example.org>
+C: To: Timothy Taylor <ti...@example.org>
+C: Subject: Hello
+C: Date: Sat, 23 Feb 2008 07:48:03 -0600
+C: Message-ID: <17...@machine.example.org>
+C: 
+C: Hello, World!
+S: \* 6 EXISTS
+S: \* 6 RECENT
+S: A9 OK Append completed\.
+C: A10 APPEND testmailbox {227+}
+C: From: John Smith <jo...@example.org>
+C: Sender: Samual Smith <sa...@example.org>
+C: To: Timothy Taylor <ti...@example.org>
+C: Subject: Hello
+C: Date: Sat, 23 Feb 2008 07:48:03 -0600
+C: Message-ID: <17...@machine.example.org>
+C: 
+C: Hello, World!
+S: \* 7 EXISTS
+S: \* 7 RECENT
+S: A10 OK Append completed\.
+C: A11 APPEND testmailbox {185+}
+C: From: Timothy Tayler <ti...@example.org>
+C: To: Samual Smith <sa...@example.org>
+C: Date: Thu, 14 Feb 2008 12:00:00 +0000 (GMT)
+C: Subject: A Simple Email
+C: 
+C: This is a very simple email.
+C: 
+S: \* 8 EXISTS
+S: \* 8 RECENT
+S: A11 OK Append completed\.
+C: A12 APPEND testmailbox {318+}
+C: From: "Brian G. Hutton" <br...@example.org>
+C: To: Timothy Taylor <ti...@example.org>, faith@example.org, Huh? <sa...@example.org>
+C: CC: <be...@example.org>, "David \"The Thin White Duke\" Bowie" <du...@example.org>
+C: Subject: Rhubarb
+C: Date: Sat, 23 Feb 2008 07:48:03 -0600
+C: Message-ID: <17...@machine.example.org>
+C: 
+C: Rhubarb!
+S: \* 9 EXISTS
+S: \* 9 RECENT
+S: A12 OK Append completed\.
+C: A13 SELECT testmailbox
+S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* 9 EXISTS
+S: \* 1 RECENT
+S: \* OK \[UNSEEN 1\] First unseen\.
+S: \* OK \[UIDVALIDITY 1203791562\] UIDs valid
+S: \* OK \[UIDNEXT 10\] Predicted next UID
+S: A13 OK \[READ-WRITE\] SELECT completed\.
+C: A14 FETCH 1:* (BODY.PEEK[])
+S: \* 1 FETCH \(BODY\[\] \{185\}
+S: From: Timothy Tayler <timothy@example\.org>
+S: To: Samual Smith <samual@example\.org>
+S: Date: Thu, 14 Feb 2008 12:00:00 \+0000 \(GMT\)
+S: Subject: A Simple Email
+S: 
+S: This is a very simple email\.
+S: \)
+S: \* 2 FETCH \(BODY\[\] \{704\}
+S: Received: by 10\.114\.81\.13 with HTTP; Sat, 2 Feb 2008 05:14:19 -0800 \(PST\)
+S: Message-ID: <f470f68e0802020514m6eaba233u96a9021a2697a48d@mail\.gmail\.com>
+S: Date: Sat, 2 Feb 2008 13:14:19 \+0000
+S: From: "Robert Burrell Donkin" <robertburrelldonkin@gmail\.com>
+S: To: "James Developers List" <server-dev@james\.apache\.org>
+S: Subject: JCR -> trunk \.\.\.\?
+S: MIME-Version: 1\.0
+S: Content-Type: text/plain; charset=ISO-8859-1
+S: Content-Transfer-Encoding: 7bit
+S: Content-Disposition: inline
+S: Delivered-To: robertburrelldonkin@gmail\.com
+S: 
+S: i'd like to copy james-jcr into trunk and add some example
+S: configurations\. development can continue in the sandbox \(or not\) and
+S: merged in later \(if necessary\)\.
+S: 
+S: any objections\?
+S: 
+S: - robert\)
+S: \* 3 FETCH \(BODY\[\] \{668\}
+S: From: Timothy Tayler <timothy@example\.org>
+S: To: Samual Smith <samual@example\.org>
+S: Date: Thu, 14 Feb 2008 12:00:00 \+0000 \(GMT\)
+S: Subject: A Multipart Email
+S: Content-Type: multipart/alternative;boundary=1729
+S: 
+S: Start with a preamble
+S: 
+S: --1729
+S: Content-Type: applcation/xhtml\+xml
+S: 
+S: <!DOCTYPE html
+S: PUBLIC "-//W3C//DTD XHTML 1\.0 Strict//EN"
+S: "http://www\.w3\.org/TR/xhtml1/DTD/xhtml1-strict\.dtd">
+S: <html><head><title>Rhubarb</title></head><body>Rhubarb!</body></html>
+S: 
+S: --1729
+S: Content-Type: text/plain; charset=US-ASCII
+S: 
+S: Rhubarb!
+S: 
+S: --1729
+S: Content-Type: text/html; charset=US-ASCII
+S: 
+S: <html><head><title>Rhubarb</title></head><body>Rhubarb!</body></html>
+S: 
+S: --1729--
+S: \)
+S: \* 4 FETCH \(BODY\[\] \{765\}
+S: From: Timothy Tayler <timothy@example\.org>
+S: To: Samual Smith <samual@example\.org>
+S: Date: Thu, 14 Feb 2008 12:00:00 \+0000 \(GMT\)
+S: Subject: A Multipart Email
+S: Content-Type: multipart/mixed;boundary=1729
+S: 
+S: Start with a preamble
+S: 
+S: --1729
+S: Content-Type: text/plain; charset=US-ASCII
+S: 
+S: Rhubarb!
+S: 
+S: --1729
+S: Content-Type: text/html; charset=US-ASCII
+S: 
+S: <html><head><title>Rhubarb</title></head><body>Rhubarb!</body></html>
+S: 
+S: --1729
+S: Content-Type: application/xhtml\+xml
+S: 
+S: <!DOCTYPE html
+S: PUBLIC "-//W3C//DTD XHTML 1\.0 Strict//EN"
+S: "http://www\.w3\.org/TR/xhtml1/DTD/xhtml1-strict\.dtd">
+S: <html><head><title>Rhubarb</title></head><body>Rhubarb!</body></html>
+S: 
+S: --1729
+S: Content-Type: image/jpeg
+S: Content-Transfer-Encoding: base64
+S: 
+S: 1234567890ABCDEFGHIJKLMNOPQ
+S: 
+S: --1729--
+S: \)
+S: \* 5 FETCH \(BODY\[\] \{1767\}
+S: From: Timothy Tayler <timothy@example\.org>
+S: To: Samual Smith <samual@example\.org>
+S: Date: Thu, 14 Feb 2008 12:00:00 \+0000 \(GMT\)
+S: Subject: A Multipart Email
+S: Content-Type: multipart/mixed;boundary=1729
+S: 
+S: Start with a preamble
+S: 
+S: --1729
+S: Content-Type: text/plain; charset=US-ASCII
+S: 
+S: Rhubarb!
+S: 
+S: --1729
+S: Content-Type: application/octet-stream
+S: Content-Transfer-Encoding: base64
+S: 
+S: 987654321AHPLA
+S: 
+S: --1729
+S: Content-Type: message/rfc822
+S: 
+S: From: Timothy Tayler <timothy@example\.org>
+S: To: Samual Smith <samual@example\.org>
+S: Date: Thu, 14 Feb 2008 12:00:00 \+0000 \(GMT\)
+S: Subject: A Multipart Alternative Email
+S: Content-Type: multipart/alternative;boundary=42
+S: 
+S: This message has a premable
+S: 
+S: --42
+S: Content-Type: text/plain; charset=US-ASCII
+S: 
+S: Custard!
+S: 
+S: --42
+S: Content-Type: application/octet-stream
+S: 
+S: CUSTARDCUSTARDCUSTARD
+S: 
+S: --42--
+S: 
+S: --1729
+S: Content-Type: multipart/mixed; boundary=4\.66920160910299
+S: 
+S: --4\.66920160910299
+S: Content-Type: image/gif
+S: Content-Transfer-Encoding: base64
+S: MIME-Version: 1\.0
+S: Content-ID: 238478934723847238947892374
+S: Content-Description: Bogus Image Data
+S: 
+S: ABCDFEGHIJKLMNO
+S: 
+S: --4\.66920160910299
+S: Content-Type: message/rfc822
+S: 
+S: From: Timothy Tayler <timothy@example\.org>
+S: To: John Smith <john@example\.org>
+S: Date: Sat, 16 Feb 2008 12:00:00 \+0000 \(GMT\)
+S: Subject: Another Example Email
+S: Content-Type: multipart/mixed;boundary=2\.50290787509
+S: 
+S: Yet another preamble
+S: 
+S: --2\.50290787509
+S: Content-Type: text/plain
+S: 
+S: Rhubard AND Custard!
+S: 
+S: --2\.50290787509
+S: Content-Type: multipart/alternative;boundary=3\.243F6A8885A308D3
+S: 
+S: --3\.243F6A8885A308D3
+S: Content-Type: text/plain
+S: 
+S: Rhubard\?Custard\?
+S: 
+S: --3\.243F6A8885A308D3
+S: 
+S: Content-Type: text/richtext
+S: 
+S: Rhubard\?Custard\?
+S: 
+S: --3\.243F6A8885A308D3--
+S: 
+S: --2\.50290787509--
+S: 
+S: --4\.66920160910299--
+S: --1729--
+S: \)
+S: \* 6 FETCH \(BODY\[\] \{185\}
+S: From: John Smith <john@example\.org>
+S: To: Timothy Taylor <tim@example\.org>
+S: Subject: Hello
+S: Date: Sat, 23 Feb 2008 07:48:03 -0600
+S: Message-ID: <1729@machine\.example\.org>
+S: 
+S: Hello, World!\)
+S: \* 7 FETCH \(BODY\[\] \{227\}
+S: From: John Smith <john@example\.org>
+S: Sender: Samual Smith <sam@example\.org>
+S: To: Timothy Taylor <tim@example\.org>
+S: Subject: Hello
+S: Date: Sat, 23 Feb 2008 07:48:03 -0600
+S: Message-ID: <172942@machine\.example\.org>
+S: 
+S: Hello, World!\)
+S: \* 8 FETCH \(BODY\[\] \{185\}
+S: From: Timothy Tayler <timothy@example\.org>
+S: To: Samual Smith <samual@example\.org>
+S: Date: Thu, 14 Feb 2008 12:00:00 \+0000 \(GMT\)
+S: Subject: A Simple Email
+S: 
+S: This is a very simple email\.
+S: \)
+S: \* 9 FETCH \(BODY\[\] \{318\}
+S: From: "Brian G\. Hutton" <brian@example\.org>
+S: To: Timothy Taylor <tim@example\.org>, faith@example\.org, Huh\? <sam@example\.org>
+S: CC: <ben@example\.org>, "David \\"The Thin White Duke\\" Bowie" <duke@example\.org>
+S: Subject: Rhubarb
+S: Date: Sat, 23 Feb 2008 07:48:03 -0600
+S: Message-ID: <17291729@machine\.example\.org>
+S: 
+S: Rhubarb!\)
+S: A14 OK FETCH completed\.
+C: A15 FETCH 1:* (BODY.PEEK[HEADER.FIELDS.NOT (DATE FROM TO ORIGINATOR X-LIST)])
+S: \* 1 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{27\}
+S: Subject: A Simple Email
+S: 
+S: \)
+S: \* 2 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{352\}
+S: Received: by 10\.114\.81\.13 with HTTP; Sat, 2 Feb 2008 05:14:19 -0800 \(PST\)
+S: Message-ID: <f470f68e0802020514m6eaba233u96a9021a2697a48d@mail\.gmail\.com>
+S: Subject: JCR -> trunk \.\.\.\?
+S: MIME-Version: 1\.0
+S: Content-Type: text/plain; charset=ISO-8859-1
+S: Content-Transfer-Encoding: 7bit
+S: Content-Disposition: inline
+S: Delivered-To: robertburrelldonkin@gmail\.com
+S: 
+S: \)
+S: \* 3 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{81\}
+S: Subject: A Multipart Email
+S: Content-Type: multipart/alternative;boundary=1729
+S: 
+S: \)
+S: \* 4 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{75\}
+S: Subject: A Multipart Email
+S: Content-Type: multipart/mixed;boundary=1729
+S: 
+S: \)
+S: \* 5 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{75\}
+S: Subject: A Multipart Email
+S: Content-Type: multipart/mixed;boundary=1729
+S: 
+S: \)
+S: \* 6 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{58\}
+S: Subject: Hello
+S: Message-ID: <1729@machine\.example\.org>
+S: 
+S: \)
+S: \* 7 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{100\}
+S: Sender: Samual Smith <sam@example\.org>
+S: Subject: Hello
+S: Message-ID: <172942@machine\.example\.org>
+S: 
+S: \)
+S: \* 8 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{27\}
+S: Subject: A Simple Email
+S: 
+S: \)
+S: \* 9 FETCH \(BODY\[HEADER\.FIELDS\.NOT \(DATE FROM TO ORIGINATOR X-LIST\)\] \{145\}
+S: CC: <ben@example\.org>, "David \\"The Thin White Duke\\" Bowie" <duke@example\.org>
+S: Subject: Rhubarb
+S: Message-ID: <17291729@machine\.example\.org>
+S: 
+S: \)
+S: A15 OK FETCH completed\.
+C: A16 SELECT testmailbox
+S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
+S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\](.)*
+S: \* 9 EXISTS
+S: \* 0 RECENT
+S: \* OK \[UNSEEN 1\] First unseen\.
+S: \* OK \[UIDVALIDITY 1203791562\] UIDs valid
+S: \* OK \[UIDNEXT 10\] Predicted next UID
+S: A16 OK \[READ-WRITE\] SELECT completed\.
+C: A17 DELETE testmailbox
+S: A17 OK DELETE completed\.

Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-group-addresses.mail
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-group-addresses.mail?rev=630683&view=auto
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-group-addresses.mail (added)
+++ james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-group-addresses.mail Sun Feb 24 13:37:49 2008
@@ -0,0 +1,26 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+From: Timothy Taylor <ti...@example.org>
+To: Alpha Group:John Smith <jo...@example.org>, sid@example.org;
+Cc: Undisclosed recipients:;
+Date: Sat, 23 Feb 2008 18:12:13 +0000
+Message-ID: 42424242
+
+Custard? Rhubard!

Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-reply.mail
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-reply.mail?rev=630683&view=auto
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-reply.mail (added)
+++ james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-reply.mail Sun Feb 24 13:37:49 2008
@@ -0,0 +1,29 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+From: Samual Smith <sa...@example.org>
+To: John Smith <jo...@example.org>
+Reply-To: "Timothy Taylor: Email" <ti...@example.org>
+Subject: Re: Custard!
+Date: Sat, 23 Feb 2008 18:15:18 +0000
+Message-ID: <42...@example.org>
+In-Reply-To: <17...@example.org>
+References: <17...@example.org>
+
+Rhubard, I say!
\ No newline at end of file

Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-resent.mail
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-resent.mail?rev=630683&view=auto
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-resent.mail (added)
+++ james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-resent.mail Sun Feb 24 13:37:49 2008
@@ -0,0 +1,30 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+Resent-From: John Smith <jo...@example.org>
+Resent-To: Samual Smith <sa...@example.org>
+Resent-Date: Sat, 23 Feb 2008 18:18:59 +0000
+Resent-Message-ID: <42...@example.org>
+From: Samual Webster <we...@example.org>
+To: Timothy Taylor <ti...@example.org>
+Subject: Rhubard And Custard!
+Date: Sat, 23 Feb 2008 14:10:00 +0000
+Message-ID: <17...@example.org>
+
+Rhubard or custard? Rhubard AND custard!
\ No newline at end of file

Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-trace.mail
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-trace.mail?rev=630683&view=auto
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-trace.mail (added)
+++ james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/rfc822-trace.mail Sun Feb 24 13:37:49 2008
@@ -0,0 +1,33 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+
+Received: from alpha.beta
+   by example.org
+   via TCP
+   with ESMTP
+   id 1729
+   for <ti...@example.org>; Sat, 23 Feb 2008 18:24:05 +0000
+Received: from gamma.delta by alpha.beta; Sat, 23 Feb 2008 18:20:05 +0000
+From: Samual Webster <we...@example.org>
+To: Timothy Taylor <ti...@example.org>
+Subject: Custard?
+Date: Sat, 23 Feb 2008 18:26:56 +0000
+Message-ID: <17...@machine.example.org>
+
+Rhubard! Rhubard! Rhubard!



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