X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ef02b5cfad61304c9745f112a9a5b76f12b6c1ed..b66f48b0d0caea86ac3ae5e5044e3340be22f1a6:/test/post/test-rfc6531 diff --git a/test/post/test-rfc6531 b/test/post/test-rfc6531 index b86936bc..89c6e36d 100755 --- a/test/post/test-rfc6531 +++ b/test/post/test-rfc6531 @@ -16,10 +16,10 @@ fi setup_test mhl="${MH_LIBEXEC_DIR}/mhl" +SMTPUTF8=1; export SMTPUTF8 #### Make sure that html-to-text conversion is what we expect. -require_locale en_US.utf-8 en_US.utf8 -LC_ALL=en_US.UTF-8; export LC_ALL +require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8 #### Enable EAI in mhbuild, via the profile. sed "s%^\(mhbuild: .*\)%\1 -headerencoding utf-8%" "$MH" >"$MH.new" @@ -69,5 +69,24 @@ EOF test_post "${testname}.actual" "${testname}.expected" +start_test "smtp server doesn't support SMTPUTF8" +unset SMTPUTF8 +cat > "${testname}.expected" < "${testname}.expected.err" <"${testname}.err" +set -e +check "${testname}.err" "${testname}.expected.err" + + finish_test exit $failed