+version="Version: nmh-${MH_VERSION}"
+
+# Removing Version will trigger the welcome message. (setup_test
+# inserted it so that other tests wouldn't show it.)
+grep -v Version "${context}" > "${context}.NEW"
+mv -f "${context}.NEW" "${context}"
+
+
+start_test 'mhparam skips the welcome message'
+run_without_input "${actual}" mhparam path
+grep 'Welcome to nmh version ' "${actual}" >/dev/null && false
+# Make sure that version wasn't added to context.
+grep "^${version}$" "${MH_TEST_DIR}/Mail/context" >/dev/null && false
+rm "${actual}"
+
+
+start_test 'Welcome: disable in profile skips the welcome message'
+cp "${MH}" "${MH}-welcome"
+printf 'Welcome: disable\n' >> "${MH}-welcome"
+# Run the function in subshell instead of augmenting the environment
+# for a single command, so that the environment does not retain the
+# MH setting. That can happen when run under distcheck, depending
+# on the user's shell.
+(MH="${MH}-welcome"; run_without_input "${actual}" pick last)
+rm "${MH}-welcome"
+grep 'Welcome to nmh version ' "${actual}" >/dev/null && false
+# Make sure that version wasn't added to context.
+grep "^${version}$" "${MH_TEST_DIR}/Mail/context" >/dev/null && false
+rm "${actual}"