curl-curl/tests/data/test897
Viktor Szakats b5ea0736bb
tests/data: add XML prolog to test files
To formalize they are now XML-compliant (with some asterisks.)

Also to help syntax highlighters work on them to make their content more
readable.

Also:
- Delete empty comment decorations.
- GHA/checksrc: simplify XML check.
- runtests: fail to load test data with XML prolog missing.

Follow-up to bfe6eb1c06 #19927
Follow-up to 87ba80a6df

Closes #19946
2025-12-12 17:17:24 +01:00

69 lines
1.4 KiB
XML

<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
IMAP
Clear Text
FETCH
</keywords>
</info>
# Server-side
<reply>
<data crlf="yes">
body
--
yours sincerely
</data>
<servercmd>
POSTFETCH extra stuff sent in the envelope after the body
</servercmd>
</reply>
# Client-side
<client>
<server>
imap
</server>
<name>
IMAP and envelope meta data after body transfer
</name>
<command>
'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=123/;SECTION=1' -u user:secret -D %LOGDIR/head-%TESTNUMBER
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol crlf="yes">
A001 CAPABILITY
A002 LOGIN user secret
A003 SELECT %TESTNUMBER
A004 FETCH 123 BODY[1]
A005 LOGOUT
</protocol>
<file name="%LOGDIR/head-%TESTNUMBER" crlf="yes">
_ _ ____ _
___| | | | _ \| |
/ __| | | | |_) | |
| (__| |_| | _ {| |___
\___|\___/|_| \_\_____|
* OK curl IMAP server ready to serve
A001 BAD Command
A002 OK LOGIN completed
* 172 EXISTS
* 1 RECENT
* OK [UNSEEN 12] Message 12 is first unseen
* OK [UIDVALIDITY 3857529045] UIDs valid
* OK [UIDNEXT 4392] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Deleted \Seen \*)] Limited
A003 OK [READ-WRITE] SELECT completed
* 123 FETCH (BODY[1] {31}
extra stuff sent in the envelope after the body)
A004 OK FETCH completed
</file>
</verify>
</testcase>