actual="$MH_TEST_DIR"/$$.actual
# check charset conversion
+start_test "charset conversion"
msgfile=`mhpath new`
msgnum=`basename $msgfile`
cat >"$msgfile" <<'EOF'
# check expansion of %{charset} by itself
+start_test "expansion of %{charset} by itself"
msgfile=`mhpath new`
msgnum=`basename $msgfile`
cat >"$msgfile" <<'EOF'
# check expansion of empty %{charset} by itself
+start_test "expansion of empty %{charset} by itself"
msgfile=`mhpath new`
omsgnum=$msgnum
msgnum=`basename $msgfile`
EOF
# check expansion of embedded %{charset} with no text following
+start_test "expansion of embedded %{charset} with no text following"
cat >"$expected" <<EOF
[ Message inbox:$omsgnum ]
Date: Sun, 18 Dec 2005 00:52:39 +0100
# check expansion of empty embedded %{charset} with no text following
+start_test "expansion of empty embedded %{charset} with no text following"
cat >"$expected" <<EOF
[ Message inbox:$msgnum ]
Date: Sun, 18 Dec 2005 00:52:39 +0100
mv -f "$MH.new" "$MH"
# check expansion of embedded %{charset} with text following
+start_test "expansion of embedded %{charset} with text following"
cat >"$expected" <<EOF
[ Message inbox:$omsgnum ]
Date: Sun, 18 Dec 2005 00:52:39 +0100
# check expansion of empty embedded %{charset} with text following
+start_test "expansion of empty embedded %{charset} with text following"
cat >"$expected" <<EOF
[ Message inbox:$msgnum ]
Date: Sun, 18 Dec 2005 00:52:39 +0100
mv -f "$MH.new" "$MH"
# check parameter value quoting
+start_test "parameter value quoting"
msgfile=`mhpath new`
msgnum=`basename $msgfile`
cat >"$msgfile" <<'EOF'
mv -f "$MH.new" "$MH"
# check that unknown parameter is not expanded
+start_test "that unknown parameter is not expanded"
msgfile=`mhpath new`
msgnum=`basename $msgfile`
cat >"$msgfile" <<'EOF'
EOF
# check parameter value quoting with text following
+start_test "parameter value quoting with text following"
msgfile=`mhpath new`
msgnum=`basename $msgfile`
cat >"$msgfile" <<'EOF'
check "$expected" "$actual" : parameter value quoting with text following
# check malicious parameter value quoting
+start_test "malicious parameter value quoting"
msgfile=`mhpath new`
msgnum=`basename $msgfile`
cat >"$msgfile" <<'EOF'
run_prog mhshow last >"$actual" 2>&1
check "$expected" "$actual" : large file conversion to UTF-8
+finish_test
exit $failed