# check with no options and current message
folder +inbox 5 > /dev/null
cat > $expected <<EOF
- msg part type/subtype size description
+ msg part type/subtype size description
5 text/plain 25
EOF
mhlist > $actual 2>&1
# check -file -
cat > $expected <<EOF
- msg part type/subtype size description
+ msg part type/subtype size description
0 text/plain 25
EOF
mhlist -file - < "$MH_TEST_DIR/Mail/inbox/5" > $actual 2>&1
# check multiple messages
cat > $expected <<EOF
- msg part type/subtype size description
+ msg part type/subtype size description
2 text/plain 25
8 text/plain 25
EOF
check $expected $actual
# Write message with a text/plain subpart.
-msgfile=$(mhpath new)
+msgfile=`mhpath new`
cat > $msgfile <<EOF
To: recipient@example.com
From: sender@example.com