xref: /curl/tests/data/test897 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4IMAP
5Clear Text
6FETCH
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14body
15
16--
17  yours sincerely
18</data>
19<servercmd>
20POSTFETCH extra stuff sent in the envelope after the body
21</servercmd>
22</reply>
23
24#
25# Client-side
26<client>
27<server>
28imap
29</server>
30<name>
31IMAP and envelope meta data after body transfer
32</name>
33<command>
34'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=123/;SECTION=1' -u user:secret -D %LOGDIR/head-%TESTNUMBER
35</command>
36</client>
37
38#
39# Verify data after the test has been "shot"
40<verify>
41<protocol>
42A001 CAPABILITY
43A002 LOGIN user secret
44A003 SELECT %TESTNUMBER
45A004 FETCH 123 BODY[1]
46A005 LOGOUT
47</protocol>
48<file name="%LOGDIR/head-%TESTNUMBER">
49        _   _ ____  _
50    ___| | | |  _ \| |
51   / __| | | | |_) | |
52  | (__| |_| |  _ {| |___
53   \___|\___/|_| \_\_____|
54* OK curl IMAP server ready to serve
55A001 BAD Command
56A002 OK LOGIN completed
57* 172 EXISTS
58* 1 RECENT
59* OK [UNSEEN 12] Message 12 is first unseen
60* OK [UIDVALIDITY 3857529045] UIDs valid
61* OK [UIDNEXT 4392] Predicted next UID
62* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
63* OK [PERMANENTFLAGS (\Deleted \Seen \*)] Limited
64A003 OK [READ-WRITE] SELECT completed
65* 123 FETCH (BODY[1] {31}
66extra stuff sent in the envelope after the body)
67A004 OK FETCH completed
68</file>
69</verify>
70</testcase>
71