org.apache.james.imap.scripts.PeekMultipartAlternative.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 \\Flagged \\Deleted \\Seen \\Draft\)
S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Deleted \\Seen \\Draft \\\*\)\] Flags permitted\.
S: \* 0 EXISTS
S: \* 0 RECENT
S: \* OK \[UIDVALIDITY 1203163909\] UIDs valid
S: \* OK \[UIDNEXT 1\] Predicted next UID
S: A3 OK \[READ-WRITE\] Select completed\.
C: A4 APPEND testmailbox {666+}
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/alternative;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: Rhubarb Rhubarb!
C:
C: --1729
C: Content-Type: applcation/xhtml+xml
C:
C:
C: Rhubarb Rhubarb!
C: --1729--
C:
S: \* 1 EXISTS
S: \* 1 RECENT
S: A4 OK Append completed\.
C: A5 SELECT testmailbox
S: \* FLAGS \(\\Answered \\Flagged \\Deleted \\Seen \\Draft\)
S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Deleted \\Seen \\Draft \\\*\)\] Flags permitted\.
S: \* 1 EXISTS
S: \* 1 RECENT
S: \* OK \[UNSEEN 1\] First unseen\.
S: \* OK \[UIDVALIDITY 1203163909\] UIDs valid
S: \* OK \[UIDNEXT 2\] Predicted next UID
S: A5 OK \[READ-WRITE\] Select completed\.
C: A6 FETCH 1 (BODY.PEEK[])
S: \* 1 FETCH \(BODY\[\] {666}
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/alternative;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: Rhubarb Rhubarb!
S:
S: --1729
S: Content-Type: applcation/xhtml\+xml
S:
S:
S: Rhubarb Rhubarb!
S: --1729--
S: \)
S: A6 OK Fetch completed\.
C: A7 FETCH 1 (BODY.PEEK[TEXT])
S: \* 1 FETCH \(BODY\[TEXT\] {457}
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: Rhubarb Rhubarb!
S:
S: --1729
S: Content-Type: applcation/xhtml\+xml
S:
S:
S: Rhubarb Rhubarb!
S: --1729--
S: \)
S: A7 OK Fetch completed\.
C: A8 FETCH 1 (BODY.PEEK[HEADER])
S: \* 1 FETCH \(BODY\[HEADER\] {209}
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/alternative;boundary=1729
S:
S: \)
S: A8 OK Fetch completed\.
C: A9 FETCH 1 (BODY.PEEK[1])
S: \* 1 FETCH \(BODY\[1\] {10}
S: Rhubarb!
S: \)
S: A9 OK Fetch completed\.
C: A10 FETCH 1 (BODY.PEEK[2])
S: \* 1 FETCH \(BODY\[2\] {71}
S: Rhubarb Rhubarb!
S: \)
S: A10 OK Fetch completed\.
C: A11 FETCH 1 (BODY.PEEK[3])
S: \* 1 FETCH \(BODY\[3\] {182}
S:
S: Rhubarb Rhubarb!\)
S: A11 OK Fetch completed\.
C: A12 SELECT testmailbox
S: \* FLAGS \(\\Answered \\Flagged \\Deleted \\Seen \\Draft\)
S: \* OK \[PERMANENTFLAGS \(\\Answered \\Flagged \\Deleted \\Seen \\Draft \\\*\)\] Flags permitted\.
S: \* 1 EXISTS
S: \* 0 RECENT
S: \* OK \[UNSEEN 1\] First unseen\.
S: \* OK \[UIDVALIDITY 1203163909\] UIDs valid
S: \* OK \[UIDNEXT 2\] Predicted next UID
S: A12 OK \[READ-WRITE\] Select completed\.
C: A13 DELETE testmailbox
S: A13 OK Delete completed\.