2 ######################################################
4 # Test encoding headers according to RFC 2047
6 ######################################################
10 draft="$MH_TEST_DIR/mhbuild-$$.draft"
11 export MM_CHARSET=UTF-8
16 From: Mr Foo Bar <foobar@example.com>
17 To: Somebody <somebody@example.com>
18 Subject: This is ä test
23 runandcheck 'mhbuild "$draft"' <<!
26 runandcheck 'sed "/^Content-ID:/s/:.*/: <TESTID>/" "$draft"' <<!
27 From: Mr Foo Bar <foobar@example.com>
28 To: Somebody <somebody@example.com>
29 Subject: =?UTF-8?Q?This_is_=C3=A4_test?=
31 Content-Type: text/plain; charset="us-ascii"
41 From: Jürgen <juergen@example.com>
42 To: Gönül <goenuel@example.com>
43 Subject: Names with Umlauts
48 runandcheck 'mhbuild "$draft"' <<!
51 runandcheck 'sed "/^Content-ID:/s/:.*/: <TESTID>/" "$draft"' <<!
52 From: =?UTF-8?Q?J=C3=BCrgen?= <juergen@example.com>
53 To: =?UTF-8?Q?G=C3=B6n=C3=BCl?= <goenuel@example.com>
54 Subject: Names with Umlauts
56 Content-Type: text/plain; charset="us-ascii"