fix dist
[mmh] / test / tests / dist / test-dist
1 # Test dist
2
3 . "$MH_TEST_COMMON"
4
5 msgfile=`mhpath b +inbox`
6 cat >"$msgfile" <<EOF
7 From: juergen <juergen@example.net>
8 To: bob@example.com
9 Subject: test dist
10 Date: Mon, 18 Apr 2016 08:36:14 +0200
11 MIME-Version: 1.0
12 Content-Type: text/plain; charset="us-ascii"
13 Message-ID: <1as2n8-1Q9-00@deseo.home.schnalke.org>
14
15 foo
16 EOF
17
18 runandcheck 'dist -whatnow true l +inbox' <<!
19 !
20
21 export mhdist=1
22 export mhaltmsg=$msgfile
23
24 echo 'Resent-To: test@example.com' > `mhpath +drafts l`
25
26 runandcheck 'send -debug +drafts l |sed "s/^Resent-Date:.*/Resent-Date:/" |sed "s/^Resent-From:.*/Resent-From:/"' <<!
27 From: juergen <juergen@example.net>
28 To: bob@example.com
29 Subject: test dist
30 Date: Mon, 18 Apr 2016 08:36:14 +0200
31 MIME-Version: 1.0
32 Content-Type: text/plain; charset="us-ascii"
33 Message-ID: <1as2n8-1Q9-00@deseo.home.schnalke.org>
34 Resent-To: test@example.com
35 Resent-Date:
36 Resent-From:
37
38 foo
39 ----EOM----
40 test@example.com
41 !