From 63ef436ea15dd93343a2040ffb7c3bb2c9681b87 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Tue, 5 Sep 2017 17:11:59 +0100 Subject: mime: implement encoders. curl_mime_encoder() is operational and documented. curl tool -F option is extended with ";encoder=". curl tool --libcurl option generates calls to curl_mime_encoder(). New encoder tests 648 & 649. Test 1404 extended with an encoder specification. --- tests/data/test649 | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 tests/data/test649 (limited to 'tests/data/test649') diff --git a/tests/data/test649 b/tests/data/test649 new file mode 100644 index 000000000..46c01cd00 --- /dev/null +++ b/tests/data/test649 @@ -0,0 +1,72 @@ + + + +SMTP +MULTIPART + + + +# +# Server-side + + + +# +# Client-side + + +smtp + + +SMTP multipart with 7bit encoder error + + +From: different +To: another + +body + + +smtp://%HOSTIP:%SMTPPORT/649 --mail-rcpt recipient@example.com --mail-from sender@example.com -F '=This is valid;encoder=7bit' -F "=@log/test649.txt;encoder=7bit" -H "From: different" -H "To: another" + + +This is an attached file (in french: pièce jointe). + +It contains at least an 8-bit byte value. + + + +# +# Verify data after the test has been "shot" + + +s/^--------------------------[a-z0-9]*/------------------------------/ +s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ + + +EHLO 649 +MAIL FROM: +RCPT TO: +DATA + + +Content-Type: multipart/mixed; boundary=---------------------------- +Mime-Version: 1.0 +From: different +To: another + +------------------------------ +Content-Transfer-Encoding: 7bit + +This is valid +------------------------------ +Content-Disposition: attachment; filename="test649.txt" +Content-Transfer-Encoding: 7bit + +This is an attached file (in french: pi + + +26 + + + -- cgit v1.2.3