3 # Test the Fcc: feature of post
8 if test -z "${MH_OBJ_DIR}"; then
9 srcdir=`dirname "$0"`/../..
10 MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
13 . "${srcdir}/test/post/test-post-common.sh"
16 # Basic test - Simple message, single user, single recipient. Note that
17 # we test dot-stuffing here as well.
20 cat > "${MH_TEST_DIR}/Mail/draft" <<EOF
21 From: Mr Nobody <nobody@example.com>
22 To: Somebody Else <somebody@example.com>
29 cat > "${testname}.expected" <<EOF
30 EHLO nosuchhost.example.com
31 MAIL FROM:<nobody@example.com>
32 RCPT TO:<somebody@example.com>
34 From: Mr Nobody <nobody@example.com>
35 To: Somebody Else <somebody@example.com>
44 test_post "${testname}.actual" "${testname}.expected"
46 cat > "${testname}.msg.expected" <<EOF
47 From: Mr Nobody <nobody@example.com>
48 To: Somebody Else <somebody@example.com>
55 msgname=`mhpath +inbox 11`
57 sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate
59 check "${testname}.msg.expected" "${msgname}".nodate