fix logic bug in getthreadid
[mmh] / test / tests / mhbuild / test-forw
1 #!/bin/sh
2 ######################################################
3 #
4 # Test forwarding messages
5 #
6 ######################################################
7
8 . "$MH_TEST_COMMON"
9
10 draft="$MH_TEST_DIR/mhbuild-$$.draft"
11
12
13 cat >"$draft" <<!
14 To:
15 Cc:
16 Fcc: +sent
17 Subject:
18 --------
19 #forw [forwarded messages] +inbox 1 2
20 !
21
22
23 runandcheck 'mhbuild "$draft"' <<!
24 !
25
26 runandcheck 'sed "/^Content-ID/s/:.*/: <TESTID>/" "$draft"' <<!
27 To:
28 Cc:
29 Fcc: +sent
30 Subject:
31 MIME-Version: 1.0
32 Content-Type: multipart/digest; boundary="----- =_aaaaaaaaaa0"
33 Content-ID: <TESTID>
34 Content-Description: forwarded messages
35
36 ------- =_aaaaaaaaaa0
37 Content-Type: message/rfc822
38
39 From: Test1 <test1@example.com>
40 To: Some User <user@example.com>
41 Date: Fri, 29 Sep 2006 00:00:00
42 Subject: Testing message 1
43
44 This is message number 1
45
46 ------- =_aaaaaaaaaa0
47 Content-Type: message/rfc822
48
49 From: Test2 <test2@example.com>
50 To: Some User <user@example.com>
51 Date: Fri, 29 Sep 2006 00:00:00
52 Subject: Testing message 2
53
54 This is message number 2
55
56 ------- =_aaaaaaaaaa0--
57 !