From 70c96d95b9ff6e9e03b1cd78f3d6a24cd52a8b4b Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Tue, 4 Feb 2014 15:09:12 -0500 Subject: [PATCH] Add test for -maxunencoded. --- test/mhbuild/test-cte | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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} -- 2.56.0