From: Mr Nobody <nobody@example.com>
To: Somebody Else <somebody@example.com>
Subject: Test
+MIME-Version: 1.0
+Content-Type: text/plain; charset="us-ascii"
Date:
This is a test
EOF
# check invalid -messageid selection
+start_test "invalid -messageid selection"
run_test "send -draft -messageid invalid" \
"post: unsupported messageid \"invalid\"
send: message not delivered to anyone"
test_messageid ()
{
msgid_style="$1"
- send -draft -mts sendmail/pipe -msgid -messageid "$msgid_style"
+ run_prog send -draft -mts sendmail/pipe -msgid -messageid "$msgid_style"
shift
# fakesendmail drops the message and any cc's into this mbox.
mbox="${MH_TEST_DIR}"/Mail/fakesendmail.mbox
inc -silent -file "$mbox"
- rm -f "$mbox" "$mbox.map"
+ rm -f "$mbox"
n=1
for expected in "$@"; do
}
# check -messageid localname (the default)
+start_test "-messageid localname (the default)"
cat > "${MH_TEST_DIR}/Mail/draft" <<EOF
From: Mr Nobody <nobody@example.com>
To: Somebody Else <somebody@example.com>
From: Mr Nobody <nobody@example.com>
To: Somebody Else <somebody@example.com>
Subject: Test
+MIME-Version: 1.0
+Content-Type: text/plain; charset="us-ascii"
Date:
Message-ID:
test_messageid localname "${testname}.expected"
# check -messageid random
+start_test "-messageid random"
cat > "${MH_TEST_DIR}/Mail/draft" <<EOF
From: Mr Nobody <nobody@example.com>
To: Somebody Else <somebody@example.com>
From: Mr Nobody <nobody@example.com>
To: Somebody Else <somebody@example.com>
Subject: Test
+MIME-Version: 1.0
+Content-Type: text/plain; charset="us-ascii"
Date:
Message-ID:
rm -f ${MHMTSCONF}
+finish_test
exit ${failed:-0}