# 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