]>
diplodocus.org Git - nmh/blob - test/mhbuild/test-ext-params
2 ######################################################
4 # Test the creation of RFC 2231 encoded parameters
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"
17 LC_ALL
=en_US.UTF-8
; export LC_ALL
19 draft
="$MH_TEST_DIR/$$.draft"
20 expected
="$MH_TEST_DIR/$$.expected"
23 # Try out a draft with some 8-bit encoded parameters
27 To: Mr Test <mrtest@example.com>
30 This is a test message
31 #image/jpeg {attachment; filename="tïny.jpg"} ${srcdir}/test/mhbuild/tiny.jpg
34 run_prog mhbuild
"$draft"
36 cat > "$expected" <<EOF
37 To: Mr Test <mrtest@example.com>
41 Content-Type: image/jpeg; name="tiny.jpg"
42 Content-Description: tiny.jpg
43 Content-Disposition: attachment; filename="tiny.jpg"
44 Content-Transfer-Encoding: base64
49 check
"$draft" "$expected"