org.apache.james.imap.scripts.HeaderPartialFetch.test Maven / Gradle / Ivy
################################################################
# 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: \* 0 EXISTS
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
C: To: Samual Smith
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
C: To: Samual Smith
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
C: To: John Smith
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: \* 1 EXISTS
S: \* 1 RECENT
S: A4 OK APPEND completed\.
C: A5 SELECT testmailbox
S: \* FLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)
S: \* 1 EXISTS
S: \* 1 RECENT
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.
C: A7 FETCH 1 (BODY[HEADER]<0.16>)
S: \* 1 FETCH \(FLAGS \(\\Recent \\Seen\) BODY\[HEADER\]<0> \{16\}
S: From: Timothy Ta\)
S: A7 OK FETCH completed\.
C: A8 FETCH 1 (BODY[HEADER]<0.32>)
S: \* 1 FETCH \(BODY\[HEADER\]<0> \{32\}
S: From: Timothy Tayler )
S: \* 1 FETCH \(BODY\[HEADER\]<0> \{64\}
S: From: Timothy Tayler
S: To: Samual Smith )
S: \* 1 FETCH \(BODY\[HEADER\]<0> \{128\}
S: From: Timothy Tayler
S: To: Samual Smith
S: Date: Thu, 14 Feb 2008 12:00:00 \+0000 \(GMT\)
S: \)
S: A10 OK FETCH completed\.
C: A11 FETCH 1 (BODY[HEADER]<0.1024>)
S: \* 1 FETCH \(BODY\[HEADER\]<0> \{203\}
S: From: Timothy Tayler
S: To: Samual Smith
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: \)
S: A11 OK FETCH completed\.
C: A12 FETCH 1 (BODY[HEADER]<0.2048>)
S: \* 1 FETCH \(BODY\[HEADER\]<0> \{203\}
S: From: Timothy Tayler
S: To: Samual Smith
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: \)
S: A12 OK FETCH completed\.
C: A13 FETCH 1 (BODY[HEADER]<7.0>)
S: A13 BAD FETCH failed. Illegal arguments.
C: A14 FETCH 1 (BODY[HEADER]<7.16>)
S: \* 1 FETCH \(BODY\[HEADER\]<7> \{16\}
S: imothy Tayler )
S: \* 1 FETCH \(BODY\[HEADER\]<7> \{32\}
S: imothy Tayler )
S: \* 1 FETCH \(BODY\[HEADER\]<7> \{64\}
S: imothy Tayler
S: To: Samual Smith )
S: \* 1 FETCH \(BODY\[HEADER\]<7> \{128\}
S: imothy Tayler
S: To: Samual Smith
S: Date: Thu, 14 Feb 2008 12:00:00 \+0000 \(GMT\)
S: Subject\)
S: A17 OK FETCH completed\.
C: A18 FETCH 1 (BODY[HEADER]<7.1024>)
S: \* 1 FETCH \(BODY\[HEADER\]<7> \{196\}
S: imothy Tayler
S: To: Samual Smith
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: \)
S: A18 OK FETCH completed\.
C: A19 FETCH 1 (BODY[HEADER]<7.2048>)
S: \* 1 FETCH \(BODY\[HEADER\]<7> \{196\}
S: imothy Tayler
S: To: Samual Smith
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: \)
S: A19 OK FETCH completed\.
C: A20 FETCH 1 (BODY[HEADER]<10000.0>)
S: A20 BAD FETCH failed. Illegal arguments.
C: A21 FETCH 1 (BODY[HEADER]<10000.16>)
S: \* 1 FETCH \(BODY\[HEADER\]<10000> \{0\}
S: \)
S: A21 OK FETCH completed\.
C: A22 FETCH 1 (BODY[HEADER]<10000.32>)
S: \* 1 FETCH \(BODY\[HEADER\]<10000> \{0\}
S: \)
S: A22 OK FETCH completed\.
C: A23 FETCH 1 (BODY[HEADER]<10000.64>)
S: \* 1 FETCH \(BODY\[HEADER\]<10000> \{0\}
S: \)
S: A23 OK FETCH completed\.
C: A24 FETCH 1 (BODY[HEADER]<10000.128>)
S: \* 1 FETCH \(BODY\[HEADER\]<10000> \{0\}
S: \)
S: A24 OK FETCH completed\.
C: A25 FETCH 1 (BODY[HEADER]<10000.1024>)
S: \* 1 FETCH \(BODY\[HEADER\]<10000> \{0\}
S: \)
S: A25 OK FETCH completed\.
C: A26 FETCH 1 (BODY[HEADER]<10000.2048>)
S: \* 1 FETCH \(BODY\[HEADER\]<10000> \{0\}
S: \)
S: A26 OK FETCH completed\.
C: A27 DELETE testmailbox
S: A27 OK DELETE completed\.