aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-08-28 07:27:10 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-08-28 07:27:10 +0100
commit1b4dc103937dbda3b5ee2b486c2f068bf6f6ebd8 (patch)
treeab5208533cfe3123e1f9b681cdf6f89420f1a925 /tests/data
parent45b6e2dd89dba23eb4e30338abd9c5402a7e0578 (diff)
tests: Added test for IMAP SEARCH command
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/Makefile.am2
-rw-r--r--tests/data/test81043
2 files changed, 44 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index e0007f406..862b22e04 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -64,7 +64,7 @@ test700 test701 test702 test703 test704 test705 test706 test707 test708 \
test709 test710 test711 test712 \
\
test800 test801 test802 test803 test804 test805 test806 test807 test808 \
-test809 \
+test809 test810 \
\
test850 test851 test852 test853 test854 test855 test856 test857 \
\
diff --git a/tests/data/test810 b/tests/data/test810
new file mode 100644
index 000000000..6eee2be5b
--- /dev/null
+++ b/tests/data/test810
@@ -0,0 +1,43 @@
+<testcase>
+<info>
+<keywords>
+IMAP
+SEARCH
+CUSTOMREQUEST
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+* SEARCH 1 123 456 810
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+imap
+</server>
+ <name>
+IMAP SEARCH (CUSTOMREQUEST)
+ </name>
+ <command>
+imap://%HOSTIP:%IMAPPORT/810 -u user:secret -X 'SEARCH NEW'
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+A001 CAPABILITY
+A002 LOGIN user secret
+A003 SELECT 810
+A004 SEARCH NEW
+A005 LOGOUT
+</protocol>
+</verify>
+</testcase>