2 ######################################################
4 # Test show of one part, fixed by
5 # 31cba404636730df219dd009ca5893ccc56d46af
7 ######################################################
11 if test -z "${MH_OBJ_DIR}"; then
12 srcdir=`dirname "$0"`/../..
13 MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
16 . "$MH_OBJ_DIR/test/common.sh"
20 expected=$MH_TEST_DIR/$$.expected
21 actual=$MH_TEST_DIR/$$.actual
23 # Write message with a text/plain subpart.
25 msgnum=$(basename $msgfile)
28 Content-Type: multipart/mixed; boundary="NextPart_001"
29 Content-class: urn:content-classes:message
30 Date: Thu, 19 May 2011 00:00:00 -0000
31 From: sender@example.com
32 To: recipient@example.com
34 This is a multi-part message in MIME format.
37 Content-Type: multipart/related;
38 type="multipart/alternative";
39 boundary="NextPart_002"
42 Content-Type: text/plain;
45 This is the text/plain part.
52 # Write the expected output.
54 part 1.1 text/plain 29
55 This is the text/plain part.
59 mhshow -part 1.1 -form mhl.null -nopause $msgnum > $actual 2>&1
60 check "$expected" "$actual"