#!/bin/sh # # Tests to see if the -from, -to, -cc, -fcc, and -subject switches to # "forw" work correctly. # if test -z "${MH_OBJ_DIR}"; then srcdir=`dirname "$0"`/../.. MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR fi . "$MH_OBJ_DIR/test/common.sh" setup_test # # Create a test template file (we create one here just in case the master # one changes) # form="${MH_TEST_DIR}/$$.forwcomps" cat > $form < -------- EOF expected="${MH_TEST_DIR}/$$.expected" actual="${MH_TEST_DIR}/Mail/draft" from="Mr Test User " to1="User One " to2="User Two " cc1="CC User One " cc2="CC User Two " cc3="CC User Three " cc4="CC User Four " fcc1="+nosuchmailbox" fcc2="+nosuchmailbox2" subject="Totally bogus subject" cat > "$expected" <> "$expected" cat >> "$expected" <