X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fmhmail%2Ftest-mhmail;h=e8fbac8ae3018bb1f335182617757eda7c234435;hb=26d1d48706344c9311fe19f3691e5c0a230da710;hp=422c647dc959b6669bc3db4caf61f2a46c39ed29;hpb=4c3830a96cdc7f17576d986d440a08ead54bee7a;p=mmh diff --git a/test/mhmail/test-mhmail b/test/mhmail/test-mhmail index 422c647..e8fbac8 100755 --- a/test/mhmail/test-mhmail +++ b/test/mhmail/test-mhmail @@ -57,7 +57,8 @@ test_mhmail () sed -e 's/^Date:.*/Date:/' \ -e 's/^Resent-Date:.*/Resent-Date:/' \ - -e 's/^Message-ID:.*/Message-ID:/' "$actual" > "$actual".nodate + -e 's/^Message-ID:.*/Message-ID:/' \ + -e 's/^Content-ID:.*/Content-ID:/' "$actual" > "$actual".nodate rm -f "$actual" check "$actual".nodate "$1" @@ -74,6 +75,7 @@ actual_err=$MH_TEST_DIR/test-mhmail$$.actual_err cat >$expected < "$expected" < +RCPT TO: +DATA +To: recipient@example.com +From: sender@example.com +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" +Content-ID: +Date: +Message-ID: + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" + +See how easy it is to add an attachment! + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; name="attachment.txt"; charset="us-ascii" +Content-Description: attachment.txt +Content-Disposition: attachment; filename="attachment.txt" + +The future disappears into memory, With only a moment between, +Forever dwells in that moment, hope is what remains to be seen +Forever dwells in that moment, hope is what remains to be seen. + +------- =_aaaaaaaaaa0-- +. +QUIT +EOF + +test_mhmail "$expected" \ + "-from sender@example.com -attach ${srcdir}/test/mhmail/attachment.txt" \ + -b 'See how easy it is to add an attachment!' + +[ ${failed:-0} -eq 0 ] || exit ${failed:-0} + + exit ${failed:-0}