Fix out-of-bounds error when incorporating email from stdin
[mmh] / test / tests / spost / test-bad-address
1 # test spost: bcc and dcc headers
2
3 . "$MH_TEST_COMMON"
4
5
6 draft="$MH_TEST_DIR/spost-$$.draft"
7
8 cat >"$draft" <<!
9 To: al ice
10 Date: Sun, 25 Oct 2015 18:59:56 +0100
11 Subject: not parseable address
12 ----------------
13 !
14
15 runandcheck 'spost -debug "$draft" 2>&1 ; echo $?' <<!
16 spost: bad address 'al ice' - no mailbox in address, only a phrase (al ice), continuing...
17 spost: can't parse address: al ice
18
19 65
20 !