X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/43242c623638e8b4fc23b46d61dea80765c7a332..abbd6450510ebf4a68c726b5a455dfcfb6fe2aa6:/test/mhfixmsg/test-mhfixmsg?ds=inline diff --git a/test/mhfixmsg/test-mhfixmsg b/test/mhfixmsg/test-mhfixmsg index 10ac24ec..bc46964f 100755 --- a/test/mhfixmsg/test-mhfixmsg +++ b/test/mhfixmsg/test-mhfixmsg @@ -666,9 +666,20 @@ d> EOF -#### lynx inserts multiple blank lines, so use uniq to squeeze them. -mhfixmsg last -outfile - | uniq >"$actual" -check "$expected" "$actual" 'ignore space' +# ???? debug on Solaris +egrep mhfixmsg ${MH_TEST_DIR}/Mail/mhn.defaults # ???? +if [ $can_reformat_texthtml -eq 1 ]; then + #### lynx inserts multiple blank lines, so use uniq to squeeze them. + # ???? mhfixmsg last -outfile - | uniq >"$actual" + # ???? temporarily add -verbose to debug on Solaris + mhfixmsg -verbose last -outfile - | uniq >"$actual" # ???? + check "$expected" "$actual" 'ignore space' +else + # ???? temporarily added to debug on Solaris + echo "can't reformat text/html" # ???? + cp -p "$MH_TEST_DIR/Mail/inbox/15" "$MH_TEST_DIR/Mail/inbox/15.backup" + rm -f "$expected" +fi # check -textcodeset @@ -869,6 +880,7 @@ else rm -f "$expected" fi + # check handling of rfc822 message type cat >"$expected" < @@ -932,6 +944,33 @@ run_test 'mhfixmsg last -outfile '"$actual" '' check "$expected" "$actual" +# check stripping of CRs from ASCII text context +cat >"$expected" <`mhpath new` <<'EOF' +MIME-Version: 1.0 +From: sender@example.com +To: recipient@example.com +Subject: message with CR's +Date: Mon, 29 Apr 2013 11:51:45 -0400 + +There are two CR-LF pairs at the end of this sentence. + +EOF + +mhfixmsg last -outfile "$actual" +check "$expected" "$actual" + + # check rmmproc cat >"$MH_TEST_DIR/Mail/rmmproc" <<'EOF' mv "$1" "$1.backup"