X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8ba186801a31551de4f12ffd26b617a02b289d32..d69599edcb7a6248dfa00727cf349af59b34bdb4:/test/post/test-mhmail diff --git a/test/post/test-mhmail b/test/post/test-mhmail index 17c95054..ce4d9c6b 100755 --- a/test/post/test-mhmail +++ b/test/post/test-mhmail @@ -77,12 +77,13 @@ Usage: mhmail [addrs ... [switches]] -b(ody) text -c(c) addrs ... -f(rom) addr - -s(ubject) text + -su(bject) text -r(esent) -pr(ofile) + -se(nd) + -nose(nd) -v(ersion) -h(elp) - -d(ebug) and all post(8)/send(1) switches EOF @@ -111,20 +112,18 @@ case `mhmail` in esac -# check -debug +# check -nosend # Not supported by compiled mhmail. -mhmail -debug recipient@example.com -from sender@localhost \ +mhmail -nosend recipient@example.com -from sender@localhost \ -server 127.0.0.1 -port $localport -body '' >"$actual" 2>"$actual_err" tmpfil=`head -1 $actual | sed -e 's/://'` cat > "$expected" < "$expected_err" < "$expected" < +RCPT TO: +DATA +To: recipient@example.com +From: sender@localhost +Date: + +message +. +QUIT +EOF + +test_mhmail "$expected" "-from sender@localhost -nosend -send" '|' message +[ ${failed:-0} -eq 0 ] || exit ${failed:-0} + + # check -from # Verified same behavior as compiled mhmail. cat > "$expected" <