X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fpost%2Ftest-sendmail-pipe;fp=test%2Fpost%2Ftest-pipe;h=22f9e7dc13b2f9e5f5ee81107c88603898f98584;hb=84b65bad347129f751e3ed208516697bc3fe1820;hp=c9048edf360a49e4dd3f175d5e995ebaec7510b9;hpb=2b72292fe9a76e3e70b63a7cd639499214097bf8;p=mmh diff --git a/test/post/test-pipe b/test/post/test-sendmail-pipe similarity index 79% rename from test/post/test-pipe rename to test/post/test-sendmail-pipe index c9048ed..22f9e7d 100755 --- a/test/post/test-pipe +++ b/test/post/test-sendmail-pipe @@ -1,6 +1,7 @@ #!/bin/sh # -# Test the basic behavior of post when configured with pipe delivery method. +# Test the basic behavior of post when configured with sendmail/pipe +# delivery method. # set -e @@ -15,13 +16,13 @@ fi setup_test testname="${MH_TEST_DIR}/$$" -#### Force test of pipe regardless of configuration. +#### Force test of sendmail/pipe regardless of configuration. mts_pipe="${MHMTSCONF}-pipe" -sed -e 's/mts: *.*/mts: pipe/' "${MHMTSCONF}" >"$mts_pipe" +sed -e 's/mts: *.*/mts: sendmail\/pipe/' "${MHMTSCONF}" >"$mts_pipe" printf "%s\n" "sendmail: ${srcdir}/test/fakesendmail" >>"$mts_pipe" MHMTSCONF="$mts_pipe" -test_pipe () +test_sendmail_pipe () { send -draft @@ -49,8 +50,9 @@ test_pipe () } # -# Basic test - Simple message, single user, single recipient. -# Dots are not stuffed because pipe invokes sendmail with -i. +# Basic test - Simple message, single user, single recipient. Dots +# are not stuffed because sendmail/pipe causes sendmail to be invoked +# with -i. # cat > "${MH_TEST_DIR}/Mail/draft" < @@ -71,7 +73,7 @@ This is a test . EOF -test_pipe "${testname}.expected" +test_sendmail_pipe "${testname}.expected" # check Bcc @@ -112,7 +114,7 @@ This is a test ------- End of Blind-Carbon-Copy EOF -test_pipe "${testname}.expected1" "${testname}.expected2" +test_sendmail_pipe "${testname}.expected1" "${testname}.expected2" rm -f ${MHMTSCONF}