QUOTED-PRINTABLE with 8 bit"
check "$expected" "$actual" 'keep first'
+sbackup="`mhparam sbackup`"
# check with no options: checks backup
start_test "with no options: checks backup"
run_test 'mhfixmsg' ''
check "$expected" "$MH_TEST_DIR"/Mail/inbox/11 'keep first'
cp "$MH_TEST_DIR"/Mail/inbox/11.original "$MH_TEST_DIR"/Mail/inbox/11
-check "$MH_TEST_DIR"/Mail/inbox/,11 "$MH_TEST_DIR"/Mail/inbox/11.original
+check "$MH_TEST_DIR/Mail/inbox/${sbackup}11" "$MH_TEST_DIR"/Mail/inbox/11.original
# check backup with -file
folder last >/dev/null
run_test 'mhfixmsg -file '"$MH_TEST_DIR"/Mail/inbox/11 ''
check "$MH_TEST_DIR"/Mail/inbox/11 "$expected" 'keep first'
-check "$MH_TEST_DIR"/Mail/inbox/,11 "$MH_TEST_DIR"/Mail/inbox/11.original
+check "$MH_TEST_DIR/Mail/inbox/${sbackup}11" "$MH_TEST_DIR"/Mail/inbox/11.original
+
+
+# check -file with directory
+start_test "-file with directory"
+run_test 'mhfixmsg -file /tmp' 'mhfixmsg: /tmp is a directory
+mhfixmsg: unable to parse message from file /tmp'
# check -reformat (enabled by default): addition of text/plain part
run_test 'mhfixmsg 21 -normmproc'
check "${MH_TEST_DIR}/Mail/inbox/22" \
- "${MH_TEST_DIR}/Mail/inbox/,21" 'keep first'
+ "${MH_TEST_DIR}/Mail/inbox/${sbackup}21" 'keep first'
fi
start_test "input is passed through to output when there's a parse error"
cat >"$expected.err" <<EOF
mhfixmsg: invalid quoted-string in message 31's Content-Type: field
- (parameter charset)
+ (parameter charset)
mhfixmsg: unable to parse message 31
EOF
# make sure there are no tmp files left over
-find "$MH_TEST_DIR/Mail" \( -name 'mhfix*' -o -name ',mhfix*' \) -print \
+find "$MH_TEST_DIR/Mail" -name '*mhfix*' -print \
>"$actual"
cat >"$expected" <<EOF
EOF