From 2a3dafc0cdb7f65c19835a1246623186a05073a8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 20 Dec 2009 11:07:04 +0000 Subject: introducing the first IMAP FETCH test --- tests/data/Makefile.am | 2 +- tests/data/test801 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 tests/data/test801 (limited to 'tests') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index ac061a15f..ea05d9363 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -63,7 +63,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test1089 test1090 test1091 test1092 test1093 test1094 test1095 test1096 \ test1097 test560 test561 test1098 test1099 test562 test563 test1100 \ test564 test1101 test1102 test1103 test1104 test299 test310 test311 \ - test312 test1105 test565 test800 test1106 + test312 test1105 test565 test800 test1106 test801 filecheck: @mkdir test-place; \ diff --git a/tests/data/test801 b/tests/data/test801 new file mode 100644 index 000000000..271d8d1f7 --- /dev/null +++ b/tests/data/test801 @@ -0,0 +1,47 @@ + + + +IMAP +FETCH + + + +# +# Server-side + + +From: me@somewhere +To: fake@nowhere + +body + +-- + yours sincerely + + + +# +# Client-side + + +imap + + +IMAP FETCH + + +imap://%HOSTIP:%IMAPPORT/801 -u user:secret + + + +# +# Verify data after the test has been "shot" + + +B LOGIN user secret +C SELECT 801 +D FETCH 1 BODY[TEXT] +A LOGOUT + + + -- cgit v1.2.3