aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test847
diff options
context:
space:
mode:
authorNicklas Avén <nicklas.aven@jordogskog.no>2018-07-31 13:12:18 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-09-06 10:57:48 +0200
commit6987fcef657710f800b05dd79ff744087b15c73d (patch)
tree47fcd664dcf9f7ee1b274c88eaa75e1faccf0837 /tests/data/test847
parent2825f46d950ca9b0e269ed8dc6a97c5238a17c30 (diff)
imap: change from "FETCH" to "UID FETCH"
... and add "MAILINDEX". As described in #2789, this is a suggested solution. Changing UID=xx to actually get mail with UID xx and add "MAILINDEX" to get a mail with a special index in the mail box (old behavior). So MAILINDEX=1 gives the first non deleted mail in the mail box. Fixes #2789 Closes #2815
Diffstat (limited to 'tests/data/test847')
-rw-r--r--tests/data/test84749
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/data/test847 b/tests/data/test847
new file mode 100644
index 000000000..d4c104332
--- /dev/null
+++ b/tests/data/test847
@@ -0,0 +1,49 @@
+<testcase>
+<info>
+<keywords>
+IMAP
+Clear Text
+FETCH
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+From: me@somewhere
+To: fake@nowhere
+
+body
+
+--
+ yours sincerely
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+imap
+</server>
+ <name>
+IMAP FETCH message
+ </name>
+ <command>
+'imap://%HOSTIP:%IMAPPORT/847/;UID=1' -u '"user:sec"ret{'
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+A001 CAPABILITY
+A002 LOGIN "\"user" "sec\"ret{"
+A003 SELECT 847
+A004 UID FETCH 1 BODY[]
+A005 LOGOUT
+</protocol>
+</verify>
+</testcase>