X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/10fafb48f4d247e86cc499bf220367c651f67637..1d334fe1eb8b461a8e2adeac44f49a1d23429b2d:/test/mhbuild/test-ext-params diff --git a/test/mhbuild/test-ext-params b/test/mhbuild/test-ext-params index 58c2ff70..5e4a681b 100755 --- a/test/mhbuild/test-ext-params +++ b/test/mhbuild/test-ext-params @@ -89,8 +89,51 @@ 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" + filename*0="This is an example of a rather long filename that is lo"; + filename*1="nger than would fit on a normal line.jpg" +Content-Transfer-Encoding: base64 + +/9g= + +------- =_aaaaaaaaaa0-- +EOF + +check "$draft" "$expected" + +# +# Try out both! +# + +cat > "$draft" < +cc: +Fcc: +outbox +------ +This is a test message +#image/jpeg {attachment; filename="This is an ëxample 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*=UTF-8''This%20is%20an%20%C3%ABxample%20of%20a%20rather; + filename*1=" long filename that is longer than would fit on a norma"; + filename*2="l line.jpg" Content-Transfer-Encoding: base64 /9g=