3 # Common routines for the post tests
8 . "${MH_OBJ_DIR}/test/common.sh"
13 testname="${MH_TEST_DIR}/$$"
16 # Set this for the EHLO command
19 echo "clientname: nosuchhost.example.com" >> ${MHMTSCONF}
22 # One "post" test run. Ok, yeah, we're using "send", but that's just
23 # because it's easier.
27 { "${MH_OBJ_DIR}/test/fakesmtp" "$1" $localport &
30 send -draft -server 127.0.0.1 -port $localport || exit 1
35 # It's hard to calculate the exact Date: header post is going to
36 # use, so we'll just use sed to remove the actual date so we can easily
37 # compare it against our "correct" output.
40 sed -e 's/^Date:.*/Date:/' "$1" > "$1".nodate
43 check "$1".nodate "$2"