From 10fafb48f4d247e86cc499bf220367c651f67637 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Tue, 25 Feb 2014 21:15:51 -0500 Subject: [PATCH] A new test for longer lines. --- test/mhbuild/test-ext-params | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/test/mhbuild/test-ext-params b/test/mhbuild/test-ext-params index a6c4b129..58c2ff70 100755 --- a/test/mhbuild/test-ext-params +++ b/test/mhbuild/test-ext-params @@ -58,4 +58,46 @@ EOF check "$draft" "$expected" +# +# Try out a draft with some long parameters +# + +cat > "$draft" < +cc: +Fcc: +outbox +------ +This is a test message +#image/jpeg {attachment; filename="This is an example of a rather long filename that is longer than would fit on a normal line.jpg"} \ +${srcdir}/test/mhbuild/tiny.jpg +EOF + +run_prog mhbuild "$draft" + +cat > "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" + +This is a test message + +------- =_aaaaaaaaaa0 +Content-Type: image/jpeg +Content-Disposition: attachment; + filename*0="This is an example of a rather long filename that is lon"; + filename*1="ger than would fit on a normal line.jpg" +Content-Transfer-Encoding: base64 + +/9g= + +------- =_aaaaaaaaaa0-- +EOF + +check "$draft" "$expected" + exit ${failed:-0} -- 2.56.0