File: test-alias

package info (click to toggle)
mmh 0.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,976 kB
  • sloc: ansic: 26,132; sh: 6,871; makefile: 680; awk: 74
file content (42 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (3)
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
# test spost: bcc and dcc headers

. "$MH_TEST_COMMON"


draft="$MH_TEST_DIR/spost-$$.draft"
alias="$MH_TEST_DIR/spost-$$.alias"

profile="$MMH/profile-spost"
cd "$MMH"
cat "`mhparam profile`" - >"$profile" <<!
default-from: Bob <bob@example.org>
Aliasfile: $alias
!
cd - >/dev/null
export MMHP="$profile"

cat > "$alias" <<!
alice: Alice <alice@example.com>
bob: Bob <bob@example.org>
!
# to + cc headers

cat >"$draft" <<!
From: bob
To: alice
Date: Sun, 25 Oct 2015 18:59:56 +0100
Subject: Test alias in to and from
----------------
foo
!

runandcheck 'spost -debug "$draft"' <<!
From: Bob <bob@example.org>
To: Alice <alice@example.com>
Date: Sun, 25 Oct 2015 18:59:56 +0100
Subject: Test alias in to and from

foo
----EOM----
alice@example.com
!