#!/bin/sh # # Test the Fcc: feature of post # set -e if test -z "${MH_OBJ_DIR}"; then srcdir=`dirname "$0"`/../.. MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR fi . "${srcdir}/test/post/test-post-common.sh" # # Basic test - Simple message, single user, single recipient. Note that # we test dot-stuffing here as well. # cat > "${MH_TEST_DIR}/Mail/draft" < To: Somebody Else Subject: Fcc test Fcc: +inbox This is a fcc test EOF cat > "${testname}.expected" < RCPT TO: DATA From: Mr Nobody To: Somebody Else Subject: Fcc test Date: This is a fcc test . QUIT EOF test_post "${testname}.actual" "${testname}.expected" cat > "${testname}.msg.expected" < To: Somebody Else Subject: Fcc test Date: This is a fcc test EOF msgname=`mhpath +inbox 11` sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate check "${testname}.msg.expected" "${msgname}".nodate exit ${failed:-0}