]>
diplodocus.org Git - nmh/blob - test/mhshow/test-cte-binary
2 ######################################################
4 # Test Content-Transfer-Encoding: binary (Debian #136976).
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
19 # Write message with Content-Transfer-Encoding: binary text.
21 msgnum
=`basename $msgfile`
23 Content-Transfer-Encoding: binary
25 Content-Type: text/plain
29 Content-Disposition: inline
30 Message-Id: <20698507875204@example.com>
31 Date: Tue, 05 Mar 2002 18:20:35 +0000
33 This is a test; this is the body.
39 Date: Tue, 05 Mar 2002 18:20:35 +0000
45 Content-Disposition: inline
47 [ part - text/plain - 34B ]
48 This is a test; this is the body.
50 run_prog mhshow
$msgnum > $actual 2>&1
51 check
"$expected" "$actual" : C
-T-E binary text