2 ######################################################
4 # Test bogus headers (no blank line before body).
6 ######################################################
8 if test -z "${MH_OBJ_DIR}"; then
9 srcdir=`dirname "$0"`/../..
10 MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
13 . "$MH_OBJ_DIR/test/common.sh"
17 expected=$MH_TEST_DIR/$$.expected
18 actual=$MH_TEST_DIR/$$.actual
20 # Write message with bogus header field (missing blank line, really).
22 msgnum=$(basename $msgfile)
24 Date: Sun, 18 Dec 2005 00:52:39 +0100
28 This is a multi-part message in MIME format.
30 I am a stupid spammer.
35 11 12/18 foo@example.edu test<<This is a multi-part message in MIME forma
37 scan $msgnum > $actual 2>&1
38 check $expected $actual
44 Date: Sun, 18 Dec 2005 00:52:39 +0100
50 This is a multi-part message in MIME format.
53 I am a stupid spammer.
55 show $msgnum > $actual 2>&1
56 check $expected $actual
60 Date: Sun, 18 Dec 2005 00:52:39 +0100
68 This is a multi-part message in MIME format.
70 I am a stupid spammer.
72 mhshow -nopause $msgnum > $actual 2>&1
73 check $expected $actual