1<testcase> 2<info> 3<keywords> 4IMAP 5APPEND 6MULTIPART 7</keywords> 8</info> 9 10# 11# Server-side 12<reply> 13</reply> 14 15# 16# Client-side 17<client> 18<features> 19Mime 20</features> 21<server> 22imap 23</server> 24<name> 25IMAP APPEND multipart using mime API 26</name> 27<command> 28imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -F "=(;type=multipart/alternative" -F "= <body>This is the html version</body>;type=text/html" -F "=This is the plain text version" -F "=)" -F "=@%LOGDIR/test%TESTNUMBER.txt" -H "Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)" -H "From: Fred Foobar <foobar@example.com>" -H "To: joe@example.com" -H "Message-Id: <B27397-0100000@example.com>" -H "Subject: afternoon meeting" -u user:secret 29</command> 30<file name="%LOGDIR/test%TESTNUMBER.txt"> 31This is an attached file. 32 33It may contain any type of data. 34</file> 35</client> 36 37# 38# Verify data after the test has been "shot" 39<verify> 40<strippart> 41s/^--------------------------[A-Za-z0-9]*/------------------------------/ 42s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/ 43</strippart> 44<protocol> 45A001 CAPABILITY 46A002 LOGIN user secret 47A003 APPEND %TESTNUMBER (\Seen) {940} 48A004 LOGOUT 49</protocol> 50<upload> 51Content-Type: multipart/mixed; boundary=---------------------------- 52Mime-Version: 1.0 53Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST) 54From: Fred Foobar <foobar@example.com> 55To: joe@example.com 56Message-Id: <B27397-0100000@example.com> 57Subject: afternoon meeting 58 59------------------------------ 60Content-Type: multipart/alternative; boundary=---------------------------- 61 62------------------------------ 63Content-Type: text/html 64Content-Transfer-Encoding: 8bit 65 66<body>This is the html version</body> 67------------------------------ 68 69This is the plain text version 70-------------------------------- 71 72------------------------------ 73Content-Disposition: attachment; filename="test%TESTNUMBER.txt" 74 75This is an attached file. 76 77It may contain any type of data. 78 79-------------------------------- 80</upload> 81</verify> 82</testcase> 83