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