X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c703902741e0f7ce55f87e48ef0d00901195f1bc..646bb79c8d61e0df67e3ccec76c7a9539155a6fb:/test/mhbuild/test-utf8-body diff --git a/test/mhbuild/test-utf8-body b/test/mhbuild/test-utf8-body index 3446153f..9798ac26 100755 --- a/test/mhbuild/test-utf8-body +++ b/test/mhbuild/test-utf8-body @@ -27,7 +27,7 @@ MHMTSCONF="$mts_fakesendmail" # argument: expected output test_attachment () { - send -draft -mts sendmail/pipe + run_prog send -draft -mts sendmail/pipe # fakesendmail drops the message and any cc's into this mbox. mbox="${MH_TEST_DIR}"/Mail/fakesendmail.mbox @@ -39,7 +39,7 @@ test_attachment () # use, so we'll just use sed to remove the actual date so we can easily # compare it against our "correct" output. And same for charset. # - sed -e 's/^Date:.*/Date:/' -e 's/; charset=".*//' \ + sed -e 's/^Date:.*/Date:/' -e 's/; charset="[^;]*//' \ "`mhpath cur`" > "${testname}.actual" check "${testname}.actual" "$1" @@ -54,7 +54,7 @@ cat > "${MH_TEST_DIR}/Mail/draft" < To: Somebody Subject: Test -Nmh-Attachment: $MH_TEST_DIR/attachment.txt +Attach: $MH_TEST_DIR/attachment.txt This is a test. EOF @@ -91,7 +91,7 @@ cat > "${MH_TEST_DIR}/Mail/draft" < To: Somebody Subject: Test -Nmh-Attachment: $MH_TEST_DIR/attachment.txt +Attach: $MH_TEST_DIR/attachment.txt ¡Ay, caramba! EOF @@ -102,13 +102,14 @@ To: Somebody Subject: Test MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" +Content-Transfer-Encoding: 8bit Date: ------- =_aaaaaaaaaa0 Content-Type: text/plain -Content-Transfer-Encoding: quoted-printable +Content-Transfer-Encoding: 8bit -=C2=A1Ay, caramba! +¡Ay, caramba! ------- =_aaaaaaaaaa0 Content-Type: text/plain; name="attachment.txt"