2 ######################################################
4 # Test encoding headers according to RFC 2047
6 ######################################################
8 # TODO: Move to a common file tests can source; need more framework...
10 export MM_CHARSET=UTF-8
12 diff -u $expected $actual
14 failed=$((failed + 1))
18 # Make a draft file forwarding two messages.
21 From: Mr Foo Bar <foobar@example.com>
22 To: Somebody <somebody@example.com>
23 Subject: This is รค test
29 # Munge the Content-Id from the draft after mhbuild, so we have a reliable
32 sed 's/\(Content-ID:\) <[^>][^>]*>/\1 <TESTID>/' $draft > $actual
35 draft=$MH_TEST_DIR/$$.draft
36 expected=$MH_TEST_DIR/$$.expected
37 actual=$MH_TEST_DIR/$$.actual
41 From: Mr Foo Bar <foobar@example.com>
42 To: Somebody <somebody@example.com>
43 Subject: =?UTF-8?Q?This_is_=C3=A4_test?=
45 Content-Type: text/plain; charset="us-ascii"