1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
#!/bin/sh
######################################################
#
# Test that repl and repl -g decode recipient addrs
#
######################################################
. "$MH_TEST_COMMON"
require_locale en_US.utf-8 en_US.utf8
LC_ALL=en_US.UTF-8
export LC_ALL
unset MM_CHARSET
# create message to reply to
msgfile=`mhpath b +inbox`
cat >"$msgfile" <<EOF
From: =?UTF-8?Q?J=C3=BCrgen?= <juergen@example.net>
To: bob@example.com
Cc: =?UTF-8?Q?K=C3=A4the?= <kaethe@example.org>
Subject: repl addr decode
Date: Mon, 18 Apr 2016 08:36:14 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Message-ID: <1as2n8-1Q9-00@deseo.home.schnalke.org>
foo
EOF
# create the reply draft
runandcheck 'repl -nocc all -whatnow true l +inbox' <<!
!
# check the draft
runandcheck 'cat `mhpath +drafts l`' <<!
To: Jürgen <juergen@example.net>
Cc:
Fcc: +sent
Subject: Re: repl addr decode
In-reply-to: <1as2n8-1Q9-00@deseo.home.schnalke.org>
References: <1as2n8-1Q9-00@deseo.home.schnalke.org>
Comments: In-reply-to Jürgen <juergen@example.net>
message dated "Mon, 18 Apr 2016 08:36:14 +0200."
--------
[2016-04-18 08:36] Jürgen <juergen@example.net>
>
> part text/plain 4
> foo
!
# create the group reply draft
runandcheck 'repl -group -nocc me -whatnow true l +inbox' <<!
!
# check the draft
runandcheck 'cat `mhpath +drafts l`' <<!
To: Jürgen <juergen@example.net>
Cc: bob@example.com, Käthe <kaethe@example.org>
Fcc: +sent
Subject: Re: repl addr decode
In-reply-to: <1as2n8-1Q9-00@deseo.home.schnalke.org>
References: <1as2n8-1Q9-00@deseo.home.schnalke.org>
Comments: In-reply-to Jürgen <juergen@example.net>
message dated "Mon, 18 Apr 2016 08:36:14 +0200."
--------
[2016-04-18 08:36] Jürgen <juergen@example.net>
>
> part text/plain 4
> foo
!
LC_ALL=C
export LC_ALL
# create the group reply draft
runandcheck 'repl -group -nocc me -whatnow true l +inbox' <<!
!
# check the draft
runandcheck 'cat `mhpath +drafts l`' <<!
To: J?rgen <juergen@example.net>
Cc: bob@example.com, K?the <kaethe@example.org>
Fcc: +sent
Subject: Re: repl addr decode
In-reply-to: <1as2n8-1Q9-00@deseo.home.schnalke.org>
References: <1as2n8-1Q9-00@deseo.home.schnalke.org>
Comments: In-reply-to J?rgen <juergen@example.net>
message dated "Mon, 18 Apr 2016 08:36:14 +0200."
--------
[2016-04-18 08:36] J?rgen <juergen@example.net>
>
> part text/plain 4
> foo
!
|