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