X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/95ad91ca30e1cda09efe454d12ed790a60661f56..0a7838e0e8026cbfe8a8924ef256ad9e930fb03d:/test/mhbuild/test-ext-params diff --git a/test/mhbuild/test-ext-params b/test/mhbuild/test-ext-params index c962cf43..96cad2e9 100755 --- a/test/mhbuild/test-ext-params +++ b/test/mhbuild/test-ext-params @@ -142,4 +142,43 @@ EOF check "$draft" "$expected" +# +# Alternate version; specify a disposion, but not an explicit filename +# + +cat > "$draft" < +cc: +Fcc: +outbox +------ +This is a test message +#image/jpeg {attachment} $MH_TEST_DIR/tïny.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*=UTF-8''t%C3%AFny.jpg +Content-Transfer-Encoding: base64 + +/9g= + +------- =_aaaaaaaaaa0-- +EOF + +check "$draft" "$expected" + exit ${failed:-0}