X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/01416e0e4c7e5b6ba8a1a1bf6eb0d8638f32f069..70c96d95b9ff6e9e03b1cd78f3d6a24cd52a8b4b:/test/mhbuild/test-cte diff --git a/test/mhbuild/test-cte b/test/mhbuild/test-cte index acbcde3f..f1e2b031 100755 --- a/test/mhbuild/test-cte +++ b/test/mhbuild/test-cte @@ -347,4 +347,31 @@ set +e run_test 'eval mhbuild "$draft" 2>&1' 'mhbuild: Line in content exceeds maximum line limit (998)' set -e +# +# Check to make sure -maxunencoded does what we want. +# + +cat > "$draft" < +cc: +Fcc: +outbox +------ +This is the test of a lønger line than the ususal limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? +EOF + +run_prog mhbuild -maxunencoded 200 "$draft" + +cat > "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Transfer-Encoding: 8bit + +This is the test of a lønger line than the ususal limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? +EOF + +check "$draft" "$expected" + exit ${failed:-0}