mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
48 lines
945 B
XML
48 lines
945 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
IMAP
|
|
Clear Text
|
|
FETCH
|
|
CUSTOMREQUEST
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
%repeat[120 x Testing large IMAP literal with custom FETCH. XXXXXXXXXXXXX%0d]%
|
|
</data>
|
|
<datacheck>
|
|
* 456 FETCH (("fake {50}" BODY[TEXT]) {7201}%CR
|
|
%repeat[120 x Testing large IMAP literal with custom FETCH. XXXXXXXXXXXXX%0d]%
|
|
</datacheck>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
imap
|
|
</server>
|
|
<name>
|
|
IMAP custom FETCH with larger literal response (~7KB)
|
|
</name>
|
|
# The quoted string contains {50} which must not be parsed as a literal
|
|
<command>
|
|
imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/ -u user:secret -X 'FETCH 456 ("fake {50}" BODY[TEXT])'
|
|
</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 456 ("fake {50}" BODY[TEXT])
|
|
A005 LOGOUT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|