]> diplodocus.org Git - nmh/blobdiff - test/post/test-rfc6531
Output an error message from post(8) when user specifies
[nmh] / test / post / test-rfc6531
index 135d6f28b4f72c3cd8353090e35617d6b46ea9f1..8d5391dc1a558eaade8e886e2dd1e941ea0bf70a 100755 (executable)
@@ -19,8 +19,7 @@ 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"
@@ -78,6 +77,8 @@ RSET
 QUIT
 EOF
 cat > "${testname}.expected.err" <<EOF
+post: SMTP server does not support SMTPUTF8, not sending.
+Rebuild message with 7-bit headers, WITHOUT -headerencoding utf-8.
 post: problem initializing server; [BHST] ready; I'll buy that for a dollar!
 send: message not delivered to anyone
 EOF