2009-12-20 19:07:04 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
IMAP
|
2014-03-30 18:40:50 +08:00
|
|
|
Clear Text
|
2009-12-20 19:07:04 +08:00
|
|
|
FETCH
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2013-03-21 20:42:32 +08:00
|
|
|
From: me@somewhere
|
|
|
|
To: fake@nowhere
|
|
|
|
|
|
|
|
body
|
|
|
|
|
|
|
|
--
|
|
|
|
yours sincerely
|
2009-12-20 19:07:04 +08:00
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
imap
|
|
|
|
</server>
|
|
|
|
<name>
|
2013-09-14 21:57:15 +08:00
|
|
|
IMAP FETCH message
|
2009-12-20 19:07:04 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u '"user:sec"ret{'
|
2009-12-20 19:07:04 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2013-02-07 08:18:23 +08:00
|
|
|
A001 CAPABILITY
|
2017-09-21 15:17:06 +08:00
|
|
|
A002 LOGIN "\"user" "sec\"ret{"
|
2021-03-13 00:38:26 +08:00
|
|
|
A003 SELECT %TESTNUMBER
|
2013-02-24 05:05:19 +08:00
|
|
|
A004 FETCH 1 BODY[]
|
2013-02-07 08:18:23 +08:00
|
|
|
A005 LOGOUT
|
2009-12-20 19:07:04 +08:00
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|