2 ######################################################
4 # Test mhshow part markers
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"
16 expected=$MH_TEST_DIR/$$.expected
17 actual=$MH_TEST_DIR/$$.actual
21 # check markers when showing multiple messages
22 start_test "makers when showing multiple messages"
23 cat >"$expected" <<EOF
24 [ part 1 - text/plain - 30B ]
25 first message, part 1 content
26 [ part 2 - text/plain - first message, part 2 C-D 30B ]
27 first message, part 2 content
28 [ part 1 - text/plain - 31B ]
29 second message, part 1 content
32 cat >"`mhpath new`" <<EOF
33 Content-Type: multipart/mixed;boundary="_boundary_"
37 Content-Type: text/plain
39 first message, part 1 content
42 Content-Type: text/plain
43 Content-Description: first message, part 2 C-D
45 first message, part 2 content
50 cat >"`mhpath new`" <<EOF
51 Content-Type: multipart/mixed;boundary="_boundary_"
55 Content-Type: text/plain
57 second message, part 1 content
62 run_prog mhshow -noheader -form mhl.null -concat last:2 > "$actual"
63 check "$expected" "$actual"