22 IMAP APPEND multipart using mime API
25 imap://%HOSTIP:%IMAPPORT/647 -F "=(;type=multipart/alternative" -F "= <body>This is the html version</body>;type=text/html" -F "=This is the plain text version" -F "=)" -F "=@log/test647.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
27 <file name="log/test647.txt">
28 This is an attached file.
30 It may contain any type of data.
35 # Verify data after the test has been "shot"
38 s/^--------------------------[a-z0-9]*/------------------------------/
39 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
43 A002 LOGIN user secret
44 A003 APPEND 647 (\Seen) {892}
48 Content-Type: multipart/mixed; boundary=----------------------------
50 Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
51 From: Fred Foobar <foobar@example.com>
53 Message-Id: <B27397-0100000@example.com>
54 Subject: afternoon meeting
56 ------------------------------
57 Content-Type: multipart/alternative; boundary=----------------------------
59 ------------------------------
60 Content-Type: text/html
61 Content-Transfer-Encoding: 8bit
63 <body>This is the html version</body>
64 ------------------------------
66 This is the plain text version
67 --------------------------------
69 ------------------------------
70 Content-Disposition: attachment; filename="test647.txt"
72 This is an attached file.
74 It may contain any type of data.
76 --------------------------------