X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9b2a434d847e5cd9416c7324bcd90fe1153931a5..035c5db3403da8a955b2c8f525076f89de9f2713:/test/dist/test-dist diff --git a/test/dist/test-dist b/test/dist/test-dist index c5182afa..19ba6406 100755 --- a/test/dist/test-dist +++ b/test/dist/test-dist @@ -31,7 +31,7 @@ MHMTSCONF="$mts_fakesendmail" # arguments: dist switches test_dist () { - printf 'send\n' | dist "$@" >/dev/null + printf 'send\n' | run_prog dist "$@" >/dev/null # fakesendmail drops the message and any cc's into this mbox. mbox="${MH_TEST_DIR}"/Mail/fakesendmail.mbox @@ -384,5 +384,26 @@ EOF test_dist +inbox 1 -noedit -to somebody@example.com -fcc +outbox run_test 'scan +outbox -width 6 2' ' 2 ' +# +# Check that dist encodes headers using RFC-2047 properly +# + +export LC_ALL=en_US.UTF-8 + +cat >"$expected" < +To: Some User +Date: Fri, 29 Sep 2006 00:00:00 +Message-Id: 1@test.nmh +Subject: Testing message 1 +Resent-From: =?UTF-8?Q?Mr_F=C3=B8o_Bar?= +Resent-To: =?UTF-8?Q?Mr_Nobod=C3=BF?= +Resent-Date: + +This is message number 1 +EOF + +test_dist +inbox 1 -noedit -from 'Mr Føo Bar ' \ + -to 'Mr Nobodÿ ' -fcc +outbox exit ${failed:-0}