2 ######################################################
4 # Test bogus headers (no blank line before body).
6 ######################################################
8 # TODO: Move to a common file tests can source; need more framework...
11 diff -u $expected $actual
13 failed=$((failed + 1))
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
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
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