]>
diplodocus.org Git - nmh/blob - test/mhl/test-rfc6532
2 ######################################################
4 # Test compatibility with RFC 6532, Internationalized
7 ######################################################
11 if test -z "${MH_OBJ_DIR}"; then
12 srcdir
=`dirname $0`/..
/..
13 MH_OBJ_DIR
=`cd $srcdir && pwd`; export MH_OBJ_DIR
16 .
"${MH_OBJ_DIR}/test/common.sh"
20 #### Make sure that html-to-text conversion is what we expect.
21 require_locale en_US.utf
-8 en_US.utf8
22 LC_ALL
=en_US.UTF
-8; export LC_ALL
26 start_test
'UTF-8 headers'
27 cat >"$MH_TEST_DIR"/Mail
/inbox
/11 <<EOF
28 From: senderø@example.com
29 To: recipientæ@example.com
30 Subject: Blåbærsyltetøy
31 Date: 20 May 2014 14:28:51 +0200
33 Content-Type: text/plain; charset="UTF-8"
34 Content-Transfer-Encoding: 8bit
36 Blåbærsyltetøy er veldig godt. Jeg liker blåbærsyltetøy.
40 Arnt Gulbrandsen and Jiankang Yao, "Email Address Internationalization",
41 Computing Edge 1:6, June 2015,
42 http://www.computer.org/cms/computing-edge/ce-jun15-final.pdf, p. 50.
45 #### Just check that the (UTF-8) headers are displayed unscathed. run_test
46 #### squashes the trailing blank lines from mhl.
47 run_test
"mhl -form mhl.headers `mhpath last`" \
48 'Date: 20 May 2014 14:28:51 +0200
49 To: recipientæ@example.com
50 From: senderø@example.com
51 Subject: Blåbærsyltetøy