setup_test
testname="${MH_TEST_DIR}/$$"
+LC_ALL=en_US.UTF-8; export LC_ALL
#### Rely on sendmail/pipe below to override default mts.
mts_fakesendmail="${MHMTSCONF}-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
# 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"
From: Mr Nobody <nobody@example.com>
To: Somebody <somebody@example.com>
Subject: Test
-Nmh-Attachment: $MH_TEST_DIR/attachment.txt
+Attach: $MH_TEST_DIR/attachment.txt
This is a test.
EOF
From: Mr Nobody <nobody@example.com>
To: Somebody <somebody@example.com>
Subject: Test
-Nmh-Attachment: $MH_TEST_DIR/attachment.txt
+Attach: $MH_TEST_DIR/attachment.txt
¡Ay, caramba!
EOF
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"