From 3baf36edf6ed1d7c74d68846d79f87334b573aea Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sat, 2 Sep 2017 19:08:45 +0100 Subject: mime: tests and examples. Additional mime-specific tests. Existing tests updated to reflect small differences (Expect: 100-continue, data size change due to empty lines, etc). Option -F headers= keyword added to tests. test1135 disabled until the entry point order change is resolved. New example smtp-mime. Examples postit2 and multi-post converted from form API to mime API. --- tests/data/test647 | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 tests/data/test647 (limited to 'tests/data/test647') diff --git a/tests/data/test647 b/tests/data/test647 new file mode 100644 index 000000000..de2b467fc --- /dev/null +++ b/tests/data/test647 @@ -0,0 +1,79 @@ + + + +IMAP +APPEND +MULTIPART + + + +# +# Server-side + + + +# +# Client-side + + +imap + + +IMAP APPEND multipart using mime API + + +imap://%HOSTIP:%IMAPPORT/647 -F "=(;type=multipart/alternative" -F "= This is the html version;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 " -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-z0-9]*/------------------------------/ +s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ + + +A001 CAPABILITY +A002 LOGIN user secret +A003 APPEND 647 (\Seen) {892} +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="test647.txt" + +This is an attached file. + +It may contain any type of data. + +-------------------------------- + + + -- cgit v1.2.3