IMAP APPEND MULTIPART # # Server-side # # Client-side Mime imap IMAP APPEND multipart using mime API imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -F "=(;type=multipart/alternative" -F "= This is the html version;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 " -H "To: joe@example.com" -H "Message-Id: " -H "Subject: afternoon meeting" -u user:secret This is an attached file. It may contain any type of data. # # Verify data after the test has been "shot" s/^--------------------------[A-Za-z0-9]*/------------------------------/ s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/ A001 CAPABILITY A002 LOGIN user secret A003 APPEND %TESTNUMBER (\Seen) {940} A004 LOGOUT Content-Type: multipart/mixed; boundary=---------------------------- Mime-Version: 1.0 Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST) From: Fred Foobar To: joe@example.com Message-Id: Subject: afternoon meeting ------------------------------ Content-Type: multipart/alternative; boundary=---------------------------- ------------------------------ Content-Type: text/html Content-Transfer-Encoding: 8bit This is the html version ------------------------------ This is the plain text version -------------------------------- ------------------------------ Content-Disposition: attachment; filename="test%TESTNUMBER.txt" This is an attached file. It may contain any type of data. --------------------------------