rename whatnow2 tests
[mmh] / test / tests / whatnow2 / test-workflow
1 #test whatnow2 workflow
2
3 . "$MH_TEST_COMMON"
4 profile="$MMH/profile-send"
5 cd "$MMH"
6 cat "`mhparam profile`" - >"$profile" <<!
7 default-from: Bob <bob@example.org>
8 !
9 cd - >/dev/null
10 export MMHP="$profile"
11
12 runandcheck "comp -editor cat -whatnowproc whatnow2" <<!
13 mmh-last-editor: cat
14 mmh-mhdist: 0
15 To:
16 Cc:
17 Fcc: +sent
18 Subject:
19 --------
20 !
21
22 runandcheck "whatnow2 edit" <<!
23 mmh-last-editor: cat
24 mmh-mhdist: 0
25 To:
26 Cc:
27 Fcc: +sent
28 Subject:
29 --------
30 !
31
32 cat >`mhpath l +drafts` <<!
33 From: Bob <bob@example.org>
34 To: alice
35 Date: Sun, 25 Oct 2015 18:59:56 +0100
36 Subject: Test
37 ----------------
38 foo
39 !
40
41 runandcheck 'whatnow2 send -debug | replace_contentid' <<!
42 From: Bob <bob@example.org>
43 To: alice
44 Date: Sun, 25 Oct 2015 18:59:56 +0100
45 Subject: Test
46 MIME-Version: 1.0
47 Content-Type: text/plain; charset="us-ascii"
48 Content-ID: <TESTID>
49
50 foo
51 ----EOM----
52 alice
53 !