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