fcc1="+nosuchmailbox"
fcc2="+nosuchmailbox2"
-digestdate=$(date "+%A, %e %b %Y")
+digestdate=`date "+%A, %e %b %Y"`
cat > "$expected" <<EOF
From: ${from}
i=1
while [ "$i" -le 6 ]
do
- filename=$(mhpath +inbox $i)
+ filename=`mhpath +inbox $i`
cat $filename >> "$expected"
cat >> "$expected" <<EOF
------------------------------
EOF
- i=$(expr $i + 1)
+ i=`expr $i + 1`
done
cat >> "$expected" <<EOF
********************************************
EOF
-forw -editor true -from "${from}" -to "${to1}" -to "${to2}" \
+run_prog forw -editor true -from "${from}" -to "${to1}" -to "${to2}" \
-cc "${cc1}" -cc "${cc2}" -cc "${cc3}" -cc "${cc4}" -fcc "${fcc1}" \
-fcc "${fcc2}" -width 60 -issue 3 -volume 2 -nowhatnowproc \
-digest digest-test +inbox 1-6 || exit 1
i=7
while [ "$i" -le 8 ]
do
- filename=$(mhpath +inbox $i)
+ filename=`mhpath +inbox $i`
cat $filename >> "$expected"
cat >> "$expected" <<EOF
------------------------------
EOF
- i=$(expr $i + 1)
+ i=`expr $i + 1`
done
cat >> "$expected" <<EOF
********************************************
EOF
-forw -editor true -from "${from}" -nowhatnowproc -digest digest-test \
+run_prog forw -editor true -from "${from}" -nowhatnowproc -digest digest-test \
-subject "This is a test" +inbox 7-8 || exit 1
check "${expected}" "${actual}"