xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | IMAP |
| 5 | STARTTLS |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <servercmd> |
| 13 | REPLY CAPABILITY A001 BAD Not implemented |
| 14 | </servercmd> |
| 15 | </reply> |
| 16 | |
| 17 | # |
| 18 | # Client-side |
| 19 | <client> |
| 20 | <features> |
| 21 | SSL |
| 22 | </features> |
| 23 | <server> |
| 24 | imap |
| 25 | </server> |
| 26 | <name> |
| 27 | IMAP require STARTTLS with failing capabilities |
| 28 | </name> |
| 29 | <command> |
| 30 | imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -T log/upload%TESTNUMBER -u user:secret --ssl-reqd |
| 31 | </command> |
| 32 | <file name="log/upload%TESTNUMBER"> |
| 33 | Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST) |
| 34 | From: Fred Foobar <foobar@example.COM> |
| 35 | Subject: afternoon meeting |
| 36 | To: joe@example.com |
| 37 | Message-Id: <B27397-0100000@example.COM> |
| 38 | MIME-Version: 1.0 |
| 39 | Content-Type: TEXT/PLAIN; CHARSET=US-ASCII |
| 40 | |
| 41 | Hello Joe, do you think we can meet at 3:30 tomorrow? |
| 42 | </file> |
| 43 | </client> |
| 44 | |
| 45 | # |
| 46 | # Verify data after the test has been "shot" |
| 47 | <verify> |
| 48 | # 64 is CURLE_USE_SSL_FAILED |
| 49 | <errorcode> |
| 50 | 64 |
| 51 | </errorcode> |
| 52 | <protocol> |
| 53 | A001 CAPABILITY
|
| 54 | </protocol> |
| 55 | </verify> |
| 56 | </testcase> |