2 ######################################################
4 # Test show of one part, fixed by
5 # 31cba404636730df219dd009ca5893ccc56d46af
7 ######################################################
11 if [ -z "${MH_TEST_COMMON}" ]; then
12 echo "MH_TEST_COMMON not set; try running via 'make check'"
19 expected=$MH_TEST_DIR/$$.expected
20 actual=$MH_TEST_DIR/$$.actual
22 # Write message with a text/plain subpart.
24 msgnum=$(basename $msgfile)
27 Content-Type: multipart/mixed; boundary="NextPart_001"
28 Content-class: urn:content-classes:message
29 Date: Thu, 19 May 2011 00:00:00 -0000
30 From: sender@example.com
31 To: recipient@example.com
33 This is a multi-part message in MIME format.
36 Content-Type: multipart/related;
37 type="multipart/alternative";
38 boundary="NextPart_002"
41 Content-Type: text/plain;
44 This is the text/plain part.
51 # Write the expected output.
53 part 1.1 text/plain 29
54 This is the text/plain part.
58 mhshow -part 1.1 -form mhl.null -nopause $msgnum > $actual 2>&1
59 diff -u $expected $actual && rm -f $expected $actual